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
Bill Nottingham 1cfacaf
Version: 5.0.2
Bill Nottingham 23cdda9
Release: 3%{?dist}
904359e
# Download is PHP form at http://www.aquamaniac.de/sites/download/packages.php
Bill Nottingham c58f01d
# aqbanking contains nonfree code that we cannot ship.  Therefore we use
Bill Nottingham c58f01d
# this script to remove the nonfree code before shipping it.
Bill Nottingham c58f01d
# Download the upstream tarball and invoke this script while in the
Bill Nottingham c58f01d
# tarball's directory:
Bill Nottingham c58f01d
# ./generate-tarball.sh 1.0
Bill Nottingham c58f01d
Source: %{name}-%{version}-patched.tar.gz
66fe728
Group: System Environment/Libraries
0ec094e
License: GPLv2+
e7d9a25
URL: http://www.aquamaniac.de/aqbanking/
Bill Nottingham 1cfacaf
Patch2: aqbanking-5.0.2-pkgconfig.patch
Bill Nottingham c58f01d
Patch3: aqbanking-5.0.2-conflict.patch
e7d9a25
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Bill Nottingham 1cfacaf
BuildRequires: gwenhywfar-devel >= 4.0.0, gmp-devel, gettext, libtool
de90f91
Obsoletes: aqhbci <= 1.0.3
b3d1a3e
Obsoletes: g2banking < 3.7.2-1 
Bill Nottingham 1cfacaf
Obsoletes: qbanking < 5.0
Bill Nottingham 1cfacaf
Obsoletes: q4banking < 5.0
937e8aa
Obsoletes: python-aqbanking
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
b3d1a3e
Obsoletes: g2banking-devel < 3.7.2-1 
Bill Nottingham 23cdda9
Obsoletes: qbanking-devel < 5.0
Bill Nottingham 23cdda9
Obsoletes: q4banking-devel < 5.0
9536328
66fe728
%description devel
66fe728
This package contains aqbanking-config and header files for writing and
66fe728
compiling programs using Aqbanking.
66fe728
66fe728
%prep
87a7c30
%setup -q
86e9bad
%patch2 -p1 -b .pkgconfig
2f2bbd8
%patch3 -p1 -b .conflict
bc1c235
bc1c235
# hack to nuke rpaths, slighly less ugly than using overriding LIBTOOL below
bc1c235
%if "%{_libdir}" != "/usr/lib"
bc1c235
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
bc1c235
%endif
66fe728
66fe728
%build
b3d1a3e
b3d1a3e
%configure \
Bill Nottingham 1cfacaf
  --disable-static
