ktoblzcheck/ktoblzcheck.spec

95 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: ktoblzcheck
Version: 1.52
Release: 1mamba
Summary: A library to check bank account numbers and bank codes (BLZ) of German Banks
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/ktoblzcheck
Source: https://sourceforge.net/projects/ktoblzcheck/files/ktoblzcheck-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A library to check bank account numbers and bank codes (BLZ) of German Banks.
It is based on the specifications of the "Deutsche Bundesbank".
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/ktoblzcheck
%{_bindir}/ibanchk
%{_mandir}/man1/ibanchk.1*
%{_mandir}/man1/ktoblzcheck.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libktoblzcheck.so.*
%{python3_sitearch}/ktoblzcheck.py
%dir %{_datadir}/ktoblzcheck
%{_datadir}/ktoblzcheck/*.txt
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/iban.h
%{_includedir}/ktoblzcheck.h
%dir %{_libdir}/cmake/KtoBlzCheck
%{_libdir}/libktoblzcheck.so
%{_libdir}/cmake/KtoBlzCheck/KtoBlzCheck*.cmake
%{_libdir}/pkgconfig/ktoblzcheck.pc
%dir %{_datadir}/doc/ktoblzcheck
%dir %{_datadir}/doc/ktoblzcheck/api
%{_datadir}/doc/ktoblzcheck/api/*
%doc NEWS
%changelog
* Tue Feb 25 2020 Automatic Build System <autodist@mambasoft.it> 1.52-1mamba
- automatic version update by autodist
* Wed Nov 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50-1mamba
- package created using the webbuild interface