diff --git a/gpgme-1.3.0-gpgme-config-remove-extraneous-libs.patch b/gpgme-1.3.0-gpgme-config-remove-extraneous-libs.patch index 767c215..089ce7b 100644 --- a/gpgme-1.3.0-gpgme-config-remove-extraneous-libs.patch +++ b/gpgme-1.3.0-gpgme-config-remove-extraneous-libs.patch @@ -1,7 +1,6 @@ -diff -ur gpgme-1.3.0.orig/src/gpgme-config.in gpgme-1.3.0/src/gpgme-config.in ---- gpgme-1.3.0.orig/src/gpgme-config.in 2009-10-23 15:44:56.000000000 +0200 -+++ gpgme-1.3.0/src/gpgme-config.in 2011-01-31 15:40:34.000000000 +0100 -@@ -21,7 +21,7 @@ +--- src/gpgme-config.in.orig ++++ src/gpgme-config.in +@@ -23,7 +23,7 @@ libs="-L@libdir@" # Network libraries. assuan_cflags="@LIBASSUAN_CFLAGS@" @@ -10,3 +9,40 @@ diff -ur gpgme-1.3.0.orig/src/gpgme-config.in gpgme-1.3.0/src/gpgme-config.in # Configure libgpg-error. gpg_error_cflags="@GPG_ERROR_CFLAGS@" +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -206,12 +206,13 @@ libgpgme_la_DEPENDENCIES = @LTLIBOBJS@ $ + libgpgme_la_LIBADD = $(gpgme_res) @LIBASSUAN_LIBS@ @LTLIBOBJS@ \ + @GPG_ERROR_LIBS@ + ++libgpgme_pthread_la_CFLAGS = -pthread + libgpgme_pthread_la_LDFLAGS = $(no_undefined) $(export_symbols) \ + $(libgpgme_version_script_cmd) -version-info \ + @LIBGPGME_LT_CURRENT@:@LIBGPGME_LT_REVISION@:@LIBGPGME_LT_AGE@ + libgpgme_pthread_la_DEPENDENCIES = @LTLIBOBJS@ $(srcdir)/libgpgme.vers + libgpgme_pthread_la_LIBADD = $(gpgme_res) @LIBASSUAN_LIBS@ @LTLIBOBJS@ \ +- -lpthread @GPG_ERROR_LIBS@ ++ @GPG_ERROR_LIBS@ + + libgpgme_pth_la_LDFLAGS = @PTH_LDFLAGS@ $(no_undefined) $(export_symbols) \ + $(libgpgme_version_script_cmd) -version-info \ +--- configure.ac.orig ++++ configure.ac +@@ -80,7 +80,7 @@ AM_MAINTAINER_MODE + AC_CANONICAL_HOST + + # Enable GNU extensions on systems that have them. +-AC_GNU_SOURCE ++AC_USE_SYSTEM_EXTENSIONS + + AH_VERBATIM([_REENTRANT], + [/* To allow the use of GPGME in multithreaded programs we have to use +@@ -91,7 +91,7 @@ AH_VERBATIM([_REENTRANT], + # define _REENTRANT 1 + #endif]) + +-AC_PROG_CC ++AC_PROG_CC_STDC + AC_PROG_CXX + + AC_SUBST(LIBGPGME_LT_CURRENT) diff --git a/gpgme.changes b/gpgme.changes index 1762051..3124488 100644 --- a/gpgme.changes +++ b/gpgme.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Oct 2 15:20:21 UTC 2011 - crrodriguez@opensuse.org + +- Workaround qemu-arm bugs +- remove support for the "pth" library, which has not seen + mainteniance for around 5 years, native pthread support + should be just fine in linux too. + ------------------------------------------------------------------- Mon Sep 5 12:22:51 UTC 2011 - vuntz@opensuse.org diff --git a/gpgme.spec b/gpgme.spec index 75d9861..036030f 100644 --- a/gpgme.spec +++ b/gpgme.spec @@ -19,11 +19,6 @@ Name: gpgme BuildRequires: gpg2 >= 2.0.10 -%if 0%{?suse_version} >= 1120 -BuildRequires: libpth-devel >= 2.0.7 -%else -BuildRequires: pth >= 2.0.7 -%endif Version: 1.3.1 Release: 1 License: GPLv2+ @@ -36,7 +31,6 @@ Source2: baselibs.conf BuildRequires: libassuan-devel >= 2.0.2 BuildRequires: libgpg-error-devel >= 1.4 PreReq: %install_info_prereq -Requires: libgpgme11 = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -103,14 +97,14 @@ of standard widgets for common key selection tasks is even planned. %prep %setup -q -%patch0 -p1 +%patch0 %build sh autogen.sh # Ensure that a (re)build uses fixed binaries with minimum version because # in case configure picks GnuPG-1.x, e.g. from /usr/local, this would cause # testsuite failures: -%configure --disable-static \ +%configure --without-pth --disable-static \ --with-gpg-version=2.0.10 \ --with-gpgsm-version=2.0.10 \ --with-gpgconf-version=2.0.10 \ @@ -124,7 +118,9 @@ sh autogen.sh rm %{buildroot}/%{_libdir}/*.la %check +%if ! 0%{?qemu_user_space_build} make check +%endif %clean rm -rf %{buildroot} @@ -150,13 +146,11 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_libdir}/libgpgme.so.* %{_libdir}/libgpgme-pthread.so.* -%{_libdir}/libgpgme-pth.so.* %files -n libgpgme-devel %defattr(-,root,root) %{_libdir}/libgpgme.so %{_libdir}/libgpgme-pthread.so -%{_libdir}/libgpgme-pth.so %{_bindir}/gpgme-config %{_datadir}/aclocal/gpgme.m4 %{_includedir}/gpgme.h