File kontocheck.spec of Package kontocheck

%define name kontocheck
%define version 6.0.10
%define fileversion 6.10

Summary: check german account numbers and convert to IBAN/BIC
Name: %{name}
Version: %{version}
Release: %{release}
Packager: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
License: GPL
Group: Development
Requires: httpd php zlib
BuildRequires: unzip gcc libtool make automake gcc-c++ zlib-devel php-cli php-devel
BuildRoot: /tmp/buildroot
Source: konto_check-%{fileversion}.zip
Source1: blz.lut2f
Source2: konto_check_frontend.php

%description
check german account numbers and convert to IBAN/BIC

%prep
[ -d $RPM_BUILD_ROOT ] && [ "/" != "$RPM_BUILD_ROOT" ] && rm -rf $RPM_BUILD_ROOT
%setup  -q  -n konto_check-%{fileversion}

%build
# Configure and make source
unzip php.zip
cd php
phpize
./configure --enable-beschreibung --enable-symbolic_retvals || cat config.log
make

%install
rm -rf %{buildroot}
cd php
# does not recognize DESTDIR: make DESTDIR=%{buildroot} install
mkdir -p  %{buildroot}/%{_libdir}/php/modules
cp modules/konto_check.so %{buildroot}/%{_libdir}/php/modules
mkdir -p %{buildroot}/etc/php.d
cp konto_check.ini %{buildroot}/etc/php.d/
cp %SOURCE1 %{buildroot}/etc/blz.lut
mkdir -p %{buildroot}/var/www/html/konto_check
cp %SOURCE2 %{buildroot}/var/www/html/konto_check/index.php

%clean
# Clean up after ourselves, but be careful in case someone sets a bad buildroot
[ -d %{buildroot} ] && [ "/" != "%{buildroot}" ] && rm -rf %{buildroot}

%files
/etc/php.d/konto_check.ini
/etc/blz.lut
%{_libdir}/php/modules/konto_check.so
/var/www/html/konto_check/index.php

%post

%changelog
* Wed Sep  4 2019 Timotheus Pokorra <tp@tbits.net>
- upgrade to 6.10
* Wed Apr  3 2019 Timotheus Pokorra <tp@tbits.net>
- upgrade to 6.08
* Wed Dec  5 2018 Timotheus Pokorra <tp@tbits.net>
- upgrade to 6.07
* Fri Sep 14 2018 Timotheus Pokorra <tp@tbits.net>
- upgrade to 6.05
* Fri Aug 17 2018 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest lutfile
* Mon Jun 04 2018 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest lutfile
* Mon Mar 19 2018 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest lutfile
* Mon Dec 04 2017 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest release and latest lutfile
* Tue Sep 05 2017 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest release and latest lutfile
* Fri Jun 16 2017 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest release and latest lutfile
* Thu Mar 09 2017 Timotheus Pokorra <tp@tbits.net>
- upgrade to latest lutfile
* Wed Feb 08 2017 Timotheus Pokorra <tp@tbits.net>
- properly encode the results with utf-8
* Sat Nov 26 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- upgrade to latest lutfile, and to konto_check 5.9
* Sat Sep 03 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- upgrade to latest lutfile
* Mon Jun 06 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- upgrade to latest lutfile
* Thu Mar 03 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- upgrade to latest lutfile
* Fri Jan 29 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- upgrade to fixed lutfile
* Mon Aug 31 2015 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.8
* Thu May 28 2015 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.7
* Wed May 13 2015 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.6
* Thu Dec 04 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- latest version of blz.lut2f
* Sat Sep 13 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.5
* Mon Sep 01 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- include blz.lutf2.fixed
* Tue Jun 03 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.4
* Wed Mar 05 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.3
* Tue Feb 11 2014 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- updated the php frontend: can now validate IBAN and BIC over webservice
* Sun Nov 17 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.2
* Sat Oct 05 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- small fixes to the lut2f file
* Tue Sep 24 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- small fixes to the html file
* Fri Sep 20 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.1
* Mon Aug 05 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- build for version 5.0
* Wed Jul 24 2013 Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
- First build