Accepting request 261410 from home:vitezslav_cizek:branches:Base:System
created delete request for dirmngr: #261401 also a pull request for source validator, because --pgp2 option which it uses is no longer supported: https://github.com/openSUSE/obs-service-source_validator/pull/13/files - obsolete dirmngr (shipped with gpg since 2.1.0) - spec cleanup after previous update - get rid of "THIS IS A DEVELOPMENT VERSION" warning http://lists.gnupg.org/pipermail/gnupg-devel/2014-November/029065.html * added gnupg-remove_development_version_warning.patch OBS-URL: https://build.opensuse.org/request/show/261410 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpg2?expand=0&rev=83
This commit is contained in:
97
gpg2.spec
97
gpg2.spec
@@ -19,9 +19,26 @@
|
||||
Name: gpg2
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: GnuPG 2
|
||||
License: GPL-3.0+
|
||||
Group: Productivity/Networking/Security
|
||||
Url: http://www.gnupg.org/aegypten2/
|
||||
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
||||
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
||||
# https://www.gnupg.org/signature_key.html
|
||||
Source3: %{name}.keyring
|
||||
Patch2: gnupg-2.0.4-install_tools.diff
|
||||
Patch4: gnupg-2.0.9-langinfo.patch
|
||||
Patch5: gnupg-2.0.18-files-are-digests.patch
|
||||
Patch6: gnupg-dont-fail-with-seahorse-agent.patch
|
||||
Patch8: gnupg-set_umask_before_open_outfile.patch
|
||||
Patch9: gnupg-detect_FIPS_mode.patch
|
||||
Patch11: gnupg-add_legacy_FIPS_mode_option.patch
|
||||
Patch12: gnupg-remove_development_version_warning.patch
|
||||
BuildRequires: automake >= 1.10
|
||||
BuildRequires: expect
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gnutls-devel
|
||||
BuildRequires: libadns-devel
|
||||
BuildRequires: libassuan-devel >= 2.0.0
|
||||
BuildRequires: libbz2-devel
|
||||
@@ -33,46 +50,23 @@ BuildRequires: libgpg-error-devel >= 1.11
|
||||
BuildRequires: libksba-devel >= 1.0.7
|
||||
BuildRequires: libusb-devel
|
||||
BuildRequires: makeinfo
|
||||
BuildRequires: npth-devel
|
||||
BuildRequires: openldap2-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: zlib-devel
|
||||
#% if 0%{?suse_version} >= 1120
|
||||
#BuildRequires: libpth-devel >= 1.3.7
|
||||
#% else
|
||||
#BuildRequires: pth >= 1.3.7
|
||||
#% endif
|
||||
BuildRequires: gnutls-devel
|
||||
BuildRequires: npth-devel
|
||||
BuildRequires: pkg-config
|
||||
Url: http://www.gnupg.org/aegypten2/
|
||||
PreReq: %install_info_prereq
|
||||
Requires: dirmngr
|
||||
Requires: pinentry
|
||||
Recommends: %name-lang = %{version}
|
||||
# FIXME: use proper Requires(pre/post/preun/...)
|
||||
PreReq: %{install_info_prereq}
|
||||
Recommends: %{name}-lang = %{version}
|
||||
Obsoletes: dirmngr < 2.1.0
|
||||
Provides: dirmngr = %{version}
|
||||
Provides: gnupg = %{version}
|
||||
Provides: gpg = 1.4.9
|
||||
Provides: newpg
|
||||
# special feature needed for OBS signd
|
||||
Provides: gpg2_signd_support
|
||||
Obsoletes: gpg < 1.4.9
|
||||
Summary: GnuPG 2
|
||||
License: GPL-3.0+
|
||||
Group: Productivity/Networking/Security
|
||||
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
||||
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
||||
# https://www.gnupg.org/signature_key.html
|
||||
Source3: %{name}.keyring
|
||||
#Patch1: gnupg-2.0.18-tmpdir.diff
|
||||
Patch2: gnupg-2.0.4-install_tools.diff
|
||||
Patch4: gnupg-2.0.9-langinfo.patch
|
||||
Patch5: gnupg-2.0.18-files-are-digests.patch
|
||||
Patch6: gnupg-dont-fail-with-seahorse-agent.patch
|
||||
Patch8: gnupg-set_umask_before_open_outfile.patch
|
||||
Patch9: gnupg-detect_FIPS_mode.patch
|
||||
# PATCH-FIX-OPENSUSE coolo@suse.de -- automake 1.13 already includes $SHELL
|
||||
#Patch10: gnupg-2.0.20-automake113.diff
|
||||
Patch11: gnupg-add_legacy_FIPS_mode_option.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -80,24 +74,24 @@ GnuPG 2 is the successor of "GnuPG" or GPG. It provides: GPGSM,
|
||||
gpg-agent, and a keybox library.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%setup -q -n gnupg-%version
|
||||
#%patch1 -p1
|
||||
%setup -q -n gnupg-%{version}
|
||||
%patch2
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
#%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
# build PIEs (position independent executables) for address space randomisation:
|
||||
%ifarch s390x %sparc
|
||||
%ifarch s390x %{sparc}
|
||||
# s390x needs to use the large PIE model (at least for gpg.c):
|
||||
PIE="-fPIE"
|
||||
PIE="-fPIE"
|
||||
%else
|
||||
PIE="-fpie"
|
||||
%endif
|
||||
@@ -106,10 +100,10 @@ export LDFLAGS=-pie
|
||||
%configure \
|
||||
--libexecdir=%{_libdir} \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--with-agent-pgm=%{_prefix}/bin/gpg-agent \
|
||||
--with-pinentry-pgm=%{_prefix}/bin/pinentry \
|
||||
--with-dirmngr-pgm=%{_prefix}/bin/dirmngr \
|
||||
--with-scdaemon-pgm=%{_prefix}/bin/scdaemon \
|
||||
--with-agent-pgm=%{_bindir}/gpg-agent \
|
||||
--with-pinentry-pgm=%{_bindir}/pinentry \
|
||||
--with-dirmngr-pgm=%{_bindir}/dirmngr \
|
||||
--with-scdaemon-pgm=%{_bindir}/scdaemon \
|
||||
--enable-ldap \
|
||||
--enable-gpgsm=yes \
|
||||
--enable-gpg \
|
||||
@@ -119,28 +113,28 @@ export LDFLAGS=-pie
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/gnupg/
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/gnupg/
|
||||
# bnc#391347
|
||||
install -m 644 doc/examples/gpgconf.conf $RPM_BUILD_ROOT/etc/gnupg
|
||||
install -m 644 doc/examples/gpgconf.conf %{buildroot}%{_sysconfdir}/gnupg
|
||||
# delete to prevent fdupes from creating cross-partition hardlink
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/gpg2/examples/gpgconf.conf
|
||||
rm $RPM_BUILD_ROOT/usr/share/info/dir
|
||||
rm -rf %{buildroot}%{_docdir}/gpg2/examples/gpgconf.conf
|
||||
rm %{buildroot}%{_infodir}/dir
|
||||
# compat symlinks
|
||||
ln -sf gpg2 $RPM_BUILD_ROOT/usr/bin/gpg
|
||||
ln -sf gpgv2 $RPM_BUILD_ROOT/usr/bin/gpgv
|
||||
ln -sf gpg2.1 $RPM_BUILD_ROOT/usr/share/man/man1/gpg.1
|
||||
ln -sf gpgv2.1 $RPM_BUILD_ROOT/usr/share/man/man1/gpgv.1
|
||||
ln -sf gpg2 %{buildroot}%{_bindir}/gpg
|
||||
ln -sf gpgv2 %{buildroot}%{_bindir}/gpgv
|
||||
ln -sf gpg2.1 %{buildroot}%{_mandir}/man1/gpg.1
|
||||
ln -sf gpgv2.1 %{buildroot}%{_mandir}/man1/gpgv.1
|
||||
# fix rpmlint invalid-lc-messages-dir:
|
||||
rm -rf $RPM_BUILD_ROOT/%_datadir/locale/en@{bold,}quot
|
||||
rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
|
||||
# additional files to documentation directory
|
||||
install -m 644 AUTHORS COPYING ChangeLog NEWS THANKS TODO doc/FAQ $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
||||
install -m 644 AUTHORS COPYING ChangeLog NEWS THANKS TODO doc/FAQ %{buildroot}/%{_docdir}/%{name}
|
||||
# install scdaemon to %{_bindir} (bnc#863645)
|
||||
mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
|
||||
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
|
||||
%find_lang gnupg2
|
||||
%if 0%{?suse_version} > 1020
|
||||
%fdupes %buildroot
|
||||
%fdupes %{buildroot}
|
||||
%endif
|
||||
|
||||
%check
|
||||
@@ -155,6 +149,7 @@ make check
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
||||
|
||||
%files lang -f gnupg2.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user