# # spec file for package aqbanking (Version 4.2.4) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define build_ofx 1 Name: aqbanking BuildRequires: doxygen fdupes gmp-devel libqt4-devel python-devel pyxml qt3-devel BuildRequires: gwenhywfar-devel >= 3.10.0 BuildRequires: gwenhywfar-tools BuildRequires: ktoblzcheck-devel >= 1.10 %if %build_ofx BuildRequires: libofx-devel %endif Version: 4.2.4 Release: 1 Requires: %{name}-lang = %{version} Url: http://www.aquamaniac.de/aqbanking/ Group: Productivity/Office/Finance License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import and Export Source: %{name}-%{version}.tar.bz2 Source1: aqbanking4-handbook-20091231.pdf BuildRoot: %{_tmppath}/%{name}-%{version}-build %define aq_plugindir %{_libdir}/aqbanking/plugins/29 %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 %define q4b_cfgmoddir %{fronts_libdir}/q4banking/cfgmodules %description AqBanking is a generic online banking interface. It allows multiple back-ends (currently HBCI) and multiple front-ends (such as KDE, GNOME, or console) to be used. %package doc License: Free Art License 1.3 Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description doc AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. This package contains a handbook. %package devel License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Development/Libraries/C and C++ Requires: %{name} = %{version} glibc-devel gwenhywfar-devel ktoblzcheck-devel qt3-devel %if %build_ofx Requires: libofx-devel %endif %description devel AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %package qt3 License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description qt3 AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %package qt4 License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description qt4 AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %if %build_ofx %package ofx License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description ofx AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %package ofx-qt3 License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description ofx-qt3 AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %package ofx-qt4 License: GPLv2+ Summary: Library for Online Banking Functions and Financial Data Import/Export Group: Productivity/Office/Finance Requires: %{name} = %{version} %description ofx-qt4 AqBanking is a generic OnlineBanking interface. It allows multiple backends (currently HBCI) and multiple frontends (e.g. KDE, GNOME, console) to be used. %endif %lang_package %prep %setup -q %build BACKEND_LIST="aqhbci aqnone" %if %build_ofx BACKEND_LIST="$BACKEND_LIST aqofxconnect" %endif %configure\ --enable-release\ --with-backends="$BACKEND_LIST" \ --enable-full-doc\ --with-qt3-libs=/usr/lib/qt3/%{_lib} \ --with-qt4-libs=%{_libdir} # Does not work with aqbanking-2.2.9: #make %{?jobs:-j%jobs} make %install %makeinstall find %{buildroot} -type f -name "*.la" -delete -print # Remove files that we'll have elsewhere %__rm %{buildroot}%{_datadir}/doc/%{name}/{AUTHORS,COPYING,ChangeLog,README} %__mv %{buildroot}%{_datadir}/doc/aqhbci/aqhbci-tool/README README.aqhbci # Install the handbook %__install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/aqbanking-handbook.pdf %find_lang %{name} %fdupes $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post qt3 -p /sbin/ldconfig %postun qt3 -p /sbin/ldconfig %post qt4 -p /sbin/ldconfig %postun qt4 -p /sbin/ldconfig %if %build_ofx %post ofx -p /sbin/ldconfig %postun ofx -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO README.aqhbci ### The original aqbanking files %{_bindir}/%{name}-cli %{_libdir}/lib%{name}*.so.* %{_libdir}/gwenhywfar %{_datadir}/%{name}/bankinfo %dir %{_datadir}/%{name}/backends %{aq_plugindir}/bankinfo %{imex_plugindir}/ctxfile.* %{imex_plugindir}/csv.* %{imex_plugindir}/dtaus.* %{imex_plugindir}/eri2.* %{imex_plugindir}/openhbci1.* %{imex_plugindir}/sepa.* %{imex_plugindir}/swift.* %{imex_plugindir}/xmldb.* %{imex_plugindir}/yellownet.* %{imex_datadir}/ctxfile %{imex_datadir}/csv %{imex_datadir}/dtaus %{imex_datadir}/eri %{imex_datadir}/eri2 %{imex_datadir}/openhbci1 %{imex_datadir}/sepa %{imex_datadir}/swift %{imex_datadir}/xmldb/profiles/* %{imex_datadir}/yellownet/profiles/* ### The aqhbci files %{_bindir}/aqhbci-tool4 %{_libdir}/libaqhbci.so.* %{aq_plugindir}/providers/aqhbci.* %{_datadir}/%{name}/backends/aqhbci ### The aqnone files %{_libdir}/libaqnone.so.* %{aq_plugindir}/providers/aqnone.* ## Directories %dir %{_libdir}/aqbanking %dir %{_libdir}/aqbanking/plugins %dir %{aq_plugindir} %dir %{aq_plugindir}/debugger %dir %{aq_plugindir}/debugger/aqhbci %dir %{aq_plugindir}/providers %dir %{aq_plugindir}/wizards %dir %{fronts_libdir} %dir %{_datadir}/%{name} %dir %{imex_plugindir} %dir %{fronts_libdir}/qbanking %dir %{fronts_libdir}/q4banking %dir %{fronts_datadir} %dir %{qb_cfgmoddir} %dir %{q4b_cfgmoddir} %dir %{imex_datadir} %dir %{imex_datadir}/xmldb %dir %{imex_datadir}/xmldb/profiles %dir %{imex_datadir}/yellownet %dir %{imex_datadir}/yellownet/profiles %if !%build_ofx %{imex_datadir}/ofx %endif %files lang -f %name.lang %files doc %defattr(-,root,root) %{_datadir}/%{name}/aqbanking-handbook.pdf %files devel %defattr(-,root,root) ### The aqbanking files %{_bindir}/*-config #%{_bindir}/%{name}-config %{_includedir}/%{name} %{_libdir}/libaqbanking.so %{_libdir}/libaqhbci.so %{_libdir}/libaqnone.so %{_libdir}/pkgconfig/%{name}.pc %{_datadir}/aclocal ### The aqhbci files #%{_bindir}/aqhbci-config %{_bindir}/hbcixml3 %{_includedir}/aqhbci ### The qbanking files #%{_bindir}/qbanking-config %{_includedir}/qbanking %{_includedir}/q4banking %if %build_ofx ### The ofx files %{_includedir}/aqofxconnect %endif # .so files from sub-packages %{_libdir}/libqbanking.so %{_libdir}/libq4banking.so %if %build_ofx %{_libdir}/libaqofxconnect.so %endif %files qt3 %defattr(-,root,root) %{_bindir}/qb-help8 %{_libdir}/libqbanking.so.* %{aq_plugindir}/debugger/aqhbci/aqhbci-qt3-debug %{aq_plugindir}/debugger/aqhbci/qt_debug.xml %{aq_plugindir}/wizards/qt3* %{qb_cfgmoddir}/aqhbci* %{_datadir}/%{name}/i18n %{fronts_datadir}/qbanking %files qt4 %defattr(-,root,root) %{_bindir}/q4b-help1 %{_libdir}/libq4banking.so.* %{aq_plugindir}/debugger/aqhbci/aqhbci-qt4-debug %{aq_plugindir}/debugger/aqhbci/qt4_debug.xml %{aq_plugindir}/wizards/qt4* %{q4b_cfgmoddir}/aqhbci* %{fronts_datadir}/q4banking %if %build_ofx %files ofx %defattr(-,root,root) #%{_bindir}/aqofxconnect-config %{_libdir}/libaqofxconnect.so.* %{aq_plugindir}/providers/aqofxconnect.* %{imex_plugindir}/ofx.* %{imex_datadir}/ofx %files ofx-qt3 %defattr(-,root,root) %{qb_cfgmoddir}/aqofxconnect* %files ofx-qt4 %defattr(-,root,root) %{q4b_cfgmoddir}/aqofxconnect* %endif %changelog