aqmoney/aqmoney.spec

changeset 26
89094e16ef70
parent 22
0d4f475bfc81
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:1abe16ca0b6c 1:ac746ae9f4d5
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: EVAL 35 Class: EVAL
36 Group: Finance 36 Group: Finance
37 License: GPL 37 License: GPL
38 Version: %{V_aqmoney} 38 Version: %{V_aqmoney}
39 Release: 20080813 39 Release: 20090106
40 40
41 # list of sources 41 # list of sources
42 Source0: http://switch.dl.sourceforge.net/aqmoney/aqmoney2-%{V_aqmoney}.tar.gz 42 Source0: http://switch.dl.sourceforge.net/aqmoney/aqmoney2-%{V_aqmoney}.tar.gz
43 Source1: http://switch.dl.sourceforge.net/ktoblzcheck/ktoblzcheck-%{V_ktoblzcheck}.tar.gz 43 Source1: http://switch.dl.sourceforge.net/ktoblzcheck/ktoblzcheck-%{V_ktoblzcheck}.tar.gz
44 Patch0: aqmoney.patch 44 Patch0: aqmoney.patch
88 --prefix=%{l_prefix} \ 88 --prefix=%{l_prefix} \
89 --disable-shared 89 --disable-shared
90 %{l_make} %{l_mflags -O} 90 %{l_make} %{l_mflags -O}
91 91
92 # pre-install it and adjust for temporary usage by AqMoney build (below) 92 # pre-install it and adjust for temporary usage by AqMoney build (below)
93 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 93 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
94 ) || exit $? 94 ) || exit $?
95 95
96 # configure and build program 96 # configure and build program
97 ( cd aqmoney2-%{version} 97 ( cd aqmoney2-%{version}
98 loclibs=''
99 case "%{l_platform -t}" in
100 *-linux* )
101 loclibs='-ldl'
102 ;;
103 esac
98 %{l_shtool} subst \ 104 %{l_shtool} subst \
99 -e 's;ktoblzcheck_datafile="";;' \ 105 -e 's;ktoblzcheck_datafile="";;' \
100 configure 106 configure
101 CC="%{l_cxx}" \ 107 CC="%{l_cxx}" \
102 CXX="%{l_cxx}" \ 108 CXX="%{l_cxx}" \
103 CFLAGS="%{l_cflags -O}" \ 109 CFLAGS="%{l_cflags -O}" \
104 CXXFLAGS="%{l_cxxflags -O}" \ 110 CXXFLAGS="%{l_cxxflags -O}" \
105 CPPFLAGS="%{l_cppflags}" \ 111 CPPFLAGS="%{l_cppflags}" \
106 LDFLAGS="%{l_ldflags}" \ 112 LDFLAGS="%{l_ldflags}" \
113 LIBS="-lintl -liconv $loclibs" \
107 ./configure \ 114 ./configure \
108 --prefix=%{l_prefix} \ 115 --prefix=%{l_prefix} \
109 --with-openhbci-prefix=%{l_prefix} \ 116 --with-openhbci-prefix=%{l_prefix} \
110 --with-ktoblzcheck-includes=$RPM_BUILD_ROOT%{l_prefix}/include \ 117 --with-ktoblzcheck-includes=$RPM_BUILD_ROOT%{l_prefix}/include \
111 --with-ktoblzcheck-libs=$RPM_BUILD_ROOT%{l_prefix}/lib \ 118 --with-ktoblzcheck-libs=$RPM_BUILD_ROOT%{l_prefix}/lib \
118 %install 125 %install
119 rm -rf $RPM_BUILD_ROOT 126 rm -rf $RPM_BUILD_ROOT
120 127
121 # install programs 128 # install programs
122 ( cd ktoblzcheck-%{V_ktoblzcheck} 129 ( cd ktoblzcheck-%{V_ktoblzcheck}
123 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 130 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
124 ) || exit $? 131 ) || exit $?
125 ( cd aqmoney2-%{version} 132 ( cd aqmoney2-%{version}
126 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 133 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
127 ) || exit $? 134 ) || exit $?
128 135
129 # workaround problems with AqHBCI plugin run-time 136 # workaround problems with AqHBCI plugin run-time
130 %{l_shtool} mkdir -f -p -m 755 \ 137 %{l_shtool} mkdir -f -p -m 755 \
131 $RPM_BUILD_ROOT%{l_prefix}/libexec/aqmoney 138 $RPM_BUILD_ROOT%{l_prefix}/libexec/aqmoney

mercurial