Name: gpgme Summary: GnuPG Made Easy - high level crypto API Version: 1.4.3 Release: 1 License: LGPLv2+ Group: Applications/System URL: http://www.gnupg.org/related_software/gpgme/ Source0: ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2.sig Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gawk BuildRequires: gnupg BuildRequires: gnupg2 BuildRequires: libassuan >= 2.0.2-1 BuildRequires: libgpg-error-devel >= 1.9-1 BuildRequires: pth-devel >= 2.0.7-3 Requires: gnupg Requires: gnupg2 Requires: libassuan >= 2.0.2-1 Requires: libgpg-error >= 1.9-1 Requires: pth >= 2.0.7-3 %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. The library is available as 32-bit and 64-bit. %package devel Summary: Development headers and libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libassuan >= 2.0.2-1 Requires: libgpg-error-devel >= 1.9-1 Requires: /sbin/install-info, info %description devel 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. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "xlc -q64" or "gcc -maix64". %prep %setup -q %patch0 %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --enable-shared --disable-static make %{?_smp_mflags} cp src/.libs/libgpgme.so.11 . cp src/.libs/libgpgme-pthread.so.11 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --enable-shared --disable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/.libs/libgpgme.a ./libgpgme.so.11 ${AR} -q src/.libs/libgpgme-pthread.a ./libgpgme-pthread.so.11 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir gzip --best ${RPM_BUILD_ROOT}%{_infodir}/*info* # remove unpackaged files rm -rf ${RPM_BUILD_ROOT}%{_datadir}/common-lisp ( cd ${RPM_BUILD_ROOT} for dir in bin include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %post devel /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || : %postun devel if [ $1 -eq 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || : fi %files %defattr(-,root,system,-) %doc AUTHORS COPYING* ChangeLog NEWS README* THANKS TODO VERSION %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %{_bindir}/%{name}-config %{_includedir}/* %{_libdir}/*.la %{_infodir}/%{name}.info* %{_datadir}/aclocal/%{name}.m4 /usr/bin/* /usr/include/* /usr/lib/*.la %changelog * Thu Aug 22 2013 Michael Perzl - 1.4.3-1 - updated to version 1.4.3 * Mon Jul 08 2013 Michael Perzl - 1.4.2-1 - updated to version 1.4.2 * Fri May 03 2013 Michael Perzl - 1.4.1-1 - updated to version 1.4.1 * Fri Apr 05 2013 Michael Perzl - 1.4.0-1 - updated to version 1.4.0 * Tue Jan 08 2013 Michael Perzl - 1.3.2-1 - updated to version 1.3.2 * Mon Apr 30 2012 Michael Perzl - 1.3.1-1 - updated to version 1.3.1 * Thu Nov 26 2009 Michael Perzl - 1.2.0-1 - updated to version 1.2.0 * Tue Sep 08 2009 Michael Perzl - 1.1.8-1 - updated to version 1.1.8 * Tue May 27 2008 Michael Perzl - 1.1.6-1 - first version for AIX V5.1 and higher