# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231337014 -3600 # Node ID 89094e16ef70c989f7f8a5de9dcce39f6a35a1f9 # Parent d347f9d0cfb2c3bfc6eb6d4b3e6f64e93a1cc54c Clean up packaging and supply libdl library needed for Linux builds. diff -r d347f9d0cfb2 -r 89094e16ef70 aqmoney/aqmoney.spec --- a/aqmoney/aqmoney.spec Wed Jan 07 15:02:43 2009 +0100 +++ b/aqmoney/aqmoney.spec Wed Jan 07 15:03:34 2009 +0100 @@ -36,7 +36,7 @@ Group: Finance License: GPL Version: %{V_aqmoney} -Release: 20080813 +Release: 20090106 # list of sources Source0: http://switch.dl.sourceforge.net/aqmoney/aqmoney2-%{V_aqmoney}.tar.gz @@ -90,11 +90,17 @@ %{l_make} %{l_mflags -O} # pre-install it and adjust for temporary usage by AqMoney build (below) - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT ) || exit $? # configure and build program ( cd aqmoney2-%{version} + loclibs='' + case "%{l_platform -t}" in + *-linux* ) + loclibs='-ldl' + ;; + esac %{l_shtool} subst \ -e 's;ktoblzcheck_datafile="";;' \ configure @@ -104,6 +110,7 @@ CXXFLAGS="%{l_cxxflags -O}" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags}" \ + LIBS="-lintl -liconv $loclibs" \ ./configure \ --prefix=%{l_prefix} \ --with-openhbci-prefix=%{l_prefix} \ @@ -120,10 +127,10 @@ # install programs ( cd ktoblzcheck-%{V_ktoblzcheck} - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT ) || exit $? ( cd aqmoney2-%{version} - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT ) || exit $? # workaround problems with AqHBCI plugin run-time