* Wed Aug 11 2010 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2

- add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698)
This commit is contained in:
Tomas Mraz 2010-08-11 20:31:43 +02:00
parent 1391ec92f5
commit 07d90f8262
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,24 @@
diff -up gpgme-1.2.0/src/gpgme-config.in.largefile gpgme-1.2.0/src/gpgme-config.in
--- gpgme-1.2.0/src/gpgme-config.in.largefile 2010-08-11 20:11:49.000000000 +0200
+++ gpgme-1.2.0/src/gpgme-config.in 2010-08-11 20:23:45.000000000 +0200
@@ -42,6 +42,10 @@ cflags_pthread=""
cflags_glib="@GLIB_CFLAGS@"
with_glib=
+if test "x@NEED__FILE_OFFSET_BITS@" != "x" ; then
+ cflags_lfs="-D_FILE_OFFSET_BITS=@NEED__FILE_OFFSET_BITS@"
+fi
+
output=""
usage()
@@ -101,6 +105,9 @@ while test $# -gt 0; do
exit 0
;;
--cflags)
+ if test "x$cflags_lfs" != "x"; then
+ output="$output $cflags_lfs"
+ fi
if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then
output="$output -I$includedir"
fi

View File

@ -2,7 +2,7 @@
Name: gpgme
Summary: GnuPG Made Easy - high level crypto API
Version: 1.2.0
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: Applications/System
@ -16,6 +16,9 @@ Patch1: gpgme-1.1.8-config_extras.patch
# fix ImplicitDSOLinking in tests/, upstreamable
Patch2: gpgme-1.2.0-ImplicitDSOLinking.patch
# add -D_FILE_OFFSET_BITS... to gpgme-config, upstreamable
Patch3: gpgme-1.2.0-largefile.patch
BuildRequires: gawk
BuildRequires: gnupg2
BuildRequires: gnupg2-smime
@ -51,6 +54,7 @@ Requires(postun): /sbin/install-info
%patch1 -p1 -b .config_extras
%patch2 -p1 -b .ImplicitDSOLinking
%patch3 -p1 -b .largefile
## HACK ALERT
# The config script already suppresses the -L if it's /usr/lib, so cheat and
@ -116,6 +120,9 @@ fi
%changelog
* Wed Aug 11 2010 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2
- add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698)
* Fri Jul 02 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.2.0-1
- gpgme-1.2.0 (#610984)