install and enable user unit files [release 2.3.1-2mamba;Sat Jul 03 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:17:15 +01:00
parent 2d37e83504
commit 7250977029

View File

@ -1,11 +1,11 @@
Name: gnupg2
Version: 2.3.1
Release: 1mamba
Release: 2mamba
Summary: GnuPG is a complete and free replacement for PGP
Group: Applications/Security
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gnupg.org
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
License: GPL
@ -21,7 +21,6 @@ BuildRequires: libnpth-devel
BuildRequires: libopenldap-devel
BuildRequires: libreadline-devel
BuildRequires: libsqlite-devel
BuildRequires: libtermcap-devel
BuildRequires: libtss2-devel
BuildRequires: libusb-devel
BuildRequires: libz-devel
@ -51,9 +50,9 @@ GnuPG is a RFC2440 (OpenPGP) compliant application.
--disable-rpath \
--enable-maintainer-mode
# --with-capabilities
%make
%make LIBREADLINE="-lreadline -ltermcap"
#LIBREADLINE="-lreadline -ltermcap"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -62,16 +61,33 @@ GnuPG is a RFC2440 (OpenPGP) compliant application.
ln -s gpg %{buildroot}%{_bindir}/gpg2
ln -s gpgv %{buildroot}%{_bindir}/gpgv2
# Move the systemd user units 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}
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_user_post dirmngr.socket
%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
%systemd_user_preun dirmngr.service
%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
%defattr(-,root,root)
@ -92,6 +108,8 @@ ln -s gpgv %{buildroot}%{_bindir}/gpgv2
%{_libexecdir}/keyboxd
%{_libexecdir}/scdaemon
%{_libexecdir}/tpm2daemon
%{_userunitdir}/*.service
%{_userunitdir}/*.socket
%{_infodir}/gnupg.*
%{_mandir}/man1/*
%{_mandir}/man7/gnupg.7*
@ -101,6 +119,9 @@ ln -s gpgv %{buildroot}%{_bindir}/gpgv2
%doc AUTHORS COPYING
%changelog
* Sat Jul 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.1-2mamba
- install and enable user unit files
* Tue Apr 20 2021 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
- automatic version update by autodist