[packages/ktoblzcheck] - updated to 1.59; data in separate package now

qboosh qboosh at pld-linux.org
Tue Apr 14 21:59:28 CEST 2026


commit cf0ae14efc04f51aaf8f15389eb0509d82a92e80
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 14 22:00:03 2026 +0200

    - updated to 1.59; data in separate package now

 ktoblzcheck-python.patch | 35 +++++++++--------------------------
 ktoblzcheck-static.patch | 12 ++++++------
 ktoblzcheck.spec         | 42 ++++++++++++++++++++----------------------
 3 files changed, 35 insertions(+), 54 deletions(-)
---
diff --git a/ktoblzcheck.spec b/ktoblzcheck.spec
index 467bc43..d9b5fdf 100644
--- a/ktoblzcheck.spec
+++ b/ktoblzcheck.spec
@@ -6,23 +6,26 @@
 Summary:	A library to check account numbers and bank codes of German banks
 Summary(pl.UTF-8):	Biblioteka do sprawdzania numerów kont i kodów bankowych niemieckich banków
 Name:		ktoblzcheck
-Version:	1.53
-Release:	3
+Version:	1.59
+Release:	1
 License:	LGPL v2+
 Group:		Libraries
 Source0:	https://downloads.sourceforge.net/ktoblzcheck/%{name}-%{version}.tar.gz
-# Source0-md5:	5cedb258370acd22ec3d0c90e0e66fec
+# Source0-md5:	cd26ce16ebed8538b4c7e4cb5da1c70a
 Patch0:		%{name}-static.patch
 Patch1:		%{name}-python.patch
 URL:		https://ktoblzcheck.sourceforge.net/
-BuildRequires:	cmake >= 3.0
-BuildRequires:	doxygen
-BuildRequires:	libstdc++-devel
+BuildRequires:	cmake >= 3.14.0
+BuildRequires:	curl-devel
+BuildRequires:	doxygen >= 1.8.3
+BuildRequires:	libstdc++-devel >= 6:5
 %{?with_python2:BuildRequires:	python-modules >= 1:2.6}
 BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sqlite3-devel
+Requires:	ktoblzcheck-data >= 20250515
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,7 +51,7 @@ Summary:	Header files for KtoBLZCheck library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki KtoBLZCheck
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	libstdc++-devel
+Requires:	libstdc++-devel >= 6:5
 
 %description devel
 Header files for KtoBLZCheck library.
@@ -116,26 +119,21 @@ Wiązanie Pythona dla biblioteki KtoBLZCheck.
 
 %build
 %if %{with static_libs}
-install -d build-static
-cd build-static
-%cmake .. \
+%cmake -B build-static \
 	-DBUILD_STATIC=ON \
 	-DENABLE_BANKDATA_DOWNLOAD=OFF
 
-%{__make}
-cd ..
+%{__make} -C build-static
 %endif
 
-install -d build
-cd build
-%cmake .. \
+%cmake -B build \
 	-DCMAKE_INSTALL_BINDIR=bin \
 	-DCMAKE_INSTALL_DATADIR=share \
 	-DCMAKE_INSTALL_INCLUDEDIR=include \
 	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	-DENABLE_BANKDATA_DOWNLOAD=OFF
 
-%{__make}
+%{__make} -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -155,7 +153,7 @@ rm -rf $RPM_BUILD_ROOT
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
 
 %if %{with python2}
-# module supports CPython 2.6+, but cmake prefers python3, in such case python2 module must be installed manually
+# module is still CPython 2.6+ compliant, but cmake supports only python3, in such case python2 module must be installed manually
 install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
 cp -p src/python/ktoblzcheck.py $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
@@ -174,18 +172,18 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog NEWS README.md
 %attr(755,root,root) %{_bindir}/ibanchk
 %attr(755,root,root) %{_bindir}/ktoblzcheck
-%attr(755,root,root) %{_libdir}/libktoblzcheck.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libktoblzcheck.so.1
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*.txt
+%attr(755,root,root) %{_bindir}/ktoblzupdate
+%{_libdir}/libktoblzcheck.so.*.*.*
+%ghost %{_libdir}/libktoblzcheck.so.1
 %{_mandir}/man1/ibanchk.1*
 %{_mandir}/man1/ktoblzcheck.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libktoblzcheck.so
+%{_libdir}/libktoblzcheck.so
 %{_includedir}/iban.h
 %{_includedir}/ktoblzcheck.h
+%{_includedir}/ktoblzcheck_export.h
 %{_libdir}/cmake/KtoBlzCheck
 %{_pkgconfigdir}/ktoblzcheck.pc
 
