File project.diff of Package dnf-plugins-core

--- dnf-plugins-core.spec.orig
+++ dnf-plugins-core.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package dnf-plugins-core
 #
-# 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
@@ -69,7 +69,7 @@ BuildArch:      noarch
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gettext
-Requires:       python3-dnf-plugins-core = %{version}-%{release}
+Requires:       %{primary_python}-dnf-plugins-core = %{version}-%{release}
 
 Provides:       dnf-command(builddep)
 Provides:       dnf-command(changelog)
@@ -82,14 +82,14 @@ Provides:       dnf-command(debug-restor
 Provides:       dnf-command(debuginfo-install)
 Provides:       dnf-command(download)
 Provides:       dnf-command(groups-manager)
+Provides:       dnf-command(offline-distrosync)
+Provides:       dnf-command(offline-upgrade)
 Provides:       dnf-command(repoclosure)
+Provides:       dnf-command(repodiff)
 Provides:       dnf-command(repograph)
 Provides:       dnf-command(repomanage)
 Provides:       dnf-command(reposync)
-Provides:       dnf-command(repodiff)
 Provides:       dnf-command(system-upgrade)
-Provides:       dnf-command(offline-upgrade)
-Provides:       dnf-command(offline-distrosync)
 
 # Plugins shift from extras to core
 Provides:       dnf-plugins-extras-debug = %{version}-%{release}
@@ -118,42 +118,42 @@ Core Plugins for DNF. This package enhan
 needs-restarting, repoclosure, repograph, repomanage, and reposync commands.
 Additionally, it provides the generate_completion_cache passive plugin.
 
-%package -n python3-dnf-plugins-core
+%package -n %{primary_python}-dnf-plugins-core
 Summary:        Python 3 interface to core plugins for DNF
 Group:          System/Packages
-BuildRequires:  python3-Sphinx
-BuildRequires:  python3-dbus-python
-BuildRequires:  python3-devel
-BuildRequires:  python3-dnf >= %{dnf_lowest_compatible}
-BuildRequires:  python3-pytest
-BuildRequires:  python3-systemd
+BuildRequires:  %{primary_python}-Sphinx
+BuildRequires:  %{primary_python}-dbus-python
+BuildRequires:  %{primary_python}-devel
+BuildRequires:  %{primary_python}-dnf >= %{dnf_lowest_compatible}
+BuildRequires:  %{primary_python}-pytest
+BuildRequires:  %{primary_python}-systemd
 BuildRequires:  systemd
 BuildRequires:  pkgconfig(systemd)
-Requires:       python3-dateutil
-Requires:       python3-dbus-python
-Requires:       python3-distro
-Requires:       python3-dnf >= %{dnf_lowest_compatible}
-Requires:       python3-hawkey >= %{hawkey_version}
-Requires:       python3-systemd
+Requires:       %{primary_python}-dateutil
+Requires:       %{primary_python}-dbus-python
+Requires:       %{primary_python}-distro
+Requires:       %{primary_python}-dnf >= %{dnf_lowest_compatible}
+Requires:       %{primary_python}-hawkey >= %{hawkey_version}
+Requires:       %{primary_python}-systemd
 
 Conflicts:      %{name} <= 0.1.5
 # let the both python plugin versions be updated simultaneously
-Conflicts:      python3-%{name} < %{version}-%{release}
+Conflicts:      %{primary_python}-%{name} < %{version}-%{release}
 Conflicts:      python2-%{name} < %{version}-%{release}
-Provides:       python3-dnf-plugin-system-upgrade = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-debug = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-repoclosure = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-repograph = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-repomanage = %{version}-%{release}
-Obsoletes:      python3-dnf-plugin-system-upgrade < %{dnf_plugins_extra}
-Obsoletes:      python3-dnf-plugins-extras-debug < %{dnf_plugins_extra}
-Obsoletes:      python3-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
-Obsoletes:      python3-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
-Obsoletes:      python3-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}
+Provides:       %{primary_python}-dnf-plugin-system-upgrade = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-debug = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-repoclosure = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-repograph = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-repomanage = %{version}-%{release}
+Obsoletes:      %{primary_python}-dnf-plugin-system-upgrade < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-debug < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}
 # No longer supporting Python 2
 Obsoletes:      python2-dnf-plugins-core < 4.0.3
 
