# trim changelog included in binary rpms %global _changelog_trimtime %(date +%s -d "1 year ago") # STATUS_KEY_CONSIDERED has been added in 2.1.13 %global gnupg2_min_ver 2.1.13 # GPG_ERR_SUBKEYS_EXP_OR_REV has been added in 1.23 %global libgpg_error_min_ver 1.23 Name: gpgme Summary: GnuPG Made Easy - high level crypto API Version: 1.7.0 Release: 1%{?dist} License: LGPLv2+ URL: http://www.gnupg.org/related_software/gpgme/ Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-%{version}.tar.bz2 Source2: gpgme-multilib.h # Don't add extra libs/cflags in gpgme-config Patch0: gpgme-1.7.0-confix_extras.patch # add -D_FILE_OFFSET_BITS... to gpgme-config, upstreamable Patch1: gpgme-1.3.2-largefile.patch BuildRequires: gcc BuildRequires: gawk # see patch2 above, else we only need 2.0.4 BuildRequires: gnupg2 >= %{gnupg2_min_ver} BuildRequires: gnupg2-smime BuildRequires: libgpg-error-devel >= %{libgpg_error_min_ver} BuildRequires: pth-devel BuildRequires: libassuan-devel >= 2.0.2 # For python bindings BuildRequires: swig # to remove RPATH BuildRequires: chrpath Requires: gnupg2 >= %{gnupg2_min_ver} # On the following architectures workaround multiarch conflict of -devel packages: %define multilib_arches %{ix86} x86_64 ia64 ppc ppc64 s390 s390x %{sparc} %description GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a high-level crypto API for encryption, decryption, signing, signature verification and key management. %package devel Summary: Development headers and libraries for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: libgpg-error-devel%{?_isa} >= %{libgpg_error_min_ver} # http://bugzilla.redhat.com/676954 # TODO: see if -lassuan can be added to config_extras patch too -- Rex #Requires: libassuan2-devel Requires(post): /sbin/install-info Requires(postun): /sbin/install-info %description devel %{summary}. %package -n python2-%{name} Summary: %{name} bindings for Python 2 %{?python_provide:%python_provide python2-%{name}} BuildRequires: python2-devel Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release} %description -n python2-%{name} %{summary}. %package -n python3-%{name} Summary: %{name} bindings for Python 3 %{?python_provide:%python_provide python3-%{name}} BuildRequires: python3-devel Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release} %description -n python3-%{name} %{summary}. %prep %autosetup -p1 ## HACK ALERT # The config script already suppresses the -L if it's /usr/lib, so cheat and # set it to a value which we know will be suppressed. sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in sed -i -e 's|GPG = gpg|GPG = gpg2|' tests/gpg/Makefile.{in,am} %build %configure --disable-static --disable-silent-rules --with-gpg=%{_bindir}/gpg2 --enable-languages=no %make_build # Build python bindings %global optflags %{optflags} -I%{_builddir}/%{?buildsubdir} pushd lang/python %py2_build %py3_build popd %install %make_install pushd lang/python %py2_install %py3_install popd # unpackaged files rm -fv %{buildroot}%{_infodir}/dir rm -fv %{buildroot}%{_libdir}/lib*.la rm -rfv %{buildroot}%{_datadir}/common-lisp/source/gpgme/ # Hack to resolve multiarch conflict (#341351) %ifarch %{multilib_arches} mv %{buildroot}%{_bindir}/gpgme-config{,.%{_target_cpu}} cat > gpgme-config-multilib.sh <<__END__ #!/bin/sh exec %{_bindir}/gpgme-config.\$(arch) \$@ __END__ install -D -p gpgme-config-multilib.sh %{buildroot}%{_bindir}/gpgme-config mv %{buildroot}%{_includedir}/gpgme.h \ %{buildroot}%{_includedir}/gpgme-%{__isa_bits}.h install -m644 -p -D %{SOURCE2} %{buildroot}%{_includedir}/gpgme.h %endif chrpath -d %{buildroot}%{_bindir}/%{name}-tool %check make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING* %doc AUTHORS ChangeLog NEWS README* THANKS TODO VERSION %{_libdir}/lib%{name}.so.11* %{_libdir}/lib%{name}-pthread.so.11* %post devel /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : %preun devel if [ $1 -eq 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : fi %files devel %{_bindir}/%{name}-config %{_bindir}/%{name}-tool %ifarch %{multilib_arches} %{_bindir}/gpgme-config.%{_target_cpu} %{_includedir}/gpgme-%{__isa_bits}.h %endif %{_includedir}/gpgme.h %{_libdir}/libgpgme*.so %{_datadir}/aclocal/gpgme.m4 %{_infodir}/gpgme.info* %files -n python2-%{name} %{python2_sitearch}/pyme3-*.egg-info %{python2_sitearch}/pyme/ %files -n python3-%{name} %{python3_sitearch}/pyme3-*.egg-info %{python3_sitearch}/pyme/ %changelog * Wed Sep 21 2016 Igor Gnatenko - 1.7.0-1 - Update to 1.7.0 * Mon Jul 25 2016 Igor Gnatenko - 1.6.0-3 - Set min ver for libgpg-error * Mon Jul 25 2016 Igor Gnatenko - 1.6.0-2 - Backport patch for STATUS_KEY_CONSIDERED (RHBZ #1359521) * Wed Jul 13 2016 Igor Gnatenko - 1.6.0-1 - Update to 1.6.0 (RHBZ #1167656) * Wed Feb 03 2016 Fedora Release Engineering - 1.4.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.4.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Dec 06 2014 Frantisek Kluknavsky - 1.4.3-5 - CVE-2014-3564, rhbz#1125170, gpgme-1.3.2-bufferoverflow.patch * Sat Aug 16 2014 Fedora Release Engineering - 1.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jul 12 2014 Tom Callaway - 1.4.3-3 - fix license handling * Sat Jun 07 2014 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Oct 09 2013 Rex Dieter - 1.4.3-1 - gpgme-1.4.3 - cleanup .spec, trim changelog * Sat Aug 03 2013 Fedora Release Engineering - 1.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 09 2013 Karsten Hopp 1.3.2-3 - rebuild to fix some f20 dependency issues on PPC * Thu Feb 14 2013 Fedora Release Engineering - 1.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 20 2012 Frantisek Kluknavsky - 1.3.2-2 - minor spec cleanup * Wed Sep 26 2012 Tomas Mraz - 1.3.2-1 - new upstream version - re-enable gpg tests (original patch by John Morris ) - quiet configure warning 'could not find g13' - there is no libgpgme-pth anymore * Thu Jul 19 2012 Fedora Release Engineering - 1.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Apr 22 2012 Rex Dieter 1.3.0-8 - -devel: make Requires: libgpg-error-devel arch'd - ensure gpgme-config wrapper is executable * Sun Apr 22 2012 Rex Dieter 1.3.0-7 - gpgme.h: fatal error: gpgme-i386.h: No such file or directory compilation terminated (#815116) * Wed Feb 15 2012 Simon Lukasik - 1.3.0-6 - Resolve multilib conflict of gpgme-config (#341351) - Resolve multilib conflict of gpgme.h (#341351) * Fri Jan 13 2012 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Mar 17 2011 Rex Dieter - 1.3.0-4 - gpgme-config: remove libassuan-related flags as threatened (#676954) \ * Sun Feb 13 2011 Rex Dieter - 1.3.0-3 - -devel: fix typo (broken dep) * Sat Feb 12 2011 Rex Dieter - 1.3.0-2 - BR: libassuan2-devel - gpgme-config outputs -lassuan (#676954) * Fri Feb 11 2011 Tomas Mraz - 1.3.0-1 - new upstream version * Tue Feb 08 2011 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Aug 18 2010 Tomas Mraz - 1.2.0-3 - fix the condition for adding the -D_FILE_OFFSET_BITS... * Wed Aug 11 2010 Tomas Mraz - 1.2.0-2 - add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698) * Fri Jul 02 2010 Rex Dieter - 1.2.0-1 - gpgme-1.2.0 (#610984) * Sun Feb 14 2010 Rex Dieter - 1.1.8-4 - FTBFS gpgme-1.1.8-3.fc13: ImplicitDSOLinking (#564605) * Thu Nov 19 2009 Tomas Mraz - 1.1.8-3 - Add buildrequires gnupg2-smime for the gpgsm * Fri Jul 24 2009 Fedora Release Engineering - 1.1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jun 20 2009 Rex Dieter - 1.1.8-1 - gpgme-1.1.8 - -devel: s/postun/preun/ info scriptlet * Wed Mar 11 2009 Rex Dieter - 1.1.7-3 - track shlib sonames closer, to highlight future abi/soname changes - _with_gpg macro, to potentially conditionalize gnupg vs gnupg2 defaults for various os/releases (ie, fedora vs rhel) * Tue Feb 24 2009 Fedora Release Engineering - 1.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Oct 18 2008 Rex Dieter 1.1.7-1 - gpgme-1.1.7 * Sun Feb 17 2008 Rex Dieter 1.1.6-3 - --with-gpg=%%_bindir/gpg2 (#432445) - drop Requires: gnupg (#432445) * Fri Feb 08 2008 Rex Dieter 1.1.6-2 - respin (gcc43) * Fri Jan 04 2008 Rex Dieter 1.1.6-1 - gpgme-1.1.6 - multiarch conflicts in gpgme (#341351) * Sat Aug 25 2007 Rex Dieter 1.1.5-4 - BR: gawk * Sat Aug 25 2007 Rex Dieter 1.1.5-3 - respin (BuildID) * Thu Aug 09 2007 Rex Dieter 1.1.5-2 - License: LGPLv2+ * Mon Jul 09 2007 Rex Dieter 1.1.5-1 - gpgme-1.1.5 * Mon Mar 05 2007 Rex Dieter 1.1.4-1 - gpgme-1.1.4 * Sat Feb 03 2007 Rex Dieter 1.1.3-1 - gpgme-1.1.3 * Tue Oct 03 2006 Rex Dieter - respin * Mon Sep 18 2006 Rex Dieter 1.1.2-6 - fix gpgme-config --thread=pthread --cflags * Tue Aug 29 2006 Rex Dieter 1.1.2-5 - fc6 respin * Mon Mar 6 2006 Rex Dieter 1.1.2-4 - add back support for gpgme-config --thread=pthread * Mon Mar 6 2006 Rex Dieter 1.1.2-2 - drop extraneous libs from gpgme-config * Fri Mar 3 2006 Rex Dieter 1.1.2-1 - 1.1.2 - drop upstreamed gpgme-1.1.0-tests.patch * Wed Mar 1 2006 Rex Dieter - fc5: gcc/glibc respin * Wed Nov 30 2005 Rex Dieter - 1.1.0-3 - (re)build against (newer) libksba/gnupg2 * Thu Oct 06 2005 Rex Dieter - 1.1.0-2 - 1.1.0 * Mon Aug 8 2005 Rex Dieter - 1.0.3-1 - 1.0.3 - --disable-static * Thu May 12 2005 Michael Schwendt - 1.0.2-3 - rebuilt * Fri Mar 18 2005 Ville Skyttä - 1.0.2-2 - Fix FC4 build. * Tue Feb 1 2005 Michael Schwendt - 0:1.0.2-1 - LGPL used here, and made summary more explicit. - Remove dirmngr dependency (gpgsm interfaces with it). - Obsolete cryptplug as gpgme >= 0.4.5 provides what we used cryptplug for. * Thu Jan 06 2005 Rex Dieter 0:1.0.2-0.fdr.1 - 1.0.2 * Thu Oct 21 2004 Rex Dieter 0:1.0.0-0.fdr.1 - 1.0.0 - Requires: dirmngr * Tue Oct 19 2004 Rex Dieter 0:0.4.7-0.fdr.1 - 0.4.7 * Sun May 2 2004 Ville Skyttä - 0:0.4.3-0.fdr.3 - Require %%{_bindir}/gpgsm instead of newpg. - Cosmetic spec file improvements. * Thu Oct 23 2003 Ville Skyttä - 0:0.4.3-0.fdr.2 - Update description. * Tue Oct 7 2003 Ville Skyttä - 0:0.4.3-0.fdr.1 - Update to 0.4.3. * Fri Aug 15 2003 Ville Skyttä - 0:0.4.2-0.fdr.1 - Update to 0.4.2. - make check in the %%check section. * Thu Jul 10 2003 Ville Skyttä - 0:0.4.1-0.fdr.1 - Update to 0.4.1. - Make -devel cooperate with --excludedocs. * Sat Apr 19 2003 Ville Skyttä - 0:0.4.0-0.fdr.2 - BuildRequire pth-devel, fix missing epoch in -devel Requires (#169). - Save .spec in UTF-8. * Sat Mar 22 2003 Ville Skyttä - 0:0.4.0-0.fdr.1 - Update to current Fedora guidelines. - Exclude %%{_libdir}/*.la. * Tue Feb 12 2003 Warren Togami 0.4.0-1.fedora.3 - info/dir temporary workaround * Sat Feb 8 2003 Ville Skyttä - 0.4.0-1.fedora.1 - First Fedora release.