51 # build information |
51 # build information |
52 Prefix: %{l_prefix} |
52 Prefix: %{l_prefix} |
53 BuildRoot: %{l_buildroot} |
53 BuildRoot: %{l_buildroot} |
54 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes |
54 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes |
55 PreReq: OpenPKG, openpkg >= 20040130 |
55 PreReq: OpenPKG, openpkg >= 20040130 |
56 BuildPreReq: openssl |
56 BuildPreReq: openssl, gettext, libiconv |
57 PreReq: openssl |
57 PreReq: openssl, gettext, libiconv |
58 AutoReq: no |
58 AutoReq: no |
59 AutoReqProv: no |
59 AutoReqProv: no |
60 |
60 |
61 %description |
61 %description |
62 AqBanking is a middle layer between a home banking applicaton and |
62 AqBanking is a middle layer between a home banking applicaton and |
111 --with-openssl-libs=%{l_prefix}/lib \ |
111 --with-openssl-libs=%{l_prefix}/lib \ |
112 --disable-nls \ |
112 --disable-nls \ |
113 --disable-shared |
113 --disable-shared |
114 |
114 |
115 # build the library |
115 # build the library |
116 %{l_make} %{l_mflags} |
116 %{l_make} %{l_mflags -O} LIBS="-lintl -liconv" |
117 |
117 |
118 # pre-install it and adjust for temporary usage by AqBanking build (below) |
118 # pre-install it and adjust for temporary usage by AqBanking build (below) |
119 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
119 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
120 %{l_shtool} subst \ |
120 %{l_shtool} subst \ |
121 -e "s;%{l_prefix};$RPM_BUILD_ROOT%{l_prefix};g" \ |
121 -e "s;%{l_prefix};$RPM_BUILD_ROOT%{l_prefix};g" \ |
122 $RPM_BUILD_ROOT%{l_prefix}/bin/gwenhywfar-config |
122 $RPM_BUILD_ROOT%{l_prefix}/bin/gwenhywfar-config |
123 ) || exit $? |
123 ) || exit $? |
124 |
124 |
136 --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ |
136 --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ |
137 --with-openssl-includes=%{l_prefix}/include \ |
137 --with-openssl-includes=%{l_prefix}/include \ |
138 --with-openssl-libs=%{l_prefix}/lib \ |
138 --with-openssl-libs=%{l_prefix}/lib \ |
139 --enable-shared \ |
139 --enable-shared \ |
140 --enable-static |
140 --enable-static |
141 %{l_make} %{l_mflags} |
141 %{l_make} %{l_mflags -O} |
142 ) || exit $? |
142 ) || exit $? |
143 |
143 |
144 # build OpenHBCI v2 (legacy) |
144 # build OpenHBCI v2 (legacy) |
145 ( cd openhbci2-%{V_openhbci2} |
145 ( cd openhbci2-%{V_openhbci2} |
146 %{l_shtool} subst \ |
146 %{l_shtool} subst \ |
159 --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ |
159 --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ |
160 --with-openssl-includes=%{l_prefix}/include \ |
160 --with-openssl-includes=%{l_prefix}/include \ |
161 --with-openssl-libs=%{l_prefix}/lib \ |
161 --with-openssl-libs=%{l_prefix}/lib \ |
162 --enable-shared \ |
162 --enable-shared \ |
163 --enable-static |
163 --enable-static |
164 %{l_make} %{l_mflags} |
164 %{l_make} %{l_mflags -O} |
165 ) || exit $? |
165 ) || exit $? |
166 |
166 |
167 # build AqBanking |
167 # build AqBanking |
168 ( cd aqbanking-%{V_aqbanking} |
168 ( cd aqbanking-%{V_aqbanking} |
169 echo 'ac_cv_header_iconv_h=no' >config.cache |
169 echo 'ac_cv_header_iconv_h=no' >config.cache |
190 %install |
190 %install |
191 rm -rf $RPM_BUILD_ROOT |
191 rm -rf $RPM_BUILD_ROOT |
192 |
192 |
193 # install Gwhenhywfar |
193 # install Gwhenhywfar |
194 ( cd gwenhywfar-%{V_gwenhywfar} |
194 ( cd gwenhywfar-%{V_gwenhywfar} |
195 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
195 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
196 ) || exit $? |
196 ) || exit $? |
197 |
197 |
198 # install OpenHBCI v1 (legacy) |
198 # install OpenHBCI v1 (legacy) |
199 ( cd openhbci-%{V_openhbci1} |
199 ( cd openhbci-%{V_openhbci1} |
200 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
200 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
201 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
201 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
202 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/plugins/*/*/*.a |
202 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/plugins/*/*/*.a |
203 mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ |
203 mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ |
204 $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/ |
204 $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/ |
205 ) || exit $? |
205 ) || exit $? |
206 |
206 |
207 # install OpenHBCI v2 (legacy) |
207 # install OpenHBCI v2 (legacy) |
208 ( cd openhbci2-%{V_openhbci2} |
208 ( cd openhbci2-%{V_openhbci2} |
209 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
209 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
210 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
210 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
211 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/plugins/*/*/*.a |
211 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/plugins/*/*/*.a |
212 mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ |
212 mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ |
213 $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/ |
213 $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/ |
214 mv $RPM_BUILD_ROOT%{l_prefix}/bin/hbcixml \ |
214 mv $RPM_BUILD_ROOT%{l_prefix}/bin/hbcixml \ |
215 $RPM_BUILD_ROOT%{l_prefix}/bin/openhbci2-hbcixml |
215 $RPM_BUILD_ROOT%{l_prefix}/bin/openhbci2-hbcixml |
216 ) || exit $? |
216 ) || exit $? |
217 |
217 |
218 # install AqBanking |
218 # install AqBanking |
219 ( cd aqbanking-%{V_aqbanking} |
219 ( cd aqbanking-%{V_aqbanking} |
220 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
220 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
221 ) || exit $? |
221 ) || exit $? |
222 |
222 |
223 # strip down installation |
223 # strip down installation |
224 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
224 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
225 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/gwen-public-ca.crt |
225 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/gwen-public-ca.crt |