aqbanking/aqbanking.spec

changeset 52
d42d557c7a5a
parent 22
0d4f475bfc81
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:2957f0a205e8 1:24d8d36fdb29
37 Distribution: OpenPKG Community 37 Distribution: OpenPKG Community
38 Class: EVAL 38 Class: EVAL
39 Group: Finance 39 Group: Finance
40 License: GPL 40 License: GPL
41 Version: %{V_openpkg} 41 Version: %{V_openpkg}
42 Release: 20080101 42 Release: 20090106
43 43
44 # list of sources 44 # list of sources
45 Source0: http://switch.dl.sourceforge.net/aqbanking/aqbanking-%{V_aqbanking}.tar.gz 45 Source0: http://switch.dl.sourceforge.net/aqbanking/aqbanking-%{V_aqbanking}.tar.gz
46 Source1: http://switch.dl.sourceforge.net/gwenhywfar/gwenhywfar-%{V_gwenhywfar}.tar.gz 46 Source1: http://switch.dl.sourceforge.net/gwenhywfar/gwenhywfar-%{V_gwenhywfar}.tar.gz
47 Source2: http://switch.dl.sourceforge.net/openhbci/openhbci2-%{V_openhbci2}.tar.gz 47 Source2: http://switch.dl.sourceforge.net/openhbci/openhbci2-%{V_openhbci2}.tar.gz
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

mercurial