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@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 - 1.2.0-2 +- add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698) + * Fri Jul 02 2010 Rex Dieter - 1.2.0-1 - gpgme-1.2.0 (#610984)