From 69a5deff0b1c8233cf620bfde20eece8476926b2 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 30 Apr 2020 12:02:54 +0200 Subject: [PATCH] Install user systemd units (The last update was to 2.2.20) --- gnupg2.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnupg2.spec b/gnupg2.spec index 0d0bbee..2749163 100644 --- a/gnupg2.spec +++ b/gnupg2.spec @@ -7,7 +7,7 @@ Summary: Utility for secure communication and data storage Name: gnupg2 Version: 2.2.20 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Source0: ftp://ftp.gnupg.org/gcrypt/%{?pre:alpha/}gnupg/gnupg-%{version}%{?pre}.tar.bz2 @@ -169,6 +169,11 @@ rm -f %{buildroot}%{_infodir}/dir # drop the gpg scheme interpreter rm -f %{buildroot}%{_bindir}/gpgscm +# Move the systemd user units to appropriate directory +install -d -m755 %{buildroot}%{_userunitdir} +mv %{buildroot}%{_pkgdocdir}/examples/systemd-user/*.socket %{buildroot}%{_userunitdir} +mv %{buildroot}%{_pkgdocdir}/examples/systemd-user/*.service %{buildroot}%{_userunitdir} + %check # need scratch gpg database for tests mkdir -p $HOME/.gnupg @@ -205,6 +210,7 @@ make -k check %{_libexecdir}/* %{_infodir}/*.info* %{_mandir}/man?/* +%{_userunitdir}/* %exclude %{_mandir}/man?/gpgsm* %files smime @@ -214,6 +220,9 @@ make -k check %changelog +* Thu Apr 30 2020 Tomáš Mráz - 2.2.20-2 +- move systemd user units to _userunitdir (no activation by default) + * Tue Apr 14 2020 Tomáš Mráz - 2.2.20-1 - upgrade to 2.2.20