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 |