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