| 1 | Name: gitswitcher |
| 2 | Version: 1.0.2 |
| 3 | Release: 1%{?dist} |
| 4 | Summary: Secure Git identity and SSH/GPG key management tool for seamless account switching |
| 5 | |
| 6 | License: GPL-3.0 |
| 7 | URL: https://github.com/tenseleyFlow/gitswitchC |
| 8 | Source0: %{name}-%{version}.tar.gz |
| 9 | |
| 10 | BuildArch: x86_64 |
| 11 | BuildRequires: gcc |
| 12 | BuildRequires: make |
| 13 | BuildRequires: openssl-devel |
| 14 | |
| 15 | %global debug_package %{nil} |
| 16 | Requires: git |
| 17 | Requires: openssh-clients |
| 18 | Requires: openssl |
| 19 | |
| 20 | %description |
| 21 | gitswitcher is a secure Git identity and SSH/GPG key management tool that enables |
| 22 | seamless switching between multiple Git accounts with complete environment isolation. |
| 23 | Built for developers working with multiple identities, it provides robust security |
| 24 | hardening to prevent credential leakage between accounts. |
| 25 | |
| 26 | This is a standalone tool, not related to the existing gitswitch package. |
| 27 | |
| 28 | Features: |
| 29 | - Secure Git identity management |
| 30 | - Complete SSH key isolation per account |
| 31 | - GPG environment separation and management |
| 32 | - Configuration validation and health checking |
| 33 | - Interactive account management interface |
| 34 | - Security-focused design with comprehensive hardening |
| 35 | |
| 36 | %prep |
| 37 | %autosetup |
| 38 | |
| 39 | %build |
| 40 | # Build release version with security hardening |
| 41 | make BUILD_TYPE=release %{?_smp_mflags} |
| 42 | |
| 43 | %install |
| 44 | # Install to buildroot |
| 45 | make install DESTDIR=%{buildroot} |
| 46 | |
| 47 | # Install documentation |
| 48 | install -d %{buildroot}%{_docdir}/%{name} |
| 49 | install -m 644 README.md %{buildroot}%{_docdir}/%{name}/ |
| 50 | |
| 51 | %files |
| 52 | /usr/local/bin/gitswitch |
| 53 | %{_docdir}/%{name}/README.md |
| 54 | |
| 55 | %changelog |
| 56 | * Thu Sep 12 2024 mfw <espadonne@outlook.com> - 1.0.2-1 |
| 57 | - Clean production build with zero compiler warnings |
| 58 | - Eliminated hundreds of variadic macro warnings from release builds |
| 59 | - Maintained pedantic warnings for development builds |
| 60 | - Production-ready build for AUR and RPM distribution |
| 61 | |
| 62 | * Thu Sep 12 2024 mfw <espadonne@outlook.com> - 1.0.1-1 |
| 63 | - Initial RPM release for gitswitcher |
| 64 | - Renamed from gitswitch to avoid confusion with existing unrelated package |
| 65 | - C implementation with security hardening |
| 66 | - Complete SSH and GPG isolation features |
| 67 | - Compiler warning fixes and production-ready build |