e1e8dba
bc1c235
# not smp_mflags safe
bc1c235
# override LIBTOOL to quash rpath
bc1c235
make 
bc1c235
#LIBTOOL=/usr/bin/libtool
66fe728
66fe728
%install
389db12
rm -rf $RPM_BUILD_ROOT
66fe728
bc1c235
make install DESTDIR=$RPM_BUILD_ROOT
bc1c235
# LIBTOOL=/usr/bin/libtool 
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
6e99506
rm -f Makefile*
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
bc1c235
%check
bc1c235
## meh, requires X server
bc1c235
make check ||:
bc1c235
66fe728
%clean
0e2e1d5
rm -rf $RPM_BUILD_ROOT
66fe728
66fe728
%post -p /sbin/ldconfig
66fe728
66fe728
%postun -p /sbin/ldconfig
66fe728
e1e8dba
%files -f %{name}.lang
66fe728
%defattr(-,root,root)
0e2e1d5
%doc %{_datadir}/doc/%{name}-%{version}
e1e8dba
%{_libdir}/libaq*.so.*
b3d1a3e
%dir %{_libdir}/aqbanking
b3d1a3e
%dir %{_libdir}/aqbanking/plugins/
Bill Nottingham 1cfacaf
%dir %{_libdir}/aqbanking/plugins/*
Bill Nottingham 1cfacaf
%{_libdir}/aqbanking/plugins/*/bankinfo
Bill Nottingham 1cfacaf
%{_libdir}/aqbanking/plugins/*/imexporters
Bill Nottingham 1cfacaf
%{_libdir}/aqbanking/plugins/*/providers
b3d1a3e
%{_libdir}/gwenhywfar/plugins/*/dbio/*
b3d1a3e
%dir %{_datadir}/aqbanking
Bill Nottingham 1cfacaf
%dir %{_datadir}/aqbanking/aqbanking
b3d1a3e
%{_datadir}/aqbanking/backends/
b3d1a3e
%{_datadir}/aqbanking/bankinfo/
Bill Nottingham 1cfacaf
%{_datadir}/aqbanking/dialogs/
b3d1a3e
%{_datadir}/aqbanking/imexporters/
937e8aa
%{_bindir}/aqbanking-cli
b3d1a3e
%{_bindir}/aqhbci-tool4
66fe728
66fe728
%files devel
66fe728
%defattr(-,root,root)
0e2e1d5
%doc doc/0[12]* tutorials
86269e3
%{_bindir}/hbcixml3
b3d1a3e
%{_bindir}/aqbanking-config
e1e8dba
%{_libdir}/libaq*.so
b3d1a3e
%{_includedir}/aq*/
b3d1a3e
%{_libdir}/pkgconfig/aqbanking.pc
b3d1a3e
%{_datadir}/aclocal/aqbanking.m4
Bill Nottingham 1cfacaf
%{_datadir}/aqbanking/aqbanking/typemaker2
Bill Nottingham 1cfacaf
%{_datadir}/aqbanking/typemaker2
b3d1a3e
66fe728
%changelog
Bill Nottingham 23cdda9
* Mon Feb 21 2011 Bill Nottingham <notting@redhat.com> - 5.0.2-3
Bill Nottingham 23cdda9
- fix -devel obsoletes
Bill Nottingham 23cdda9
Bill Nottingham c58f01d
* Wed Feb 16 2011 Bill Nottingham <notting@redhat.com> - 5.0.2-2
Bill Nottingham c58f01d
- remove aqpaypal source
Bill Nottingham c58f01d
Bill Nottingham 1cfacaf
* Fri Feb 11 2011 Bill Nottingham <notting@redhat.com> - 5.0.2-1
Bill Nottingham 1cfacaf
- update to latest upstream release
Bill Nottingham 1cfacaf
6d2c8f3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-7
6d2c8f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6d2c8f3
b9e9258
* Sun Aug 22 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.2.4-6
b9e9258
- q4banking: try harder to purge qt3 dep (#626008)
b9e9258
bc1c235
* Sun Aug 22 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.2.4-5
bc1c235
- rebase pkgconfig patch
bc1c235
- q4banking should not depend on qt3 (#626008)
bc1c235
- include %%check section, though currently mostly useless
bc1c235
bd4a733
* Fri Jun 25 2010 Bill Nottingham <notting@redhat.com> - 4.2.4-4
41721f4
- fix multilib errors (#602879)
41721f4
b3d1a3e
* Fri Mar 19 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.2.4-2
b3d1a3e
- q4banking(-devel) pkgs (#571575)
b3d1a3e
- better versioned g2banking/kbanking Obsoletes
b3d1a3e
1191f4c
* Mon Mar  8 2010 Bill Nottingham <notting@redhat.com> - 4.2.4-1
1191f4c
- update to latest upstream 4.2.4
1191f4c
937e8aa
* Thu Jan 21 2010 Bill Nottingham <notting@redhat.com> - 4.2.3-1
937e8aa
- update to latest upstream 4.2.3
937e8aa
- obsolete the dead python-aqbanking package
937e8aa
ad2eccb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-2
ad2eccb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ad2eccb
aa9dc8d
* Thu Mar  5 2009 Bill Nottingham <notting@redhat.com> - 3.8.2-1
aa9dc8d
- update to 3.8.2-1
aa9dc8d
702fa80
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.2-3
702fa80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
702fa80
0dad63e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.7.2-2
0dad63e
- Rebuild for Python 2.6
0dad63e
86269e3
* Tue Sep  9 2008 Bill Nottingham <notting@redhat.com> - 3.7.2-1
86269e3
- update to 3.7.2
86269e3
- obsolete the no-longer-existing g2banking/kbanking packages
86269e3
fd22770
* Tue Mar 25 2008 Rex Dieter <rdieter@fedoraproject.org> - 2.3.3-3
fd22770
- s/qt-devel/qt3-devel/ (f9+)
fd22770
- qbanking-devel: Req: qt3-devel
fd22770
- kbanking-devel: Req: kdelibs3-devel
fd22770
- omit extraneous: Req: pkgconfig
fd22770
8d066d9
* Thu Feb 14 2008 Bill Nottingham <notting@redhat.com> - 2.3.3-2
8d066d9
- rebuild for gcc-4.3
8d066d9
e53ad49
* Tue Jan 15 2008 Bill Nottingham <notting@redhat.com> - 2.3.3-1
e53ad49
- update to 2.3.3
e53ad49
3109b6b
* Wed Dec 19 2007 Bill Nottingham <notting@redhat.com> - 2.3.2-4
3109b6b
- kbanking-devel needs to require qbanking-devel (#426265)
3109b6b
6e99506
* Tue Oct 30 2007 Bill Nottingham <notting@redhat.com> - 2.3.2-3
6e99506
- fix multilib conflicts (#340671)
6e99506
fa656b2
* Wed Aug 29 2007 Bill Nottingham <notting@redhat.com> - 2.3.2-2
f7b2389
- Rebuild for selinux ppc32 issue.
fa656b2
- fix build with current glibc/headers
f7b2389
0ec094e
* Fri Aug  3 2007 Bill Nottingham <notting@redhat.com>
0ec094e
- tweak license tag
0ec094e
d3d0fd9
* Wed Jul 11 2007 Bill Nottingham <notting@redhat.com> - 2.3.2-1
d3d0fd9
- update to 2.3.2
d3d0fd9
f2460e4
* Mon Jun 25 2007 Bill Nottingham <notting@redhat.com> - 2.2.9-3
f2460e4
- fix some build bogosity
f2460e4
be565fb
* Wed Jun 20 2007 Bill Nottingham <notting@redhat.com> - 2.2.9-2
be565fb
- add a dist tag
be565fb
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