commit e0be8dcfba6a26ee25b14224671e02e776c5c305
Author: Jakub Bogusz <[email protected]>
Date:   Tue Dec 5 20:38:46 2017 +0100

    - updated to 2.1.23 (last 2.1 release)
    - added default_gpg bcond (gnupg 2.1/2.2 installs as gpg by default now, 
make an option in spec)
    - honour system _libexecdir, but use subdirectory

 gnupg2.spec | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)
---
diff --git a/gnupg2.spec b/gnupg2.spec
index 2bb0dd3..b9cab70 100644
--- a/gnupg2.spec
+++ b/gnupg2.spec
@@ -1,19 +1,20 @@
 #
 # Conditional build:
-%bcond_without tests   # testsuite on build
-%bcond_with    gnutls  # GnuTLS instead of NTBTLS
-%bcond_with    selinux # "SELinux hacks"
+%bcond_without tests           # testsuite on build
+%bcond_with    default_gpg     # install as gpg/gpgv instead of gpg2/gpgv2
+%bcond_with    gnutls          # GnuTLS instead of NTBTLS
+%bcond_with    selinux         # "SELinux hacks"
 #
 Summary:       GNU Privacy Guard - tool for secure communication and data 
storage - enhanced version
 Summary(pl.UTF-8):     GnuPG - narzędzie do bezpiecznej komunikacji i 
bezpiecznego przechowywania danych - wersja rozszerzona
 Name:          gnupg2
 # 2.1.x is development version unfortunately (see gpg2 --version)
-Version:       2.1.21
+Version:       2.1.23
 Release:       0.1
 License:       GPL v3+
 Group:         Applications/File
 Source0:       ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
-# Source0-md5: 685ebf4c3a7134ba0209c96b18b2f064
+# Source0-md5: 86c2304ead54b74a422e76c3f1bc7a91
 Source1:       gnupg-agent.sh
 Patch0:                %{name}-info.patch
 
@@ -44,10 +45,11 @@ BuildRequires:      texinfo
 BuildRequires: zlib-devel
 Requires:      gnupg2-common = %{version}-%{release}
 Requires:      sqlite3 >= 3.7
+%{?with_default_gpg:Obsoletes: gnupg < 2}
 Suggests:      gnupg-agent
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _libexecdir     %{_libdir}/gnupg2
+%define                pkglibexecdir   %{_libexecdir}/gnupg2
 
 %description
 GnuPG is GNU's tool for secure communication and data storage. It can
@@ -157,12 +159,14 @@ Rozszerzenie GnuPG - obsługa S/MIME.
 %{__autoheader}
 %{__automake}
 %configure \
+       --libexecdir=%{pkglibexecdir} \
        --disable-dirmngr \
        --enable-g13 \
-       --enable-gpg \
+       %{!?with_default_gpg:--enable-gpg-is-gpg2} \
        %{?with_gnutls:--disable-ntbtls} \
        %{?with_selinux:--enable-selinux-support} \
        --enable-symcryptrun \
+       --enable-wks-tools \
        --with-capabilities \
        --with-pinentry-pgm=%{_bindir}/pinentry \
        --with-mailprog=/usr/lib/sendmail
@@ -209,10 +213,17 @@ EOF
 
 %files
 %defattr(644,root,root,755)
+%if %{with default_gpg}
+%attr(755,root,root) %{_bindir}/gpg
+%attr(755,root,root) %{_bindir}/gpgv
+%{_mandir}/man1/gpg.1*
+%{_mandir}/man1/gpgv.1*
+%else
 %attr(755,root,root) %{_bindir}/gpg2
 %attr(755,root,root) %{_bindir}/gpgv2
 %{_mandir}/man1/gpg2.1*
 %{_mandir}/man1/gpgv2.1*
+%endif
 
 %files common -f gnupg2.lang
 %defattr(644,root,root,755)
@@ -228,7 +239,7 @@ EOF
 %attr(755,root,root) %{_sbindir}/addgnupghome
 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
 %attr(755,root,root) %{_sbindir}/g13-syshelp
-%dir %{_libexecdir}
+%dir %{pkglibexecdir}
 
 %{_datadir}/gnupg
 %{_mandir}/man1/gpg-connect-agent.1*
@@ -248,14 +259,17 @@ EOF
 %files -n gnupg-agent
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gpg-agent
+%attr(755,root,root) %{_bindir}/gpg-wks-server
 %attr(755,root,root) %{_bindir}/symcryptrun
-%attr(755,root,root) %{_libexecdir}/gpg-check-pattern
-%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
-%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
-%attr(755,root,root) %{_libexecdir}/gpg-wks-client
-%attr(755,root,root) %{_libexecdir}/scdaemon
+%attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
+%attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
+%attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
+%attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
+%attr(755,root,root) %{pkglibexecdir}/scdaemon
 %{_mandir}/man1/gpg-agent.1*
 %{_mandir}/man1/gpg-preset-passphrase.1*
+%{_mandir}/man1/gpg-wks-client.1*
+%{_mandir}/man1/gpg-wks-server.1*
 %{_mandir}/man1/scdaemon.1*
 %{_mandir}/man1/symcryptrun.1*
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnupg2.git/commitdiff/e0be8dcfba6a26ee25b14224671e02e776c5c305

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to