packaging things
- SHA
a4cf04be0cef80846e7fd9be5a51f435f0216eec- Parents
-
88a88fe - Tree
aec2330
a4cf04b
a4cf04be0cef80846e7fd9be5a51f435f0216eec88a88fe
aec2330| Status | File | + | - |
|---|---|---|---|
| A |
gitswitch.spec
|
56 | 0 |
gitswitch.specadded@@ -0,0 +1,56 @@ | |||
| 1 | +Name: gitswitch | ||
| 2 | +Version: 1.0.0 | ||
| 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 | +BuildRequires: gcc | ||
| 12 | +BuildRequires: make | ||
| 13 | +BuildRequires: openssl-devel | ||
| 14 | +Requires: git | ||
| 15 | +Requires: openssh-clients | ||
| 16 | +Requires: openssl | ||
| 17 | + | ||
| 18 | +%description | ||
| 19 | +gitswitch is a C port of the original Python tool for safely switching between | ||
| 20 | +Git identities with complete SSH and GPG isolation. It provides secure | ||
| 21 | +environment separation for developers working with multiple Git accounts, | ||
| 22 | +ensuring credentials never leak between different identities. | ||
| 23 | + | ||
| 24 | +Features: | ||
| 25 | +- Safe Git identity switching | ||
| 26 | +- SSH key isolation per account | ||
| 27 | +- GPG environment separation | ||
| 28 | +- Configuration health checking | ||
| 29 | +- Interactive account management | ||
| 30 | +- Comprehensive security hardening | ||
| 31 | + | ||
| 32 | +%prep | ||
| 33 | +%autosetup | ||
| 34 | + | ||
| 35 | +%build | ||
| 36 | +# Build release version with security hardening | ||
| 37 | +make BUILD_TYPE=release %{?_smp_mflags} | ||
| 38 | + | ||
| 39 | +%install | ||
| 40 | +# Install to buildroot | ||
| 41 | +make install DESTDIR=%{buildroot} | ||
| 42 | + | ||
| 43 | +# Install documentation | ||
| 44 | +install -d %{buildroot}%{_docdir}/%{name} | ||
| 45 | +install -m 644 README.md %{buildroot}%{_docdir}/%{name}/ | ||
| 46 | + | ||
| 47 | +%files | ||
| 48 | +%doc README.md | ||
| 49 | +/usr/local/bin/gitswitch | ||
| 50 | +%{_docdir}/%{name}/ | ||
| 51 | + | ||
| 52 | +%changelog | ||
| 53 | +* Sun Aug 24 2025 mfw <espadonne@outlook.com> - 1.0.0-1 | ||
| 54 | +- Initial RPM release | ||
| 55 | +- C port with security hardening | ||
| 56 | +- SSH and GPG isolation features | ||