[gpgme] * Wed Aug 11 2010 Tomas Mraz <tmraz at redhat.com> - 1.2.0-2 - add -D_FILE_OFFSET_BITS... to gpgme-conf

Tomáš Mráz tmraz at fedoraproject.org
Wed Aug 11 18:31:45 UTC 2010


commit 07d90f8262fb60838c42aac10fb6296ba3588716
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Wed Aug 11 20:31:43 2010 +0200

    * Wed Aug 11 2010 Tomas Mraz <tmraz at redhat.com> - 1.2.0-2
    - add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698)

 gpgme-1.2.0-largefile.patch |   24 ++++++++++++++++++++++++
 gpgme.spec                  |    9 ++++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/gpgme-1.2.0-largefile.patch b/gpgme-1.2.0-largefile.patch
new file mode 100644
index 0000000..4e5c363
--- /dev/null
+++ b/gpgme-1.2.0-largefile.patch
@@ -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 at 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
diff --git a/gpgme.spec b/gpgme.spec
index 609d702..0c84045 100644
--- a/gpgme.spec
+++ b/gpgme.spec
@@ -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 at redhat.com> - 1.2.0-2
+- add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698)
+
 * Fri Jul 02 2010 Rex Dieter <rdieter at fedoraproject.org> - 1.2.0-1
 - gpgme-1.2.0 (#610984)
 


More information about the scm-commits mailing list