Compare commits

..

1 commit

Author SHA1 Message Date
Björn Persson
c514952dd3 Evaluate _libexecdir at build time. 2025-06-26 23:29:23 +02:00
2 changed files with 9 additions and 14 deletions

View file

@ -1,16 +1,16 @@
Name: gpgverify Name: gpgverify
Version: 2.2 Version: 2.2
Release: 3%{?dist} Release: 1%{?dist}
Summary: Signature verifier for easy and safe scripting Summary: Signature verifier for easy and safe scripting
License: Boehm-GC License: Boehm-GC
URL: https://src.fedoraproject.org/rpms/gpgverify URL: https://src.fedoraproject.org/rpms/gpgverify
Source: gpgverify Source: gpgverify
Source: macros.gpgverify.in Source: macros.gpgverify
Source: license.txt Source: license.txt
BuildArch: noarch BuildArch: noarch
Requires: grep gnupg2 gnupg2-verify Requires: grep gnupg2
%description %description
GPGverify is a wrapper around GnuPG's gpgv. It verifies a file against an GPGverify is a wrapper around GnuPG's gpgv. It verifies a file against an
@ -26,9 +26,9 @@ cp --preserve=timestamps %{sources} .
%conf %conf
# Convey the location of the shellscript to macros.gpgverify. To keep build # Convey the location of the shellscript to macros.gpgverify. To keep build
# dependencies minimal, do substitution in Bash instead of something like Sed. # dependencies minimal, just append a macro definition instead of editing the
macrofile=$(<macros.gpgverify.in) # file with something like Sed.
echo -E "${macrofile/@libexecdir@/'%{_libexecdir}'}" >macros.gpgverify echo '%%gpgverify_directory %{_libexecdir}' >>macros.gpgverify
%install %install
mkdir --parents %{buildroot}%{rpmmacrodir} %{buildroot}%{_libexecdir} mkdir --parents %{buildroot}%{rpmmacrodir} %{buildroot}%{_libexecdir}
@ -41,13 +41,7 @@ cp macros.gpgverify %{buildroot}%{rpmmacrodir}/
%license license.txt %license license.txt
%changelog %changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-3 * Thu Jun 26 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2.2-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 15 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2.2-2
- Adapted the dependencies because the gnupg2 package has been split.
* Fri Jun 27 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2.2-1
- Evaluate _libexecdir at build time, not at run time (reported by Yaakov - Evaluate _libexecdir at build time, not at run time (reported by Yaakov
Selkowitz). Selkowitz).

View file

@ -13,7 +13,7 @@
# gpgverify verifies signed sources. There is documentation in the script. # gpgverify verifies signed sources. There is documentation in the script.
%gpgverify(k:s:d:) %{lua: %gpgverify(k:s:d:) %{lua:
local script = rpm.expand("@libexecdir@/gpgverify ") local script = rpm.expand("%{gpgverify_directory}/gpgverify ")
local keyring = rpm.expand("%{-k*}") local keyring = rpm.expand("%{-k*}")
local signature = rpm.expand("%{-s*}") local signature = rpm.expand("%{-s*}")
local data = rpm.expand("%{-d*}") local data = rpm.expand("%{-d*}")
@ -28,3 +28,4 @@ if data ~= "" then
print(rpm.expand("--data='%{SOURCE" .. data .. "}' ")) print(rpm.expand("--data='%{SOURCE" .. data .. "}' "))
end end
} }
# For simplicity, the location of the script is appended below at build time.