forked from aqbanking/aqbanking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aqbanking.spec.in
321 lines (273 loc) · 8.33 KB
/
aqbanking.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# norootforbuild
# neededforbuild gwenhywfar gwenhywfar-devel python python-ctypes pyyxml libchipcard2-devel libchipcard2 pkgconfig gettext-devel libacl-devel libacl libattr-devel libattr
%define name @PACKAGE@
%define version @VERSION@
%define dist @aq_distrib_name@
%define disttag @aq_distrib_tag@
%define distver @aq_distrib_version@
%define aq_plugindir %{_libdir}/aqbanking/plugins/@AQBANKING_SO_EFFECTIVE@
%define fronts_libdir %{aq_plugindir}/frontends
%define imex_plugindir %{aq_plugindir}/imexporters
%define imex_datadir %{_datadir}/%{name}/imexporters
%define fronts_datadir %{_datadir}/%{name}/frontends
%define qb_cfgmoddir %{fronts_libdir}/qbanking/cfgmodules
### Optionally disable chipcard and ofx sub-packages - resulting
### rpms should not be released!
%define have_libchipcard 0
%define have_libofx 1
%define with_yellownet 0
# Note: There is not yet a special symbol for the rpm release
# version. We set it to one here.
%define release 1.%{disttag}%{distver}
### Choose backends to be built
%if %have_libofx
%if %have_libchipcard
%if %with_yellownet
%define backendlist "aqhbci aqofxconnect aqyellownet"
%else
%define backendlist "aqhbci aqofxconnect"
%endif
%else
%if %with_yellownet
%define backendlist "aqhbci aqofxconnect aqyellownet"
%else
%define backendlist "aqhbci aqofxconnect"
%endif
%endif
%else
%if %have_libchipcard
%if %with_yellownet
%define backendlist "aqhbci aqyellownet"
%else
%define backendlist "aqhbci"
%endif
%else
%if %with_yellownet
%define backendlist "aqhbci aqyellownet"
%else
%define backendlist "aqhbci"
%endif
%endif
%endif
# versions of required helper-libraries
%define _gwenhywfar_version 2.9.15
%define _libchipcard3_version 3.9.13
### The standard information fields.
Name: %{name}
Summary: A library for online banking functions and financial data import/export
Version: %{version}
Release: %{release}
Source: http://download.sourceforge.net/aqbanking/%{name}-%{version}.tar.gz
Group: System Environment/Libraries
License: GPL
Packager: Martin Preuss <[email protected]>
URL: http://sourceforge.net/projects/aqbanking
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: gwenhywfar >= %{_gwenhywfar_version}
BuildRequires: gwenhywfar-devel >= %{_gwenhywfar_version}
#BuildRequires: python-ctypes
BuildRequires: python >= 2.3
BuildRequires: pyxml
BuildRequires: pkgconfig >= 0.9
#BuildRequires: gettext-devel
#BuildRequires: libacl-devel
#BuildRequires: libattr-devel
Prefix: %{_prefix}
Obsoletes: aqdtaus
Obsoletes: aqhbci
Obsoletes: kbanking
Obsoletes: aqofxconnect
%description
The intention of AqBanking is to provide a middle layer between
the program and the various Online Banking libraries
(e.g. AqHBCI). The first backend which is already supported is
AqHBCI, a library which implements a client for the German HBCI
(Home Banking Computer Interface) protocol. Additionally,
Aqbanking provides various plugins to simplify import and export
of financial data. Currently there are import plugins for the
following formats: DTAUS (German financial format), SWIFT (MT940
and MT942). Further information in German can be found on
http://linuxwiki.de/AqBanking
%package devel
Summary: Aqbanking development kit
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Obsoletes: aqhbci-devel
Obsoletes: aqofxconnect-devel
Obsoletes: aqdtaus-devel
%description devel
This package contains aqbanking-config and header files for writing and
compiling programs using Aqbanking.
%package -n python-%{name}
Summary: Aqbanking python-bindings
Group: Development/Libraries/Python
%py_requires
Requires: %{name} = %{version}
#Requires: python-ctypes
Requires: python >= 2.3
Requires: pyxml
%description -n python-%{name}
This package contains the python-bindings for aqbanking.
%package qt3
Summary: Aqbanking tools for Qt3
Group: Productivity/Office/Finance
Obsoletes: aqhbci-qt-tools
Obsoletes: aqdtaus-qt-tools
Requires: %{name} = %{version}
Requires: gwenhywfar >= %{_gwenhywfar_version}
%description qt3
This package contains the QT3 setup wizard for AqBanking.
### Sub-packages for OFX
%if %have_libofx
%package ofx
Summary: Aqbanking tools for Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Obsoletes: %{name}-ofx-qt3
%description ofx
Aqbanking tools for Qt3. Necessary for OFX direct connect access.
Author: Martin Preuss <[email protected]>
%package ofx-qt3
Summary: Aqbanking tools for Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: gwenhywfar >= %{_gwenhywfar_version}
%description ofx-qt3
Aqbanking tools for Qt3. Necessary for OFX direct connect access.
Author: Martin Preuss <[email protected]>
%endif
### Sub-packages for yellownet
%if %with_yellownet
%package yellownet
Summary: YellowNet backend
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description yellownet
This backend provides support for Suisse YellowNet (Post-Finance)
Author: Martin Preuss <[email protected]>
%package yellownet-qt3
Summary: Configuration plugins for Aqbanking with Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description yellownet-qt3
This backend provides support for Suisse YellowNet (Post-Finance)
Author: Martin Preuss <[email protected]>
%endif
### The build commands
%prep
%setup -q
%build
%{configure} \
--enable-release \
--with-docpath=%{_docdir} \
--enable-python \
--with-backends=%{backendlist}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install-strip \
DESTDIR=%{buildroot} \
idatadir=%{_docdir}/%{name}
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n %{name}-qt3 -p /sbin/ldconfig
%postun -n %{name}-qt3 -p /sbin/ldconfig
### The file list for all packages, starting with the base package
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
# The directories used by the base package
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{aq_plugindir}
%dir %{aq_plugindir}/debugger
%dir %{aq_plugindir}/providers
%dir %{imex_plugindir}
%dir %{fronts_libdir}
%dir %{fronts_libdir}/qbanking
%dir %{qb_cfgmoddir}
%dir %{_datadir}/%{name}
%dir %{fronts_datadir}
%dir %{imex_datadir}
### The original aqbanking files
%{_libdir}/lib%{name}*.so.*
%{_libdir}/gwenhywfar
%{_datadir}/%{name}/bankinfo
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{aq_plugindir}/bankinfo
%{imex_plugindir}/csv.*
%{imex_plugindir}/dtaus.*
%{imex_plugindir}/eri2.*
%{imex_plugindir}/openhbci1.*
%{imex_plugindir}/swift.*
%{imex_plugindir}/xmldb.*
%{imex_plugindir}/yellownet.*
%{imex_datadir}/csv
%{imex_datadir}/dtaus
%{imex_datadir}/eri
%{imex_datadir}/eri2
%{imex_datadir}/openhbci1
%{imex_datadir}/swift
%{imex_datadir}/xmldb
%{imex_datadir}/yellownet
### The aqhbci files
%{_bindir}/aqhbci-tool@QBANKING_SO_EFFECTIVE@
%{_libdir}/libaqhbci.so.*
%{aq_plugindir}/providers/aqhbci.*
#%{_datadir}/doc/aqhbci
### The aqnone files
%{_libdir}/libaqnone.so.*
%{aq_plugindir}/providers/aqnone.*
%files devel
%defattr(-,root,root)
### The aqbanking files
%{_bindir}/%{name}-config
%{_includedir}/%{name}
%{_libdir}/*.la
%{_libdir}/libaqbanking.so
%{_libdir}/libaqhbci.so
%{_libdir}/libaqnone.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal
### The aqhbci files
%{_bindir}/hbcixml3
%{_includedir}/aqhbci
%{_datadir}/%{name}/backends/aqhbci
### The qbanking files
%{_includedir}/qbanking
%files -n python-aqbanking
%defattr(644,root,root,755)
%{py_sitedir}/*
%files qt3
%defattr(-,root,root)
%{_bindir}/qb-help@QBANKING_SO_EFFECTIVE@
%{_libdir}/libqbanking.so.*
%{_libdir}/libqbanking.so
%{aq_plugindir}/debugger/aqhbci
%{aq_plugindir}/wizards
%{qb_cfgmoddir}/aqhbci*
%{_datadir}/%{name}/i18n
%{fronts_datadir}/qbanking
%if %have_libofx
%files ofx
%defattr(-,root,root)
%{_libdir}/libaqofxconnect.so.*
%{_libdir}/libaqofxconnect.so
%{_includedir}/aqofxconnect
%{aq_plugindir}/providers/aqofxconnect.*
%{imex_plugindir}/ofx.*
%{imex_datadir}/ofx
%files ofx-qt3
%defattr(-,root,root)
%{qb_cfgmoddir}/aqofxconnect*
%endif
%if %with_yellownet
%files yellownet
%{_libdir}/libaqyellownet.so
%{_includedir}/aqyellownet
%{aq_plugindir}/providers/aqyellownet.*
%files yellownet-qt3
%{qb_cfgmoddir}/aqyellownet*
%endif