File mingw32-ktoblzcheck-data.spec of Package mingw32-ktoblzcheck-data
# Copyright (c) 2005-2008 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de
# norootforbuild
%define pysuffix 3
%define pydep python3-base python3-openpyxl
%define _kname ktoblzcheck
%define _name ktoblzcheck-data
Name: mingw32-%{_name}
Summary: A library to check account numbers and bank codes of German banks
Version: 20250515
Release: 0
Source: http://downloads.sourceforge.net/project/%{_kname}/%{_name}-%{version}.tar.gz
Source1: download---bankleitzahlen-602592
Source2: BIC-lijst-NL-2.xlsx
Source3: bcbankenstamm
Source4: verzeichnis-der-erreichbaren-zahlungsdienstleister-data.csv
Group: Productivity/Office/Finance
License: LGPL-2.1-only
URL: http://ktoblzcheck.sourceforge.net
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
# for %%_mingw32_python3_version
BuildRequires: mingw32-python3-devel
BuildRequires: %{pydep}
%_mingw32_package_header_debug
BuildArch: noarch
%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.
%_mingw32_debug_package
%prep
%autosetup -p1 -n %{_name}-%{version}
cp %{SOURCE1} data/blz_$(date '+%Y%m%d').txt
cp %{SOURCE2} data/nl_data.xlsx
cp %{SOURCE3} data/ch_data.txt
cp %{SOURCE4} data/sepa_$(date '+%Y%m%d').txt
%build
%_mingw32_cmake \
-DINSTALL_RAW_BANKDATA_FILE=1\
-DENABLE_BANKDATA_DOWNLOAD=0 \
-DPython3_FOUND=1 \
-DPython3_EXECUTABLE=/usr/bin/python%{pysuffix} \
-DPython3_VERSION=%{_mingw32_python3_version}
%_mingw32_cmake_build
%install
%_mingw32_cmake_install DESTDIR=%{buildroot}
%files
%defattr(-,root,root)
%doc README.md
%{_mingw32_datadir}/%{_kname}
%changelog