-%description -n python3-dnf-plugins-core
+%description -n %{primary_python}-dnf-plugins-core
 Core Plugins for DNF, Python 3 interface. This package enhances DNF with
 the builddep, config-manager, %{?_with_copr_plugin:copr, }debug, debuginfo-install,
 download, groups-manager, needs-restarting, repoclosure, repograph, repomanage,
@@ -182,8 +182,8 @@ Conflicts:      zypper < 1.14.26
 Conflicts:      zypper-needs-restarting
 %endif
 Requires:       %{name} = %{version}-%{release}
+Requires:       %{primary_python}-dnf >= %{dnf_lowest_compatible}
 Requires:       dnf >= %{dnf_lowest_compatible}
-Requires:       python3-dnf >= %{dnf_lowest_compatible}
 
 %description -n %{yum_utils_subpackage_name}
 As a Yum-utils CLI compatibility layer, supplies in CLI shims for
@@ -191,96 +191,96 @@ debuginfo-install, groups-manager, repog
 repomanage, repoquery, reposync, repotrack, builddep, config-manager, debug,
 and download that use new implementations using DNF.
 
-%package -n python3-dnf-plugin-leaves
+%package -n %{primary_python}-dnf-plugin-leaves
 Summary:        Leaves Plugin for DNF
 Group:          System/Packages
-Requires:       python3-%{name} = %{version}-%{release}
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-leaves = %{version}-%{release}
 Provides:       dnf-plugin-leaves = %{version}-%{release}
 Provides:       dnf-plugins-extras-leaves = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-leaves = %{version}-%{release}
 Provides:       dnf-command(leaves)
 Conflicts:      dnf-plugins-extras-common-data < %{dnf_plugins_extra}
 Conflicts:      python2-dnf-plugin-leaves < %{version}-%{release}
-Obsoletes:      python3-dnf-plugins-extras-leaves < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-leaves < %{dnf_plugins_extra}
 # Python 2 variants are no longer provided
 Obsoletes:      python2-dnf-plugin-leaves < 4.0.3
 
-%description -n python3-dnf-plugin-leaves
+%description -n %{primary_python}-dnf-plugin-leaves
 Leaves Plugin for DNF, Python 3 version. List all installed packages
 not required by any other installed package.
 
-%package -n python3-dnf-plugin-local
+%package -n %{primary_python}-dnf-plugin-local
 Summary:        Local Plugin for DNF
 Group:          System/Packages
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
 Requires:       createrepo_c
-Requires:       python3-%{name} = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-local = %{version}-%{release}
 Provides:       dnf-plugin-local =  %{version}-%{release}
 Provides:       dnf-plugins-extras-local = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-local = %{version}-%{release}
 Conflicts:      dnf-plugins-extras-common-data < %{dnf_plugins_extra}
 Conflicts:      python2-dnf-plugin-local < %{version}-%{release}
-Obsoletes:      python3-dnf-plugins-extras-local < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-local < %{dnf_plugins_extra}
 # Python 2 variants are no longer provided
 Obsoletes:      python2-dnf-plugin-local < 4.0.3
 
-%description -n python3-dnf-plugin-local
+%description -n %{primary_python}-dnf-plugin-local
 Local Plugin for DNF, Python 3 version. Automatically copy all downloaded
 packages to a repository on the local filesystem and generating repo metadata.
 
-%package -n python3-dnf-plugin-post-transaction-actions
+%package -n %{primary_python}-dnf-plugin-post-transaction-actions
 Summary:        Post transaction actions Plugin for DNF
 Group:          System/Packages
