Accepting request 86071 from home:elvigia:branches:Base:System
- 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. OBS-URL: https://build.opensuse.org/request/show/86071 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=30
This commit is contained in:
parent
a9c8bb3e4e
commit
825706edad
@ -1,7 +1,6 @@
|
|||||||
diff -ur gpgme-1.3.0.orig/src/gpgme-config.in gpgme-1.3.0/src/gpgme-config.in
|
--- src/gpgme-config.in.orig
|
||||||
--- gpgme-1.3.0.orig/src/gpgme-config.in 2009-10-23 15:44:56.000000000 +0200
|
+++ src/gpgme-config.in
|
||||||
+++ gpgme-1.3.0/src/gpgme-config.in 2011-01-31 15:40:34.000000000 +0100
|
@@ -23,7 +23,7 @@ libs="-L@libdir@"
|
||||||
@@ -21,7 +21,7 @@
|
|
||||||
|
|
||||||
# Network libraries.
|
# Network libraries.
|
||||||
assuan_cflags="@LIBASSUAN_CFLAGS@"
|
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.
|
# Configure libgpg-error.
|
||||||
gpg_error_cflags="@GPG_ERROR_CFLAGS@"
|
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)
|
||||||
|
@ -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
|
Mon Sep 5 12:22:51 UTC 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
14
gpgme.spec
14
gpgme.spec
@ -19,11 +19,6 @@
|
|||||||
|
|
||||||
Name: gpgme
|
Name: gpgme
|
||||||
BuildRequires: gpg2 >= 2.0.10
|
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
|
Version: 1.3.1
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -36,7 +31,6 @@ Source2: baselibs.conf
|
|||||||
BuildRequires: libassuan-devel >= 2.0.2
|
BuildRequires: libassuan-devel >= 2.0.2
|
||||||
BuildRequires: libgpg-error-devel >= 1.4
|
BuildRequires: libgpg-error-devel >= 1.4
|
||||||
PreReq: %install_info_prereq
|
PreReq: %install_info_prereq
|
||||||
Requires: libgpgme11 = %{version}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -103,14 +97,14 @@ of standard widgets for common key selection tasks is even planned.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
# Ensure that a (re)build uses fixed binaries with minimum version because
|
# 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
|
# in case configure picks GnuPG-1.x, e.g. from /usr/local, this would cause
|
||||||
# testsuite failures:
|
# testsuite failures:
|
||||||
%configure --disable-static \
|
%configure --without-pth --disable-static \
|
||||||
--with-gpg-version=2.0.10 \
|
--with-gpg-version=2.0.10 \
|
||||||
--with-gpgsm-version=2.0.10 \
|
--with-gpgsm-version=2.0.10 \
|
||||||
--with-gpgconf-version=2.0.10 \
|
--with-gpgconf-version=2.0.10 \
|
||||||
@ -124,7 +118,9 @@ sh autogen.sh
|
|||||||
rm %{buildroot}/%{_libdir}/*.la
|
rm %{buildroot}/%{_libdir}/*.la
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if ! 0%{?qemu_user_space_build}
|
||||||
make check
|
make check
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -150,13 +146,11 @@ rm -rf %{buildroot}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libgpgme.so.*
|
%{_libdir}/libgpgme.so.*
|
||||||
%{_libdir}/libgpgme-pthread.so.*
|
%{_libdir}/libgpgme-pthread.so.*
|
||||||
%{_libdir}/libgpgme-pth.so.*
|
|
||||||
|
|
||||||
%files -n libgpgme-devel
|
%files -n libgpgme-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libgpgme.so
|
%{_libdir}/libgpgme.so
|
||||||
%{_libdir}/libgpgme-pthread.so
|
%{_libdir}/libgpgme-pthread.so
|
||||||
%{_libdir}/libgpgme-pth.so
|
|
||||||
%{_bindir}/gpgme-config
|
%{_bindir}/gpgme-config
|
||||||
%{_datadir}/aclocal/gpgme.m4
|
%{_datadir}/aclocal/gpgme.m4
|
||||||
%{_includedir}/gpgme.h
|
%{_includedir}/gpgme.h
|
||||||
|
Loading…
Reference in New Issue
Block a user