File project.diff of Package zxing-cpp

--- zxing-cpp.changes.orig
+++ zxing-cpp.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Fri Feb  6 18:33:03 UTC 2026 - munix9@googlemail.com
+
+- Add the zxing-cpp-tools subpackage with ZXingReader, ZXingWriter
+  and corresponding man pages (generated with help2man).
+
+-------------------------------------------------------------------
 Mon Feb 24 08:43:16 UTC 2025 - Christophe Marin <christophe@krop.fr>
 
 - Update to 2.3.0
--- zxing-cpp.spec.orig
+++ zxing-cpp.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package zxing-cpp
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@ URL:            https://github.com/nu-bo
 Source0:        %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source99:       baselibs.conf
 BuildRequires:  cmake >= 3.5
+BuildRequires:  help2man
 BuildRequires:  pkgconfig
 %if 0%{?suse_version} > 1500
 # build the C wrapper only in TW. This package is too old on Leap <= 15.5
@@ -65,6 +66,12 @@ ZXing ("zebra crossing") is an multi-for
 processing library. This package provides header files to use ZXing in
 other applications.
 
+%package tools
+Summary:        Tools for %{name}
+
+%description tools
+This package holds the commandline tools for %{name}.
+
 %prep
 %autosetup -p1
 
@@ -74,15 +81,23 @@ export CXXFLAGS="%{optflags} -std=c++17"
 # Blackbox tests require fmt
 %cmake \
     -DCMAKE_CXX_EXTENSIONS=ON \
-%if 0%{?suse_version} > 1500
-    -DBUILD_C_API=ON \
-%endif
-    -DBUILD_EXAMPLES=OFF
+    -DCMAKE_SKIP_RPATH=ON \
+    -DZXING_C_API=ON \
+    -DZXING_DEPENDENCIES=LOCAL \
+    -DZXING_EXAMPLES=ON
 %cmake_build
 
 %install
 %cmake_install
 
+export PATH=%{buildroot}%{_bindir}:$PATH
+export LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH
+install -d -m 0755 %{buildroot}%{_mandir}/man1
+for p in ZXingReader ZXingWriter; do
+    help2man -N -n "%{summary}" -v "-version" -h "-help" \
+	-o %{buildroot}%{_mandir}/man1/${p}.1 $p
+done
+
 %ldconfig_scriptlets -n libZXing%{sover}
 
 %files -n libZXing%{sover}
@@ -97,4 +112,10 @@ export CXXFLAGS="%{optflags} -std=c++17"
 %{_libdir}/libZXing.so
 %{_libdir}/pkgconfig/zxing.pc
 
+%files tools
+%{_bindir}/ZXingReader
+%{_bindir}/ZXingWriter
+%{_mandir}/man1/ZXingReader.1%{?ext_man}
+%{_mandir}/man1/ZXingWriter.1%{?ext_man}
+
 %changelog
openSUSE Build Service is sponsored by