-Requires:       python3-%{name} = %{version}-%{release}
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
 Provides:       dnf-plugin-post-transaction-actions =  %{version}-%{release}
 Conflicts:      python2-dnf-plugin-post-transaction-actions < %{version}-%{release}
 
-%description -n python3-dnf-plugin-post-transaction-actions
+%description -n %{primary_python}-dnf-plugin-post-transaction-actions
 Post transaction actions Plugin for DNF, Python 3 version. Plugin runs actions
 (shell commands) after transaction is completed. Actions are defined in action
 files.
 
-%package -n python3-dnf-plugin-pre-transaction-actions
+%package -n %{primary_python}-dnf-plugin-pre-transaction-actions
 Summary:        Pre transaction actions Plugin for DNF
-Requires:       python3-%{name} = %{version}-%{release}
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
 Provides:       dnf-plugin-pre-transaction-actions =  %{version}-%{release}
 Conflicts:      python2-dnf-plugin-pre-transaction-actions < %{version}-%{release}
 
-%description -n python3-dnf-plugin-pre-transaction-actions
+%description -n %{primary_python}-dnf-plugin-pre-transaction-actions
 Pre transaction actions Plugin for DNF, Python 3 version. Plugin runs actions
 (shell commands) before transaction is completed. Actions are defined in action
 files.
 
-%package -n python3-dnf-plugin-show-leaves
+%package -n %{primary_python}-dnf-plugin-show-leaves
 Summary:        Show-leaves Plugin for DNF
 Group:          System/Packages
-Requires:       python3-%{name} = %{version}-%{release}
-Requires:       python3-dnf-plugin-leaves = %{version}-%{release}
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
+Requires:       %{primary_python}-dnf-plugin-leaves = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-show-leaves = %{version}-%{release}
 Provides:       dnf-plugin-show-leaves =  %{version}-%{release}
 Provides:       dnf-plugins-extras-show-leaves = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-show-leaves = %{version}-%{release}
 Provides:       dnf-command(show-leaves)
 Conflicts:      dnf-plugins-extras-common-data < %{dnf_plugins_extra}
 Conflicts:      python2-dnf-plugin-show-leaves < %{version}-%{release}
-Obsoletes:      python3-dnf-plugins-extras-show-leaves < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-show-leaves < %{dnf_plugins_extra}
 # Python 2 variants are no longer provided
 Obsoletes:      python2-dnf-plugin-show-leaves < 4.0.3
 
-%description -n python3-dnf-plugin-show-leaves
+%description -n %{primary_python}-dnf-plugin-show-leaves
 Show-leaves Plugin for DNF, Python 3 version. List all installed
 packages that are no longer required by any other installed package
 after a transaction.
 
-%package -n python3-dnf-plugin-versionlock
+%package -n %{primary_python}-dnf-plugin-versionlock
 Summary:        Version Lock Plugin for DNF
 Group:          System/Packages
-Requires:       python3-%{name} = %{version}-%{release}
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
+Provides:       %{primary_python}-dnf-plugins-extras-versionlock = %{version}-%{release}
 Provides:       dnf-plugin-versionlock =  %{version}-%{release}
 Provides:       dnf-plugins-extras-versionlock = %{version}-%{release}
-Provides:       python3-dnf-plugins-extras-versionlock = %{version}-%{release}
 Provides:       dnf-command(versionlock)
 Conflicts:      dnf-plugins-extras-common-data < %{dnf_plugins_extra}
 Conflicts:      python2-dnf-plugin-versionlock < %{version}-%{release}
-Obsoletes:      python3-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
+Obsoletes:      %{primary_python}-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
 # Python 2 variants are no longer provided
 Obsoletes:      python2-dnf-plugin-versionlock < 4.0.3
 %if %{with as_yum}
