fix post and preun script errors due to commented systemd macros [release 2.5.0-2mamba;Thu Dec 05 2024]
This commit is contained in:
parent
82244116a6
commit
50813b6106
32
gnupg2.spec
32
gnupg2.spec
@ -1,6 +1,6 @@
|
|||||||
Name: gnupg2
|
Name: gnupg2
|
||||||
Version: 2.5.0
|
Version: 2.5.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: GnuPG is a complete and free replacement for PGP
|
Summary: GnuPG is a complete and free replacement for PGP
|
||||||
Group: Applications/Security
|
Group: Applications/Security
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -53,8 +53,6 @@ GnuPG is a RFC2440 (OpenPGP) compliant application.
|
|||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
#LIBREADLINE="-lreadline -ltermcap"
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall pkgdatadir=%{_datadir}/gnupg2
|
%makeinstall pkgdatadir=%{_datadir}/gnupg2
|
||||||
@ -62,12 +60,7 @@ GnuPG is a RFC2440 (OpenPGP) compliant application.
|
|||||||
ln -s gpg %{buildroot}%{_bindir}/gpg2
|
ln -s gpg %{buildroot}%{_bindir}/gpg2
|
||||||
ln -s gpgv %{buildroot}%{_bindir}/gpgv2
|
ln -s gpgv %{buildroot}%{_bindir}/gpgv2
|
||||||
|
|
||||||
# Move the systemd user units to appropriate directory
|
# Install systemd user sockets to appropriate directory
|
||||||
#install -d -m755 %{buildroot}%{_userunitdir}
|
|
||||||
#mv %{buildroot}%{_docdir}/gnupg/examples/systemd-user/*.socket %{buildroot}%{_userunitdir}
|
|
||||||
#mv %{buildroot}%{_docdir}/gnupg/examples/systemd-user/*.service %{buildroot}%{_userunitdir}
|
|
||||||
|
|
||||||
|
|
||||||
units=({dirmngr,gpg-agent{,-{browser,extra,ssh}}}.socket)
|
units=({dirmngr,gpg-agent{,-{browser,extra,ssh}}}.socket)
|
||||||
socket_target_dir=%{_userunitdir}/sockets.target.wants/
|
socket_target_dir=%{_userunitdir}/sockets.target.wants/
|
||||||
|
|
||||||
@ -85,31 +78,19 @@ rm -f %{buildroot}%{_infodir}/dir
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
#%systemd_user_post dirmngr.socket
|
%install_info gnupg.info
|
||||||
#%systemd_user_post gpg-agent.socket
|
|
||||||
#%systemd_user_post gpg-agent-ssh.socket
|
|
||||||
#%systemd_user_post gpg-agent-extra.socket
|
|
||||||
#%systemd_user_post gpg-agent-browser.socket
|
|
||||||
#%install_info gnupg.info
|
|
||||||
:
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
#%systemd_user_preun dirmngr.service
|
%uninstall_info gnupg.info
|
||||||
#%systemd_user_preun gpg-agent.service
|
|
||||||
#%systemd_user_preun gpg-agent-ssh.service
|
|
||||||
#%systemd_user_preun gpg-agent-extra.service
|
|
||||||
#%systemd_user_preun gpg-agent-browser.service
|
|
||||||
#%uninstall_info gnupg.info
|
|
||||||
:
|
:
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/dirmngr
|
%{_bindir}/dirmngr
|
||||||
%{_bindir}/dirmngr-client
|
%{_bindir}/dirmngr-client
|
||||||
#%{_bindir}/g13
|
|
||||||
%{_bindir}/gpg*
|
%{_bindir}/gpg*
|
||||||
%{_bindir}/kbxutil
|
%{_bindir}/kbxutil
|
||||||
#%{_bindir}/symcryptrun
|
|
||||||
%{_bindir}/watchgnupg
|
%{_bindir}/watchgnupg
|
||||||
%{_sbindir}/addgnupghome
|
%{_sbindir}/addgnupghome
|
||||||
%{_sbindir}/applygnupgdefaults
|
%{_sbindir}/applygnupgdefaults
|
||||||
@ -121,8 +102,6 @@ rm -f %{buildroot}%{_infodir}/dir
|
|||||||
%{_libexecdir}/keyboxd
|
%{_libexecdir}/keyboxd
|
||||||
%{_libexecdir}/scdaemon
|
%{_libexecdir}/scdaemon
|
||||||
%{_libexecdir}/tpm2daemon
|
%{_libexecdir}/tpm2daemon
|
||||||
#%{_userunitdir}/*.service
|
|
||||||
#%{_userunitdir}/*.socket
|
|
||||||
%{_userunitdir}/sockets.target.wants/*.socket
|
%{_userunitdir}/sockets.target.wants/*.socket
|
||||||
%{_infodir}/gnupg.*
|
%{_infodir}/gnupg.*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
@ -133,6 +112,9 @@ rm -f %{buildroot}%{_infodir}/dir
|
|||||||
%doc AUTHORS COPYING
|
%doc AUTHORS COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.0-2mamba
|
||||||
|
- fix post and preun script errors due to commented systemd macros
|
||||||
|
|
||||||
* Sat Oct 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.0-1mamba
|
* Sat Oct 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.0-1mamba
|
||||||
- update to 2.5.0
|
- update to 2.5.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user