parent
006c46cf13
commit
e7d0abc607
@ -1,22 +0,0 @@
|
|||||||
#==============================================================================
|
|
||||||
# ---- GPG signature macros.
|
|
||||||
# The signature to use and the location of configuration files for
|
|
||||||
# signing packages with GNU gpg.
|
|
||||||
#
|
|
||||||
#%_gpg_name
|
|
||||||
#%_gpg_path
|
|
||||||
|
|
||||||
%__gpg /usr/bin/gpg2
|
|
||||||
|
|
||||||
# Macro(s) to hold the arguments passed to GPG/PGP for package
|
|
||||||
# signing. Expansion result is parsed by popt, so be sure to use
|
|
||||||
# %{shescape} where needed.
|
|
||||||
#
|
|
||||||
%__gpg_sign_cmd %{shescape:%{__gpg}} \
|
|
||||||
gpg --no-verbose --no-armor --no-secmem-warning \
|
|
||||||
%{?_gpg_digest_algo:--digest-algo=%{_gpg_digest_algo}} \
|
|
||||||
%{?_gpg_sign_cmd_extra_args} \
|
|
||||||
%{?_gpg_name:-u %{shescape:%{_gpg_name}}} \
|
|
||||||
-sbo %{shescape:%{?__signature_filename}} \
|
|
||||||
%{?__plaintext_filename:-- %{shescape:%{__plaintext_filename}}}
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
#==============================================================================
|
||||||
|
# ---- Sequoia signature macros.
|
||||||
|
# The signature to use and the location of configuration files for
|
||||||
|
# signing packages with Sequoia.
|
||||||
|
#
|
||||||
|
# To enable signing with sequoia-sq, just copy this file to /etc/rpm:
|
||||||
|
# cp /usr/share/doc/rpm/macros.rpmsign-sequoia /etc/rpm/
|
||||||
|
#
|
||||||
|
# Unlike GnuPG, Sequoia doesn't support specifying the signer key by
|
||||||
|
# email or name match, you need to supply the hex fingerprint (or keyid)
|
||||||
|
#%_gpg_name
|
||||||
|
#%_gpg_path
|
||||||
|
|
||||||
|
%__gpg /usr/bin/sq
|
||||||
|
|
||||||
|
# Macro(s) to hold the arguments passed to Sequoia for package
|
||||||
|
# signing. Expansion result is parsed by popt, so be sure to use
|
||||||
|
# %{shescape} where needed.
|
||||||
|
#
|
||||||
|
|
||||||
|
%__gpg_sign_cmd %{__gpg} %{__gpg} sign \
|
||||||
|
%{?_gpg_sign_cmd_extra_args} \
|
||||||
|
%{?_gpg_name:--signer-key %{_gpg_name}} \
|
||||||
|
--binary --detached --output %{shescape:%{?__signature_filename}} \
|
||||||
|
%{?__plaintext_filename:-- %{shescape:%{__plaintext_filename}}}
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
diff -up rpm-4.19.1.1/macros.in.nogpg rpm-4.19.1.1/macros.in
|
|
||||||
--- rpm-4.19.1.1/macros.in.nogpg 2024-10-14 10:01:22.265773552 +0300
|
|
||||||
+++ rpm-4.19.1.1/macros.in 2024-10-14 10:02:32.245317535 +0300
|
|
||||||
@@ -30,7 +30,6 @@
|
|
||||||
%__chown @__CHOWN@
|
|
||||||
%__cp @__CP@
|
|
||||||
%__file @__FILE@
|
|
||||||
-%__gpg @__GPG@
|
|
||||||
%__grep @__GREP@
|
|
||||||
%__gzip @__GZIP@
|
|
||||||
%__id @__ID@
|
|
||||||
@@ -321,12 +320,6 @@ Supplements: (%{name} = %{version}-%{r
|
|
||||||
# marked as %doc should be installed.
|
|
||||||
#%_excludedocs
|
|
||||||
|
|
||||||
-# The signature to use and the location of configuration files for
|
|
||||||
-# signing packages with GNU gpg.
|
|
||||||
-#
|
|
||||||
-#%_gpg_name
|
|
||||||
-#%_gpg_path
|
|
||||||
-
|
|
||||||
# The port and machine name of an HTTP proxy host (used for FTP/HTTP).
|
|
||||||
#
|
|
||||||
#%_httpport
|
|
||||||
@@ -595,10 +588,10 @@ Supplements: (%{name} = %{version}-%{r
|
|
||||||
%_fileattrsdir %{_rpmconfigdir}/fileattrs
|
|
||||||
|
|
||||||
# This macro defines how much space (in bytes) in package should be
|
|
||||||
-# reserved for gpg signatures during building of a package. If this space is
|
|
||||||
-# big enough for gpg signatures to fit into it then signing of the packages is
|
|
||||||
+# reserved for OpenPGP signatures during building of a package. If this space
|
|
||||||
+# big enough for the signature to fit into it then signing of the packages is
|
|
||||||
# very quick because it is not necessary to rewrite the whole package to make
|
|
||||||
-# some space for gpg signatures.
|
|
||||||
+# some space for the signature.
|
|
||||||
%__gpg_reserved_space 4096
|
|
||||||
|
|
||||||
#==============================================================================
|
|
||||||
@@ -613,20 +606,6 @@ Supplements: (%{name} = %{version}-%{r
|
|
||||||
%_db_backend @DB_BACKEND@
|
|
||||||
|
|
||||||
#==============================================================================
|
|
||||||
-# ---- GPG/PGP/PGP5 signature macros.
|
|
||||||
-# Macro(s) to hold the arguments passed to GPG/PGP for package
|
|
||||||
-# signing. Expansion result is parsed by popt, so be sure to use
|
|
||||||
-# %{shescape} where needed.
|
|
||||||
-#
|
|
||||||
-%__gpg_sign_cmd %{shescape:%{__gpg}} \
|
|
||||||
- gpg --no-verbose --no-armor --no-secmem-warning \
|
|
||||||
- %{?_gpg_digest_algo:--digest-algo=%{_gpg_digest_algo}} \
|
|
||||||
- %{?_gpg_sign_cmd_extra_args} \
|
|
||||||
- %{?_gpg_name:-u %{shescape:%{_gpg_name}}} \
|
|
||||||
- -sbo %{shescape:%{?__signature_filename}} \
|
|
||||||
- %{?__plaintext_filename:-- %{shescape:%{__plaintext_filename}}}
|
|
||||||
-
|
|
||||||
-#==============================================================================
|
|
||||||
# ---- Transaction macros.
|
|
||||||
# Macro(s) used to parameterize transactions.
|
|
||||||
#
|
|
Loading…
Reference in new issue