@@ -289,20 +289,20 @@ Obsoletes:      yum-versionlock < 4.0.0
 Provides:       yum-versionlock = %{version}-%{release}
 %endif
 
-%description -n python3-dnf-plugin-versionlock
+%description -n %{primary_python}-dnf-plugin-versionlock
 Version lock plugin takes a set of name/versions for packages and excludes all other
 versions of those packages. This allows you to e.g. protect packages from being
 updated by newer versions.
 
-%package -n python3-dnf-plugin-modulesync
+%package -n %{primary_python}-dnf-plugin-modulesync
 Summary:        Download module metadata and packages and create repository
 Group:          System/Packages
+Requires:       %{primary_python}-%{name} = %{version}-%{release}
 Requires:       createrepo_c >= 0.17.4
-Requires:       python3-%{name} = %{version}-%{release}
 Provides:       dnf-plugin-modulesync = %{version}-%{release}
 Provides:       dnf-command(modulesync)
 
-%description -n python3-dnf-plugin-modulesync
+%description -n %{primary_python}-dnf-plugin-modulesync
 Download module metadata from all enabled repositories, module artifacts,
 and profiles of matching modules and create repository.
 
@@ -316,10 +316,10 @@ and profiles of matching modules and cre
 sed -e "s:libexec:%{_libexecdir}:g" -i libexec/CMakeLists.txt
 
 # Fix sphinx-build run...
-sed -e "s/sphinx-build-3/sphinx-build-%{python3_version}/" -i doc/CMakeLists.txt
+sed -e "s/sphinx-build-3/sphinx-build-%{expand:%{%{primary_python}_version}}/" -i doc/CMakeLists.txt
 
 %build
-%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3}
+%cmake -DPYTHON_DESIRED:FILEPATH=/usr/bin/python%{python_bin_suffix}
 %make_build
 make doc-man
 
@@ -371,7 +371,7 @@ rm -rf %{buildroot}%{_sysconfdir}/dnf/pl
 %endif
 
 %python_compileall
-%fdupes %{buildroot}%{python3_sitelib}
+%fdupes %{buildroot}%{python_sitelib}
 
 mkdir -p %{buildroot}%{_unitdir}/system-update.target.wants/
 pushd %{buildroot}%{_unitdir}/system-update.target.wants/
@@ -382,7 +382,7 @@ popd
 %check
 export PYTHONDONTWRITEBYTECODE=1
 export PYTHONPATH=./plugins
-/usr/bin/pytest-%{python3_version} -v -s tests/
+/usr/bin/pytest-%{python_bin_suffix} -v -s tests/
 %endif
 
 %files
@@ -421,50 +421,50 @@ export PYTHONPATH=./plugins
 
 %files lang -f %{name}.lang
 
-%files -n python3-dnf-plugins-core
+%files -n %{primary_python}-dnf-plugins-core
 %license COPYING
 %doc AUTHORS README.rst
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/builddep.py
-%{python3_sitelib}/dnf-plugins/__pycache__/builddep.*
-%{python3_sitelib}/dnf-plugins/changelog.py
-%{python3_sitelib}/dnf-plugins/__pycache__/changelog.*
-%{python3_sitelib}/dnf-plugins/config_manager.py
-%{python3_sitelib}/dnf-plugins/__pycache__/config_manager.*
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/builddep.py
+%{python_sitelib}/dnf-plugins/__pycache__/builddep.*
+%{python_sitelib}/dnf-plugins/changelog.py
+%{python_sitelib}/dnf-plugins/__pycache__/changelog.*
+%{python_sitelib}/dnf-plugins/config_manager.py
+%{python_sitelib}/dnf-plugins/__pycache__/config_manager.*
 %if %{with copr_plugin}
-%{python3_sitelib}/dnf-plugins/copr.py
-%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
+%{python_sitelib}/dnf-plugins/copr.py
+%{python_sitelib}/dnf-plugins/__pycache__/copr.*
 %else
