diff --git a/gnucash-2.6.6-build.patch b/gnucash-2.6.6-build.patch new file mode 100644 index 0000000..1c9fb20 --- /dev/null +++ b/gnucash-2.6.6-build.patch @@ -0,0 +1,20 @@ +diff -up gnucash-2.6.6/configure.ac.foo gnucash-2.6.6/configure.ac +--- gnucash-2.6.6/configure.ac.foo 2015-04-13 20:12:29.807514429 -0400 ++++ gnucash-2.6.6/configure.ac 2015-04-13 20:12:56.898367927 -0400 +@@ -172,6 +172,8 @@ AC_HEADER_STDC + AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h sys/wait.h pow.h) + oldcflags="$CFLAGS" + CFLAGS= ++oldldflags="$LDFLAGS" ++LDFLAGS= + AC_CHECK_FUNCS(stpcpy memcpy timegm towupper) + AC_CHECK_FUNCS(setenv,,[ + AC_CHECK_FUNCS(putenv,,[ +@@ -179,6 +181,7 @@ AC_CHECK_FUNCS(setenv,,[ + ]) + ]) + CFLAGS="$oldcflags" ++LDFLAGS="$oldldflags" + STRUCT_TM_GMTOFF_CHECK + cflags_save=${CFLAGS} + CFLAGS="${CFLAGS} -Wall -Werror" diff --git a/gnucash.spec b/gnucash.spec index c32f405..94cddeb 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -2,7 +2,7 @@ Name: gnucash Summary: Finance management application Version: 2.6.6 URL: http://gnucash.org/ -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/Productivity Source: http://downloads.sourceforge.net/sourceforge/gnucash/gnucash-%{version}.tar.bz2 @@ -19,6 +19,7 @@ BuildRequires: libtool-ltdl-devel BuildRequires: ktoblzcheck-devel BuildRequires: libsecret-devel BuildRequires: libappstream-glib +Patch1: gnucash-2.6.6-build.patch Requires: gnucash-docs >= 2.2.0 Requires: dconf @@ -36,9 +37,11 @@ balanced books. %prep %setup -q +%patch1 -p1 find src/quotes -name "*.in" -exec sed -i "s|use lib '@-PERLINCL-@';||g" {} \; %build +autoconf sed -i 's|get_python_lib(0|get_python_lib(1|g' configure %configure --enable-error-on-warning=no \ --enable-ofx \