File ktoblzcheck.spec of Package ktoblzcheck
#
# spec file for package ktoblzcheck (Version 1.28)
#
# 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
Name: ktoblzcheck
Summary: Library to check account numbers and bank codes of German banks documents
Version: 1.28
Release: 1
Source: %{name}-%{version}.tar.bz2
Group: Productivity/Office/Finance
License: LGPLv2.1+
Url: http://ktoblzcheck.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
BuildRequires: fdupes gcc-c++ python
%description
KtoBLZCheck is a library to check account numbers and bank codes of
German banks. Both a library for other programs as well as a short
command-line tool is available. It is possible to check pairs of
account numbers and bank codes (BLZ) of German banks, and to map bank
codes (BLZ) to the clear-text name and location of the bank.
Authors:
--------
Fabian Kaiser <fabian@openhbci.de>
Christian Stimming <stimming@tuhh.de>
%package -n libktoblzcheck1-devel
License: LGPLv2.1+
Summary: Libraries, includes etc to develop with ktoblzcheck library
Group: Development/Libraries/C and C++
Requires: libktoblzcheck1 = %{version}
Provides: libktoblzcheck-devel = %{version}
Obsoletes: libktoblzcheck-devel < %{version}
Provides: ktoblzcheck-devel = %{version}
Obsoletes: ktoblzcheck-devel < %{version}
%description -n libktoblzcheck1-devel
Libraries and include files to develop with ktoblzcheck library.
Authors:
--------
Fabian Kaiser <fabian@openhbci.de>
Christian Stimming <stimming@tuhh.de>
%package -n libktoblzcheck1
License: LGPLv2.1+
Summary: Shared Libraries for ktoblzcheck
Group: System/Libraries
%description -n libktoblzcheck1
Shared Libraries for package ktoblzcheck.
Authors:
--------
Fabian Kaiser <fabian@openhbci.de>
Christian Stimming <stimming@tuhh.de>
%package -n python-ktoblzcheck
License: LGPLv2.1+
Summary: KtoBLZCheck python-bindings
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: libktoblzcheck1 = %{version}
Requires: python >= 2.5
%description -n python-ktoblzcheck
This package contains the python-bindings for ktoblzcheck.
Authors:
--------
Fabian Kaiser <fabian@openhbci.de>
Christian Stimming <stimming@tuhh.de>
%prep
%setup -q
%{?suse_update_config:%{suse_update_config -f}}
%build
%{configure} \
--disable-debug \
--enable-python \
--disable-static \
--with-pic
%{__make} %{?jobs:-j%jobs}
%install
make pythondir=%{py_sitedir} DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
# mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
# mv $RPM_BUILD_ROOT/usr/man/man1/ktoblzcheck.1 $RPM_BUILD_ROOT/usr/share/man/man1/
#cp -p AUTHORS ChangeLog COPYING INSTALL NEWS README README.WIN32 TODO $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cp -p AUTHORS ChangeLog COPYING INSTALL NEWS README $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
#%makeinstall \
# pythondir=%{py_sitedir}
%fdupes -s %{buildroot}
%__rm %{buildroot}%{_libdir}/*.la
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%post -n libktoblzcheck1 -p /sbin/ldconfig
%postun -n libktoblzcheck1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_defaultdocdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/bankdata.txt
%{_datadir}/%{name}/ibandata.txt
%{_datadir}/%{name}/bundesbank.pl
%{_datadir}/%{name}/online_update.pl
%{_datadir}/%{name}/bankdata_*.txt
%files -n libktoblzcheck1
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n libktoblzcheck1-devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%{_includedir}/iban.h
%files -n python-%{name}
%defattr(-,root,root)
%{py_sitedir}/*
%changelog