| 1 | Name: gitswitch |
| 2 | Version: 1.1.4 |
| 3 | Release: 1%{?dist} |
| 4 | Summary: Safe Git identity switching with SSH/GPG isolation |
| 5 | |
| 6 | License: GPL-3.0 |
| 7 | URL: https://github.com/tenseleyFlow/gitswitch |
| 8 | Source0: %{name}-%{version}.tar.gz |
| 9 | |
| 10 | BuildArch: x86_64 |
| 11 | |
| 12 | # Disable debug package |
| 13 | %global debug_package %{nil} |
| 14 | |
| 15 | BuildRequires: gcc |
| 16 | BuildRequires: make |
| 17 | BuildRequires: openssl-devel |
| 18 | Requires: git |
| 19 | Requires: openssh-clients |
| 20 | Requires: openssl |
| 21 | |
| 22 | %description |
| 23 | gitswitch is a C port of the original Python tool for safely switching between |
| 24 | Git identities with complete SSH and GPG isolation. It provides secure |
| 25 | environment separation for developers working with multiple Git accounts, |
| 26 | ensuring credentials never leak between different identities. |
| 27 | |
| 28 | Features: |
| 29 | - Safe Git identity switching |
| 30 | - SSH key isolation per account |
| 31 | - GPG environment separation |
| 32 | - Configuration health checking |
| 33 | - Interactive account management |
| 34 | - Comprehensive security 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 | %doc README.md |
| 53 | /usr/local/bin/gitswitch |
| 54 | |
| 55 | %changelog |
| 56 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.1.4-1 |
| 57 | - Feat: persistent SSH agents with session state tracking |
| 58 | - Docs: add fish shell syntax to SSH integration tip |
| 59 | |
| 60 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.1.0-1 |
| 61 | - Fix: use rotating buffers in display_colorize to prevent overwrite |
| 62 | - Fix: flush stdout after display_status to ensure output is shown |
| 63 | |
| 64 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.0.8-1 |
| 65 | - Feat: improve account switch status messages |
| 66 | |
| 67 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.0.7-1 |
| 68 | - Fix: improve SSH connection test for git hosting services |
| 69 | |
| 70 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.0.5-1 |
| 71 | - Fix: remove stale ssh agent sockets before starting new agent |
| 72 | |
| 73 | * Fri Dec 20 2024 mfw <espadonne@outlook.com> - 1.0.3-1 |
| 74 | - Fix: use warn log level for release builds |
| 75 | - Fix: silence errors for missing optional config fields |
| 76 | - Fix: verify git config against correct scope and suppress ssh logging |
| 77 | |
| 78 | * Sun Aug 24 2025 mfw <espadonne@outlook.com> - 1.0.0-1 |
| 79 | - Initial RPM release |
| 80 | - C port with security hardening |
| 81 | - SSH and GPG isolation features |