File project.diff of Package libcomps

--- libcomps.spec.orig
+++ libcomps.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package libcomps
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 # Copyright (c) 2021 Neal Gompa <ngompa13@gmail.com>.
 #
 # All modifications and additions to the file contributed by third parties
@@ -44,7 +44,7 @@ BuildRequires:  python-rpm-macros
 BuildRequires:  zlib-devel
 
 # prevent provides from nonstandard paths:
-%define __provides_exclude ^(%{python3_sitearch}/.*\\.so)$
+%define __provides_exclude ^(%{python_sitearch}/.*\\.so)$
 
 %description
 Libcomps is library for structure-like manipulation with content of
@@ -79,20 +79,20 @@ Documentation files for libcomps library
 Summary:        Documentation files for python bindings libcomps library
 Group:          Documentation/HTML
 BuildArch:      noarch
-BuildRequires:  python3-Sphinx
+BuildRequires:  %{primary_python}-Sphinx
 
 %description -n python-libcomps-doc
 Documentation files for python bindings libcomps library.
 
-%package -n python3-libcomps
+%package -n %{primary_python}-libcomps
 Summary:        Python 3 bindings for libcomps library
 Group:          Development/Libraries/Python
-BuildRequires:  python3-devel
+BuildRequires:  %{primary_python}-devel
 Requires:       %{libname}%{?_isa} = %{version}-%{release}
 # There is no more Python 2 subpackage
 Obsoletes:      python2-libcomps < 0.1.9
 
-%description -n python3-libcomps
+%description -n %{primary_python}-libcomps
 This package provides the Python 3 bindings for libcomps library.
 
 %prep
@@ -122,7 +122,7 @@ rm build/src/python/docs/html/.doctrees/
 cp -a build/src/python/docs/html %{buildroot}%{_datadir}/doc/python-libcomps/
 
 %python_compileall
-%fdupes %{buildroot}%{python3_sitearch}
+%fdupes %{buildroot}%{python_sitearch}
 
 %fdupes %{buildroot}%{_datadir}/doc/libcomps
 %fdupes %{buildroot}%{_datadir}/doc/python-libcomps
@@ -147,8 +147,8 @@ cp -a build/src/python/docs/html %{build
 %files -n python-libcomps-doc
 %doc %{_datadir}/doc/python-libcomps
 
-%files -n python3-libcomps
-%{python3_sitearch}/libcomps/
-%{python3_sitearch}/libcomps-%{version}*-info
+%files -n %{primary_python}-libcomps
+%{python_sitearch}/libcomps/
+%{python_sitearch}/libcomps-%{version}*-info
 
 %changelog
openSUSE Build Service is sponsored by