e1e8dba
%define backends aqhbci aqdtaus aqofxconnect
e1e8dba
%define frontends cbanking qbanking kbanking g2banking
e1e8dba
62fdbf4
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
62fdbf4
66fe728
Name: aqbanking
e1e8dba
Summary: A library for online banking functions and financial data import/export
f51dfd2
Version: 2.2.9
0e2f0fc
Release: 2%{?dist}
66fe728
Source: http://download.sourceforge.net/aqbanking/%{name}-%{version}.tar.gz
66fe728
Group: System Environment/Libraries
55e7c3b
License: GPLv2+
e7d9a25
URL: http://www.aquamaniac.de/aqbanking/
f51dfd2
Patch2: aqbanking-2.2.9-pkgconfig.patch
2f2bbd8
Patch3: aqbanking-2.1.0-conflict.patch
e7d9a25
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e7d9a25
# qbanking
e7d9a25
BuildRequires: qt-devel
e7d9a25
# g2banking
e7d9a25
BuildRequires: gtk2-devel libglade2-devel
e7d9a25
# kbanking
e7d9a25
BuildRequires: kdelibs-devel
e7d9a25
# python
5f84577
BuildRequires: python, PyXML
132a077
BuildRequires: gwenhywfar-devel >= 2.1.0, libofx-devel >= 0.7.0, gettext, libtool
e1e8dba
Requires(post): /sbin/ldconfig
e1e8dba
Requires(postun): /sbin/ldconfig
de90f91
Obsoletes: aqhbci <= 1.0.3
66fe728
66fe728
%description 
66fe728
The intention of AqBanking is to provide a middle layer between the
66fe728
program and the various Online Banking libraries (e.g. AqHBCI). The
66fe728
first backend which is already supported is AqHBCI, a library which
66fe728
implements a client for the German HBCI (Home Banking Computer
66fe728
Interface) protocol. Additionally, Aqbanking provides various plugins
66fe728
to simplify import and export of financial data. Currently there are
66fe728
import plugins for the following formats: DTAUS (German financial
66fe728
format), SWIFT (MT940 and MT942).
66fe728
66fe728
%package devel
e1e8dba
Summary: Development headers for Aqbanking
66fe728
Group: Development/Libraries
66fe728
Requires: %{name} = %{version}-%{release}
66fe728
Requires: gwenhywfar-devel
e1e8dba
Requires: pkgconfig
de90f91
# for %{_datadir}/aclocal
de90f91
Requires: automake
0e2e1d5
Obsoletes: aqhbci-devel <= 1.0.3
9536328
66fe728
%description devel
66fe728
This package contains aqbanking-config and header files for writing and
66fe728
compiling programs using Aqbanking.
66fe728
e1e8dba
%package -n g2banking
e1e8dba
Summary: GTK bindings for Aqbanking
e1e8dba
Group: System Environment/Libraries
e1e8dba
Requires: %{name} = %{version}-%{release}
e1e8dba
Requires(post): /sbin/ldconfig
e1e8dba
Requires(postun): /sbin/ldconfig
e1e8dba
e1e8dba
%description -n g2banking
e1e8dba
This package contains the g2banking GTK bindings for the Aqbanking
e1e8dba
online banking library.
e1e8dba
e1e8dba
%package -n g2banking-devel
e1e8dba
Summary: Development headers for g2banking
e1e8dba
Group: Development/Libraries
e1e8dba
Requires: %{name}-devel = %{version}-%{release}
e1e8dba
Requires: g2banking = %{version}-%{release}
e1e8dba
Requires: pkgconfig
e1e8dba
e1e8dba
%description -n g2banking-devel
e1e8dba
This package contains g2banking-config and header files for writing and
e1e8dba
compiling programs using the g2banking bindings for Aqbanking.
e1e8dba
e1e8dba
%package -n kbanking
e1e8dba
Summary: KDE bindings for Aqbanking
e1e8dba
Group: System Environment/Libraries
e1e8dba
Requires: %{name} = %{version}-%{release}
e1e8dba
Requires(post): /sbin/ldconfig
e1e8dba
Requires(postun): /sbin/ldconfig
e1e8dba
e1e8dba
%description -n kbanking
e1e8dba
This package contains the kbanking KDE bindings for the Aqbanking
e1e8dba
online banking library.
e1e8dba
e1e8dba
%package -n kbanking-devel
e1e8dba
Summary: Development headers for kbanking
e1e8dba
Group: Development/Libraries
e1e8dba
Requires: %{name}-devel = %{version}-%{release}
e1e8dba
Requires: kbanking = %{version}-%{release}
e1e8dba
Requires: pkgconfig
e1e8dba
e1e8dba
%description -n kbanking-devel
e1e8dba
This package contains kbanking-config and header files for writing and
e1e8dba
compiling programs using the kbanking bindings for Aqbanking.
e1e8dba
e1e8dba
%package -n qbanking
e1e8dba
Summary: Qt bindings for Aqbanking
e1e8dba
Group: System Environment/Libraries
e1e8dba
Requires: %{name} = %{version}-%{release}
e1e8dba
Requires(post): /sbin/ldconfig
e1e8dba
Requires(postun): /sbin/ldconfig
de90f91
Obsoletes: aqhbci-qt-tools <= 1.0.3
e1e8dba
e1e8dba
%description -n qbanking
e1e8dba
This package contains the qbanking KDE bindings for the Aqbanking
e1e8dba
online banking library.
e1e8dba
e1e8dba
%package -n qbanking-devel
e1e8dba
Summary: Development headers for qbanking
e1e8dba
Group: Development/Libraries
e1e8dba
Requires: %{name}-devel = %{version}-%{release}
e1e8dba
Requires: qbanking = %{version}-%{release}
e1e8dba
Requires: pkgconfig
e1e8dba
e1e8dba
%description -n qbanking-devel
e1e8dba
This package contains qbanking-config and header files for writing and
e1e8dba
compiling programs using the qbanking bindings for Aqbanking.
e1e8dba
e1e8dba
%package -n python-%{name}
e1e8dba
Summary: Python bindings for Aqbanking
e1e8dba
Group: Development/Libraries
e1e8dba
Requires: %{name} = %{version}-%{release}
e1e8dba
e1e8dba
%description -n python-%{name}
e1e8dba
This package contains python bindings for Aqbanking.
e1e8dba
66fe728
%prep
87a7c30
%setup -q
86e9bad
%patch2 -p1 -b .pkgconfig
2f2bbd8
%patch3 -p1 -b .conflict
66fe728
66fe728
%build
9536328
[ -z "$QTDIR" ] && . /etc/profile.d/qt.sh
e1e8dba
%{configure} --disable-static --with-backends="%{backends}" \
e1e8dba
  --with-frontends="%{frontends}" \