-%exclude %{python3_sitelib}/dnf-plugins/copr.*
-%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
+%exclude %{%{primary_python}_sitelib}/dnf-plugins/copr.*
+%{python_sitelib}/dnf-plugins/__pycache__/copr.*
 %endif
-%{python3_sitelib}/dnf-plugins/debug.py
-%{python3_sitelib}/dnf-plugins/__pycache__/debug.*
-%{python3_sitelib}/dnf-plugins/debuginfo-install.py
-%{python3_sitelib}/dnf-plugins/__pycache__/debuginfo-install.*
-%{python3_sitelib}/dnf-plugins/download.py
-%{python3_sitelib}/dnf-plugins/__pycache__/download.*
-%{python3_sitelib}/dnf-plugins/expired-pgp-keys.py
-%{python3_sitelib}/dnf-plugins/__pycache__/expired-pgp-keys.*
-%{python3_sitelib}/dnf-plugins/generate_completion_cache.py
-%{python3_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
-%{python3_sitelib}/dnf-plugins/groups_manager.py
-%{python3_sitelib}/dnf-plugins/__pycache__/groups_manager.*
-%{python3_sitelib}/dnf-plugins/needs_restarting.py
-%{python3_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
-%{python3_sitelib}/dnf-plugins/repoclosure.py
-%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
-%{python3_sitelib}/dnf-plugins/repograph.py
-%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
-%{python3_sitelib}/dnf-plugins/repomanage.py
-%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
-%{python3_sitelib}/dnf-plugins/reposync.py
-%{python3_sitelib}/dnf-plugins/__pycache__/reposync.*
-%{python3_sitelib}/dnf-plugins/system_upgrade.py
-%{python3_sitelib}/dnf-plugins/__pycache__/system_upgrade.*
-%{python3_sitelib}/dnf-plugins/repodiff.py
-%{python3_sitelib}/dnf-plugins/__pycache__/repodiff.*
-%{python3_sitelib}/dnfpluginscore/
+%{python_sitelib}/dnf-plugins/debug.py
+%{python_sitelib}/dnf-plugins/__pycache__/debug.*
+%{python_sitelib}/dnf-plugins/debuginfo-install.py
+%{python_sitelib}/dnf-plugins/__pycache__/debuginfo-install.*
+%{python_sitelib}/dnf-plugins/download.py
+%{python_sitelib}/dnf-plugins/__pycache__/download.*
+%{python_sitelib}/dnf-plugins/expired-pgp-keys.py
+%{python_sitelib}/dnf-plugins/__pycache__/expired-pgp-keys.*
+%{python_sitelib}/dnf-plugins/generate_completion_cache.py
+%{python_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
+%{python_sitelib}/dnf-plugins/groups_manager.py
+%{python_sitelib}/dnf-plugins/__pycache__/groups_manager.*
+%{python_sitelib}/dnf-plugins/needs_restarting.py
+%{python_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
+%{python_sitelib}/dnf-plugins/repoclosure.py
+%{python_sitelib}/dnf-plugins/__pycache__/repoclosure.*
+%{python_sitelib}/dnf-plugins/repograph.py
+%{python_sitelib}/dnf-plugins/__pycache__/repograph.*
+%{python_sitelib}/dnf-plugins/repomanage.py
+%{python_sitelib}/dnf-plugins/__pycache__/repomanage.*
+%{python_sitelib}/dnf-plugins/reposync.py
+%{python_sitelib}/dnf-plugins/__pycache__/reposync.*
+%{python_sitelib}/dnf-plugins/system_upgrade.py
+%{python_sitelib}/dnf-plugins/__pycache__/system_upgrade.*
+%{python_sitelib}/dnf-plugins/repodiff.py
+%{python_sitelib}/dnf-plugins/__pycache__/repodiff.*
+%{python_sitelib}/dnfpluginscore/
 %{_unitdir}/dnf-system-upgrade.service
 %{_unitdir}/dnf-system-upgrade-cleanup.service
 %dir %{_unitdir}/system-update.target.wants/
@@ -510,53 +510,53 @@ export PYTHONPATH=./plugins
 %{_mandir}/man8/yum-copr.8*
 %{_mandir}/man8/yum-versionlock.8*
 
-%files -n python3-dnf-plugin-leaves
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/leaves.*
-%{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
+%files -n %{primary_python}-dnf-plugin-leaves
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/leaves.*
+%{python_sitelib}/dnf-plugins/__pycache__/leaves.*
 %{_mandir}/man8/dnf*-leaves.*
 %exclude %{_mandir}/man8/dnf*-show-leaves.*
 
-%files -n python3-dnf-plugin-local
+%files -n %{primary_python}-dnf-plugin-local
 %config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/local.*
-%{python3_sitelib}/dnf-plugins/__pycache__/local.*
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/local.*
+%{python_sitelib}/dnf-plugins/__pycache__/local.*
 %{_mandir}/man8/dnf*-local.*
 
-%files -n python3-dnf-plugin-post-transaction-actions
+%files -n %{primary_python}-dnf-plugin-post-transaction-actions
 %config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf
 %dir %{_sysconfdir}/dnf/plugins/post-transaction-actions.d
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/post-transaction-actions.*
-%{python3_sitelib}/dnf-plugins/__pycache__/post-transaction-actions.*
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/post-transaction-actions.*
+%{python_sitelib}/dnf-plugins/__pycache__/post-transaction-actions.*
 %{_mandir}/man8/dnf*-post-transaction-actions.*
 
-%files -n python3-dnf-plugin-pre-transaction-actions
+%files -n %{primary_python}-dnf-plugin-pre-transaction-actions
 %config(noreplace) %{_sysconfdir}/dnf/plugins/pre-transaction-actions.conf
 %config(noreplace) %{_sysconfdir}/dnf/plugins/pre-transaction-actions.d
-%{python3_sitelib}/dnf-plugins/pre-transaction-actions.*
-%{python3_sitelib}/dnf-plugins/__pycache__/pre-transaction-actions.*
+%{python_sitelib}/dnf-plugins/pre-transaction-actions.*
+%{python_sitelib}/dnf-plugins/__pycache__/pre-transaction-actions.*
 %{_mandir}/man8/dnf*-pre-transaction-actions.*
 
-%files -n python3-dnf-plugin-show-leaves
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/show_leaves.*
-%{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
+%files -n %{primary_python}-dnf-plugin-show-leaves
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/show_leaves.*
+%{python_sitelib}/dnf-plugins/__pycache__/show_leaves.*
 %{_mandir}/man8/dnf*-show-leaves.*
 
-%files -n python3-dnf-plugin-versionlock
+%files -n %{primary_python}-dnf-plugin-versionlock
 %config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
 %config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/versionlock.*
-%{python3_sitelib}/dnf-plugins/__pycache__/versionlock.*
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/versionlock.*
+%{python_sitelib}/dnf-plugins/__pycache__/versionlock.*
 %{_mandir}/man8/dnf*-versionlock.*
 
-%files -n python3-dnf-plugin-modulesync
-%dir %{python3_sitelib}/dnf-plugins/__pycache__
-%{python3_sitelib}/dnf-plugins/modulesync.*
-%{python3_sitelib}/dnf-plugins/__pycache__/modulesync.*
+%files -n %{primary_python}-dnf-plugin-modulesync
+%dir %{python_sitelib}/dnf-plugins/__pycache__
+%{python_sitelib}/dnf-plugins/modulesync.*
+%{python_sitelib}/dnf-plugins/__pycache__/modulesync.*
 %{_mandir}/man8/dnf*-modulesync.*
 
 %changelog
openSUSE Build Service is sponsored by