diff --git a/ktoblzcheck-python.patch b/ktoblzcheck-python.patch
index 2aa14c6..beacad8 100644
--- a/ktoblzcheck-python.patch
+++ b/ktoblzcheck-python.patch
@@ -1,28 +1,11 @@
---- ktoblzcheck-1.53/CMakeLists.txt.orig	2023-10-28 10:56:58.032206936 +0200
-+++ ktoblzcheck-1.53/CMakeLists.txt	2023-10-28 11:01:35.357371203 +0200
-@@ -82,7 +82,7 @@ find_package (Python3 COMPONENTS Interpr
- if(Python3_FOUND)
-     set(Python_EXECUTABLE ${Python3_EXECUTABLE})
-     string(REGEX REPLACE "^([0-9]+.[0-9]+).*" "\\1" Python_VERSION_MAJOR_MINOR ${Python3_VERSION})
--    set(Python_SITEARCH "${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
-+    set(Python_SITEARCH "${CMAKE_INSTALL_DATADIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
-     set(Python_Interpreter_FOUND TRUE)
-     set(Python_Development_FOUND TRUE)
- else()
-@@ -98,14 +98,14 @@ else()
-     endif()
-     if(Python2_Development_FOUND)
-         string(REGEX REPLACE "^([0-9]+.[0-9]+).*" "\\1" Python_VERSION_MAJOR_MINOR ${Python2_VERSION})
--        set(Python_SITEARCH "${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
-+	set(Python_SITEARCH "${CMAKE_INSTALL_DATADIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
-         set(Python_Development_FOUND TRUE)
-     else()
-         find_package(PythonLibs 2.6 REQUIRED)
-         set(Python_Development_FOUND TRUE)
-         set(Python2_VERSION ${PYTHONLIBS_VERSION_STRING})
-         string(REGEX REPLACE "^([0-9]+.[0-9]+).*" "\\1" Python_VERSION_MAJOR_MINOR ${Python2_VERSION})
+--- ktoblzcheck-1.59/CMakeLists.txt.orig	2026-04-13 05:34:29.184853870 +0200
++++ ktoblzcheck-1.59/CMakeLists.txt	2026-04-13 20:18:33.150823353 +0200
+@@ -95,7 +95,7 @@ else()
+     if(Python3_FOUND)
+         set(Python_EXECUTABLE ${Python3_EXECUTABLE})
+         string(REGEX REPLACE "^([0-9]+.[0-9]+).*" "\\1" Python_VERSION_MAJOR_MINOR ${Python3_VERSION})
 -        set(Python_SITEARCH "${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
-+	set(Python_SITEARCH "${CMAKE_INSTALL_DATADIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
++        set(Python_SITEARCH "${CMAKE_INSTALL_DATADIR}/python${Python_VERSION_MAJOR_MINOR}/site-packages")
+         set(Python_Interpreter_FOUND TRUE)
+         message(STATUS "found python3 version ${Python3_VERSION} with site packages installation directory '${Python_SITEARCH}'")
      endif()
- endif()
- ########### configure checks ###############
diff --git a/ktoblzcheck-static.patch b/ktoblzcheck-static.patch
index b714bf7..a3ad10f 100644
--- a/ktoblzcheck-static.patch
+++ b/ktoblzcheck-static.patch
@@ -1,17 +1,17 @@
 Let BUILD_STATIC enable just static libktoblzcheck library
---- ktoblzcheck-1.53/CMakeLists.txt.orig	2020-04-20 14:58:13.000000000 +0200
-+++ ktoblzcheck-1.53/CMakeLists.txt	2023-10-28 10:50:05.477775268 +0200
-@@ -17,10 +17,6 @@ set(BANK_WEBSITE_PATH /de/aufgaben/unbar
+--- ktoblzcheck-1.59/CMakeLists.txt.orig	2025-05-20 10:49:45.000000000 +0200
++++ ktoblzcheck-1.59/CMakeLists.txt	2026-04-12 20:36:28.556399722 +0200
+@@ -11,10 +11,6 @@ option(ENABLE_METHOD_TESTS "Enable testi
  
- option(INSTALL_SEPA_BANKDATA_FILE "Install sepa provider data file in csv format" OFF)
+ ########### global settings ###############
  option(BUILD_STATIC "build static library and executables" OFF)
 -if(BUILD_STATIC)
 -    set(LIBS -static -static-libgcc -static-libstdc++)
 -    set(CMAKE_BUILD_TYPE Release)
 -endif()
  
- # provide gnu compatible install dirs
- include(GNUInstallDirs)
+ set (CMAKE_CXX_STANDARD 14)
+ 
 --- ktoblzcheck-1.53/src/bin/CMakeLists.txt.orig	2020-04-20 14:57:36.000000000 +0200
 +++ ktoblzcheck-1.53/src/bin/CMakeLists.txt	2023-10-28 10:50:13.601064594 +0200
 @@ -5,10 +5,6 @@ set(ktoblzcheck_bin_SRCS ktoblzcheck.cc)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ktoblzcheck.git/commitdiff/cf0ae14efc04f51aaf8f15389eb0509d82a92e80



More information about the pld-cvs-commit mailing list