e1e8dba
  --enable-libofx \
e1e8dba
  --enable-python
e1e8dba
132a077
make LIBTOOL=/usr/bin/libtool
66fe728
66fe728
%install
389db12
rm -rf $RPM_BUILD_ROOT
66fe728
132a077
make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool install
7f159f2
940a6d0
find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
940a6d0
find $RPM_BUILD_ROOT -name *.a -exec rm -f {} \;
66fe728
e1e8dba
cd tutorials
e1e8dba
make clean
e1e8dba
rm -rf .deps
e1e8dba
cd ..
e1e8dba
9536328
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
9536328
mv $RPM_BUILD_ROOT/%{_datadir}/doc/{aqbanking,aqhbci} $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
0b5ec79
mv AUTHORS README COPYING ChangeLog NEWS $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
e1e8dba
%find_lang %{name}
e1e8dba
66fe728
%clean
0e2e1d5
rm -rf $RPM_BUILD_ROOT
66fe728
66fe728
%post -p /sbin/ldconfig
66fe728
66fe728
%postun -p /sbin/ldconfig
66fe728
e1e8dba
%post -n g2banking -p /sbin/ldconfig
e1e8dba
e1e8dba
%postun -n g2banking -p /sbin/ldconfig
e1e8dba
e1e8dba
%post -n kbanking -p /sbin/ldconfig
e1e8dba
e1e8dba
%postun -n kbanking -p /sbin/ldconfig
e1e8dba
e1e8dba
%post -n qbanking -p /sbin/ldconfig
e1e8dba
e1e8dba
%postun -n qbanking -p /sbin/ldconfig
e1e8dba
e1e8dba
%files -f %{name}.lang
66fe728
%defattr(-,root,root)
0e2e1d5
%doc %{_datadir}/doc/%{name}-%{version}
e1e8dba
%{_libdir}/libaq*.so.*
e1e8dba
%{_libdir}/libcbanking.so.*
e1e8dba
%{_libdir}/aqbanking
e1e8dba
%exclude %{_libdir}/aqbanking/plugins/*/debugger
389db12
%exclude %{_libdir}/aqbanking/plugins/*/frontends/qbanking
e1e8dba
%exclude %{_libdir}/aqbanking/plugins/*/wizards
389db12
%{_libdir}/gwenhywfar/*
e1e8dba
%{_datadir}/aqbanking
e1e8dba
%exclude %{_datadir}/aqbanking/frontends/*
e1e8dba
%exclude %{_datadir}/aqbanking/i18n
9536328
%{_datadir}/aqhbci
9536328
%{_bindir}/*-tool
66fe728
66fe728
%files devel
66fe728
%defattr(-,root,root)
0e2e1d5
%doc doc/0[12]* tutorials
9536328
%{_bindir}/hbcixml2
e1e8dba
%{_bindir}/aq*-config
e1e8dba
%{_bindir}/cbanking-config
e1e8dba
%{_libdir}/libaq*.so
e1e8dba
%{_libdir}/libcbanking.so
e1e8dba
%{_includedir}/aq*
e1e8dba
%{_includedir}/cbanking
9536328
%{_libdir}/pkgconfig/*
e1e8dba
%{_datadir}/aclocal/aq*
e1e8dba
%{_datadir}/aclocal/cbanking.m4
e1e8dba
e1e8dba
%files -n g2banking
389db12
%defattr(-,root,root)
e1e8dba
%{_libdir}/libg2banking.so.*
e1e8dba
%{_datadir}/aqbanking/frontends/g2banking
e1e8dba
e1e8dba
%files -n g2banking-devel
389db12
%defattr(-,root,root)
e1e8dba
%{_bindir}/g2banking-config
e1e8dba
%{_includedir}/g2banking
e1e8dba
%{_libdir}/libg2banking.so
e1e8dba
%{_datadir}/aclocal/g2banking.m4
9536328
e1e8dba
%files -n kbanking
389db12
%defattr(-,root,root)
e1e8dba
%{_libdir}/libkbanking.so.*
e1e8dba
e1e8dba
%files -n kbanking-devel
389db12
%defattr(-,root,root)
e1e8dba
%{_bindir}/kbanking-config
e1e8dba
%{_includedir}/kbanking
e1e8dba
%{_libdir}/libkbanking.so
e1e8dba
%{_datadir}/aclocal/kbanking.m4
e1e8dba
e1e8dba
%files -n qbanking
389db12
%defattr(-,root,root)
e1e8dba
%{_bindir}/qb-help
e1e8dba
%{_libdir}/libqbanking.so.*
e1e8dba
%{_libdir}/aqbanking/plugins/*/debugger
e1e8dba
%{_libdir}/aqbanking/plugins/*/frontends/qbanking
e1e8dba
%{_libdir}/aqbanking/plugins/*/wizards
e1e8dba
%{_datadir}/aqbanking/i18n
e1e8dba
%{_datadir}/aqbanking/frontends/qbanking
e1e8dba
e1e8dba
%files -n qbanking-devel
389db12
%defattr(-,root,root)
e1e8dba
%{_bindir}/qbanking-config
e1e8dba
%{_includedir}/qbanking
e1e8dba
%{_libdir}/libqbanking.so
e1e8dba
%{_datadir}/aclocal/qbanking.m4
e1e8dba
e1e8dba
%files -n python-%{name}
e1e8dba
%defattr(-,root,root)
7596b78
%{python_sitelib}/%{name}
66fe728
66fe728
%changelog
0e2f0fc
* Wed Jun 20 2007 Bill Nottingham <notting@redhat.com> - 2.2.9-2
0e2f0fc
- add a dist tag
0e2f0fc
f51dfd2
* Mon Mar 19 2007 Bill Nottingham <notting@redhat.com> - 2.2.9-1
f51dfd2
- update to 2.2.9
f51dfd2
0e2e1d5
* Wed Jan 17 2007 Bill Nottingham <notting@redhat.com> - 2.1.0-14
0e2e1d5
- fix docdir, obsoletes for aqhbci-devel, and %%clean
0e2e1d5
5f84577
* Tue Jan 16 2007 Bill Nottingham <notting@redhat.com> - 2.1.0-13
5f84577
- fix docs
5f84577
- add PyXML buildreq
5f84577
389db12
* Mon Jan 15 2007 Bill Nottingham <notting@redhat.com> - 2.1.0-12
389db12
- fix missing %%defattrs
389db12
- fix %%excludes
389db12
- other cleanups from review
62fdbf4
- use %%{_python_sitelib}
de90f91
- require automake
de90f91
- twiddle aqhbci obsoletes
389db12
e1e8dba
* Sat Jan 13 2007 Bill Nottingham <notting@redhat.com> - 2.1.0-11
e1e8dba
- split into a variety of packages
e1e8dba
b0b8518
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 2.1.0-10
b0b8518
- rebuild for python 2.5
b0b8518
c55ad30
* Thu Sep  7 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-9
c55ad30
- rebuild for fixed debuginfo (#205248)
c55ad30
db7808f
* Fri Sep  1 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-8
a4f28ca
- fix multilib conficts (#205204)
86e9bad
4b8babd
* Mon Aug 28 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-4
4b8babd
- rebuild against latest libofx
4b8babd
b656367
* Tue Aug  1 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-3
b656367
- reenable visibility
b656367
e2fc9e1
* Fri Jul 14 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-2
e2fc9e1
- port *-config to pkgconfig
e2fc9e1
- don't use -fvisibility=hidden
e2fc9e1
3d2fd77
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.1.0-1.1
3d2fd77
- rebuild
3d2fd77
87a7c30
* Tue Jul 11 2006 Bill Nottingham <notting@redhat.com> - 2.1.0-1
87a7c30
- update to 2.1.0
87a7c30
d873219
* Mon Jun 12 2006 Bill Nottingham <notting@redhat.com> - 1.8.1beta-5
618406d
- buildreq autoconf, libtool
d873219
ddb65a0
* Tue May 30 2006 Bill Nottingham <notting@redhat.com> - 1.8.1beta-4
ddb65a0
- add gettext buildreq (#193348)
ddb65a0
b795350
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.8.1beta-3.1
b795350
- bump again for double-long bug on ppc(64)
b795350
a18cbc4
* Tue Feb 07 2006 Karsten Hopp <karsten@redhat.de> 1.8.1beta-3
a18cbc4
- buildrequire libofx-devel instead of libofx (pulls in libofx)
a18cbc4
687f5ba
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.8.1beta-2.1
687f5ba
- rebuilt for new gcc4.1 snapshot and glibc changes
687f5ba
fd42925
* Sun Jan 22 2006 Bill Nottingham <notting@redhat.com> 1.8.1beta-2
61ccf93
- add an obsolete (#178554)
61ccf93
3d36c62
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3d36c62
- rebuilt
3d36c62
817c6e8
* Mon Mar  7 2005 Bill Nottingham <notting@redhat.com> 1.0.4beta-2
817c6e8
- rebuild
817c6e8
66fe728
* Wed Feb  9 2005 Bill Nottingham <notting@redhat.com> 1.0.4beta-1
66fe728
- initial packaging, adopt upstream specfile