tenseleyflow/gitswitch / 4525339

Browse files

release: bump to 1.3.1

Authored by espadonne
SHA
4525339c4f7537da840e2dd86a488fd64daf0f08
Parents
3a0fb9f
Tree
1260e30

1 changed file

StatusFile+-
M gitswitcher.spec 8 3
gitswitcher.specmodified
@@ -1,5 +1,5 @@
11
 Name:           gitswitcher
2
-Version:        1.3.0
2
+Version:        1.3.1
33
 Release:        1%{?dist}
44
 Summary:        Secure Git identity and SSH/GPG key management tool for seamless account switching
55
 
@@ -37,8 +37,9 @@ Features:
3737
 %autosetup
3838
 
3939
 %build
40
-# Build release version with security hardening
41
-make BUILD_TYPE=release %{?_smp_mflags}
40
+# Build release version with security hardening. Pass VERSION explicitly so
41
+# the binary reports the RPM version even when .git isn't present in %{_builddir}.
42
+make BUILD_TYPE=release VERSION=%{version} COMMIT=rpm %{?_smp_mflags}
4243
 
4344
 %install
4445
 # Install to buildroot
@@ -53,6 +54,10 @@ install -m 644 README.md %{buildroot}%{_docdir}/%{name}/
5354
 %{_docdir}/%{name}/README.md
5455
 
5556
 %changelog
57
+* Thu Apr 16 2026 mfw <espadonne@outlook.com> - 1.3.1-1
58
+- Fix: version string resolves to the tagged release when built from a source tarball (no .git) via new VERSION file fallback in the Makefile.
59
+- Build: RPM spec now passes VERSION=%{version} explicitly.
60
+
5661
 * Thu Apr 16 2026 mfw <espadonne@outlook.com> - 1.3.0-1
5762
 - Feature: `gitswitch init <shell>` subcommand emits SSH_AUTH_SOCK wiring for fish/bash/zsh/sh/dash/ksh
5863
 - Feature: `--ssh-agent-info` compat alias auto-detects shell from $SHELL for Python-era rc files