@@ -66,25 +66,17 @@ for arch in x86_64 ; do
6666 # hashes in a text file at the root of the Debian repo, RPM puts a separate
6767 # signature in each package file. Command copied from:
6868 # https://ask.fedoraproject.org/en/question/56107/can-gpg-agent-be-used-when-signing-rpm-packages/
69- #
70- # The `setsid` and `/dev/null` bits are both required to suppress the no-op
71- # password prompt that appears despite the agent configs.
72- echo " Signing '$rpmcopy '..."
73- echo " Signing '$rpmcopy '...1.. $( which gpg) $( which gpg1) "
74- # setsid -w rpm \
7569 rpm \
7670 --define " _gpg_name $code_signing_fingerprint " \
7771 --define ' _signature gpg' \
78- --define ' _gpgbin /usr/bin/gpg1 ' \
72+ --define ' _gpgbin /usr/bin/gpg ' \
7973 --define ' __gpg_check_password_cmd /bin/true' \
80- --define ' __gpg_sign_cmd %{__gpg} /usr/bin/gpg1 --batch --no-verbose --no-armor --use-agent --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}' \
74+ --define ' __gpg_sign_cmd %{__gpg} gpg --batch --no-verbose --no-armor --use-agent --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}' \
8175 --addsign " $rpmcopy "
82- # --addsign "$rpmcopy" < /dev/null
8376
84- echo " Signing '$rpmcopy '...2"
8577 # Add a standalone signature file, for user convenience. Other packaging
8678 # steps will pick this up and copy it around.
87- /usr/bin/ gpg --detach-sign --armor --use-agent --local-user " $code_signing_fingerprint " \
79+ gpg --detach-sign --armor --use-agent --local-user " $code_signing_fingerprint " \
8880 -o " $rpmcopy .sig" " $rpmcopy "
8981
9082 # Update the latest pointer. Even though the RPM repo is split by
@@ -93,15 +85,12 @@ for arch in x86_64 ; do
9385 ln -sf " repo/$arch /$rpmname " " $repo_root /$binary_name -latest-$arch .rpm"
9486 ln -sf " repo/$arch /$rpmname .sig" " $repo_root /$binary_name -latest-$arch .rpm.sig"
9587
96- echo " Signing '$rpmcopy '...3"
9788 # Run createrepo to update the database files.
9889 " $CREATEREPO " " $repo_root /repo/$arch "
9990
100- /usr/bin/ gpg --detach-sign --armor --use-agent --local-user " $code_signing_fingerprint " \
91+ gpg --detach-sign --armor --use-agent --local-user " $code_signing_fingerprint " \
10192 -o " $repo_root /repo/$arch /repodata/repomd.xml.asc" " $repo_root /repo/$arch /repodata/repomd.xml"
10293
103- echo " Signing '$rpmcopy '...4"
10494 # Add updateinfo.xml changelog to the repo
10595 " $MODIFYREPO " " $here /updateinfo.xml" " $repo_root /repo/$arch /repodata"
106- echo " Signing '$rpmcopy '...5"
10796done
0 commit comments