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 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
|
# norootforbuild
# neededforbuild gwenhywfar gwenhywfar-devel libofx-devel libofx ktoblzcheck python python-ctypes pyyxml libchipcard2-devel libchipcard2 pkgconfig gettext-devel libacl-devel libacl libattr-devel libattr
%define name @PACKAGE@
%define version @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 1
%define have_libofx 1
%define with_yellownet 1
### Define the distribution-specific name parts
%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
%define dist redhat
%define disttag rh
%if %is_mandrake
%define dist mandrake
%define disttag mdk
%endif
%if %is_suse
%define dist suse
%define disttag suse
%endif
%if %is_fedora
%define dist fedora
%define disttag rhfc
%endif
%define distver %(release="`rpm -q --queryformat='%{VERSION}' %{dist}-release 2>/dev/null`" ; if test $? != 0 ; then release="" ; fi ; echo "$release")
# 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 aqdtaus aqgeldkarte aqofxconnect aqyellownet"
%else
%define backendlist "aqhbci aqdtaus aqgeldkarte aqofxconnect"
%endif
%else
%if %with_yellownet
%define backendlist "aqhbci aqdtaus aqofxconnect aqyellownet"
%else
%define backendlist "aqhbci aqdtaus aqofxconnect"
%endif
%endif
%else
%if %have_libchipcard
%if %with_yellownet
%define backendlist "aqhbci aqdtaus aqgeldkarte aqyellownet"
%else
%define backendlist "aqhbci aqdtaus aqgeldkarte"
%endif
%else
%if %with_yellownet
%define backendlist "aqhbci aqdtaus aqyellownet"
%else
%define backendlist "aqhbci aqdtaus"
%endif
%endif
%endif
# versions of required helper-libraries
%define _gwenhywfar_version 1.99.4.1
%define _libchipcard2_version 1.9.19.2
%define _libofx_version 0.8.1
### 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 <martin@aquamaniac.de>
URL: http://sourceforge.net/projects/aqbanking
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: gwenhywfar >= %{_gwenhywfar_version}
Requires: ktoblzcheck
BuildRequires: gwenhywfar-devel >= %{_gwenhywfar_version}
BuildRequires: ktoblzcheck
#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 aqbanking-tools for aqbanking.
Necessary for all banking applications.
%package gtk2
Summary: Aqbanking tools for Gnome2/Gtk2
Group: Development/Libraries/C and C++
Obsoletes: aqbanking-gnome2
Requires: %{name} = %{version}
Requires: glade
#Requires: libgail-gnome
BuildRequires: glade
BuildRequires: libgail-gnome-devel
%description gtk2
This package contains the aqbanking-tools (gnome/gtk2) for aqbanking.
Necessary for gtk2-based banking applications, e.g. Grisbi (but not gnucash).
%package kde3
Summary: Aqbanking tools for KDE3
Group: Development/Libraries/C and C++
Requires: aqbanking-qt3
Obsoletes: aqbanking-kde
Requires: %{name} = %{version}
%description kde3
Aqbanking tools for KDE3.
Necessary for KDE-based banking applications, e.g. KMyMoney.
### Sub-packages for OFX
%if %have_libofx
%package ofx
Summary: Aqbanking tools for Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libofx >= %{_libofx_version}
#BuildRequires: libofx-devel >= %{_libofx_version}
Obsoletes: %{name}-ofx-qt3
%description ofx
Aqbanking tools for Qt3. Necessary for OFX direct connect access.
Author: Martin Preuss <martin@libchipcard.de>
%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 <martin@libchipcard.de>
%endif
### Sub-packages for Geldkarte
%if %have_libchipcard
%package geldkarte
Summary: Aqbanking tools for Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libchipcard2 >= %{_libchipcard2_version}
Requires: gwenhywfar >= %{_gwenhywfar_version}
BuildRequires: libchipcard2-devel >= %{_libchipcard2_version}
BuildRequires: gwenhywfar-devel >= %{_gwenhywfar_version}
%description geldkarte
Aqbanking tools for Qt3. Necessary for Geldkarte access.
Author: Martin Preuss <martin@libchipcard.de>
%package geldkarte-qt3
Summary: Aqbanking tools for Qt3
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: gwenhywfar >= %{_gwenhywfar_version}
Requires: libchipcard2 >= %{_libchipcard2_version}
BuildRequires: libchipcard2-devel >= %{_libchipcard2_version}
BuildRequires: gwenhywfar-devel >= %{_gwenhywfar_version}
%description geldkarte-qt3
Aqbanking tools for Qt3. Necessary for Geldkarte access.
Author: Martin Preuss <martin@libchipcard.de>
%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 <martin@libchipcard.de>
%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 <martin@libchipcard.de>
%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}
%if %is_suse
%find_lang %{name}
%endif
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n %{name}-kde3 -p /sbin/ldconfig
%postun -n %{name}-kde3 -p /sbin/ldconfig
%post -n %{name}-gtk2 -p/sbin/ldconfig
%postun -n %{name}-gtk2 -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
%if %is_suse
%files -f %{name}.lang
%else
%files
%endif
%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
%{_bindir}/%{name}-tool
%{_libdir}/lib%{name}*.so.*
%{_libdir}/gwenhywfar
%{_datadir}/%{name}/bankinfo
%if %is_suse
# this is done by find_lang-macro
%else
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/doc/%{name}
%endif
%{aq_plugindir}/bankinfo
%{imex_plugindir}/csv.*
%{imex_plugindir}/dbio.*
%{imex_plugindir}/dtaus.*
%{imex_plugindir}/eri.*
%{imex_plugindir}/eri2.*
%{imex_plugindir}/openhbci1.*
%{imex_plugindir}/qif.*
%{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}/qif
%{imex_datadir}/swift
%{imex_datadir}/xmldb
%{imex_datadir}/yellownet
### The aqhbci files
%{_bindir}/aqhbci-tool
%{_libdir}/libaqhbci.so.*
%{aq_plugindir}/providers/aqhbci.*
%{_datadir}/aqhbci
#%{_datadir}/doc/aqhbci
### The dtaus files
%{_libdir}/libaqdtaus.so.*
%{aq_plugindir}/providers/aqdtaus.*
### The aqnone files
%{_libdir}/libaqnone.so.*
%{aq_plugindir}/providers/aqnone.*
### The cbanking files
%{_libdir}/libcbanking.so.*
%files devel
%defattr(-,root,root)
### The aqbanking files
%{_bindir}/%{name}-config
%{_includedir}/%{name}
%{_libdir}/*.la
%{_libdir}/libaqbanking.so
%{_libdir}/libaqdtaus.so
%{_libdir}/libaqhbci.so
%{_libdir}/libaqnone.so
%{_libdir}/libcbanking.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal
### The aqhbci files
%{_bindir}/aqhbci-config
%{_bindir}/hbcixml2
%{_includedir}/aqhbci
### The cbanking files
%{_bindir}/cbanking-config
%{_includedir}/cbanking
### The g2banking files
%{_bindir}/g2banking-config
%{_includedir}/g2banking
### The qbanking files
%{_bindir}/qbanking-config
%{_includedir}/qbanking
### The kbanking files
%{_bindir}/kbanking-config
%{_includedir}/kbanking
### The aqdtaus files
%{_bindir}/aqdtaus-config
%{_includedir}/aqdtaus
%files -n python-aqbanking
%defattr(644,root,root,755)
%{py_sitedir}/*
%files qt3
%defattr(-,root,root)
%{_bindir}/qb-help
%{_libdir}/libqbanking.so.*
%{_libdir}/libqbanking.so
%{aq_plugindir}/debugger/aqhbci
%{aq_plugindir}/wizards
%{qb_cfgmoddir}/aqhbci*
%{qb_cfgmoddir}/aqdtaus*
%{_datadir}/%{name}/i18n
%{fronts_datadir}/qbanking
%files gtk2
%defattr(-,root,root)
%{_libdir}/libg2banking.so.*
%{_libdir}/libg2banking.so
%{fronts_datadir}/g2banking
%files kde3
%defattr(-,root,root)
%{_libdir}/libkbanking.so.*
%{_libdir}/libkbanking.so
%if %have_libofx
%files ofx
%defattr(-,root,root)
%{_bindir}/aqofxconnect-config
%{_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 %have_libchipcard
%files geldkarte
%defattr(-,root,root)
%{_bindir}/aqgeldkarte-config
%{_libdir}/libaqgeldkarte.so.*
%{_libdir}/libaqgeldkarte.so
%{_includedir}/aqgeldkarte
%{aq_plugindir}/providers/aqgeldkarte.*
%files geldkarte-qt3
%defattr(-,root,root)
%{qb_cfgmoddir}/aqgeldkarte*
%endif
%if %with_yellownet
%files yellownet
%{_bindir}/aqyellownet-config
%{_libdir}/libaqyellownet.so
%{_includedir}/aqyellownet
%{aq_plugindir}/providers/aqyellownet.*
%files yellownet-qt3
%{qb_cfgmoddir}/aqyellownet*
%endif
|