-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
486e9d4
commit 4bf1a07
Showing
3 changed files
with
120 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
|
||
%define __cmake_in_source_build 1 | ||
|
||
%bcond dnf5_obsoletes_dnf %[0%{?fedora} > 41 || 0%{?rhel} > 11] | ||
|
||
%if 0%{?rhel} && 0%{?rhel} <= 7 | ||
%bcond_with python3 | ||
%else | ||
|
@@ -33,7 +35,7 @@ | |
%endif | ||
|
||
Name: dnf-plugins-core | ||
Version: 4.6.0 | ||
Version: 4.7.0 | ||
Release: 1%{?dist} | ||
Summary: Core Plugins for DNF | ||
License: GPL-2.0-or-later | ||
|
@@ -496,8 +498,16 @@ pushd %{buildroot}%{_unitdir}/system-update.target.wants/ | |
ln -sr ../dnf-system-upgrade.service | ||
popd | ||
|
||
ln -sf %{_mandir}/man8/dnf-system-upgrade.8.gz %{buildroot}%{_mandir}/man8/dnf-offline-upgrade.8.gz | ||
ln -sf %{_mandir}/man8/dnf-system-upgrade.8.gz %{buildroot}%{_mandir}/man8/dnf-offline-distrosync.8.gz | ||
ln -sf %{_mandir}/man8/dnf4-system-upgrade.8.gz %{buildroot}%{_mandir}/man8/dnf4-offline-upgrade.8.gz | ||
ln -sf %{_mandir}/man8/dnf4-system-upgrade.8.gz %{buildroot}%{_mandir}/man8/dnf4-offline-distrosync.8.gz | ||
%endif | ||
|
||
%if %{without dnf5_obsoletes_dnf} | ||
for file in %{buildroot}%{_mandir}/man8/dnf4[-.]*; do | ||
dir=$(dirname $file) | ||
filename=$(basename $file) | ||
ln -sr $file $dir/${filename/dnf4/dnf} | ||
done | ||
%endif | ||
|
||
%find_lang %{name} | ||
|
@@ -549,6 +559,25 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%endif | ||
|
||
%files | ||
%{_mandir}/man8/dnf4-builddep.* | ||
%{_mandir}/man8/dnf4-changelog.* | ||
%{_mandir}/man8/dnf4-config-manager.* | ||
%{_mandir}/man8/dnf4-copr.* | ||
%{_mandir}/man8/dnf4-debug.* | ||
%{_mandir}/man8/dnf4-debuginfo-install.* | ||
%{_mandir}/man8/dnf4-download.* | ||
%{_mandir}/man8/dnf4-generate_completion_cache.* | ||
%{_mandir}/man8/dnf4-groups-manager.* | ||
%{_mandir}/man8/dnf4-needs-restarting.* | ||
%{_mandir}/man8/dnf4-repoclosure.* | ||
%{_mandir}/man8/dnf4-repodiff.* | ||
%{_mandir}/man8/dnf4-repograph.* | ||
%{_mandir}/man8/dnf4-repomanage.* | ||
%{_mandir}/man8/dnf4-reposync.* | ||
%{_mandir}/man8/dnf4-system-upgrade.* | ||
%{_mandir}/man8/dnf4-offline-upgrade.* | ||
%{_mandir}/man8/dnf4-offline-distrosync.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-builddep.* | ||
%{_mandir}/man8/dnf-changelog.* | ||
%{_mandir}/man8/dnf-config-manager.* | ||
|
@@ -567,6 +596,7 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%{_mandir}/man8/dnf-system-upgrade.* | ||
%{_mandir}/man8/dnf-offline-upgrade.* | ||
%{_mandir}/man8/dnf-offline-distrosync.* | ||
%endif | ||
%if %{with yumcompatibility} | ||
%{_mandir}/man1/yum-changelog.* | ||
%{_mandir}/man8/yum-copr.* | ||
|
@@ -712,18 +742,24 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%if %{with python2} | ||
%files -n python2-dnf-plugin-leaves | ||
%{python2_sitelib}/dnf-plugins/leaves.* | ||
%{_mandir}/man8/dnf4-leaves.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-leaves.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python3} | ||
%files -n python3-dnf-plugin-leaves | ||
%{python3_sitelib}/dnf-plugins/leaves.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/leaves.* | ||
%{_mandir}/man8/dnf4-leaves.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-leaves.* | ||
%endif | ||
%endif | ||
|
||
%else | ||
%exclude %{_mandir}/man8/dnf-leaves.* | ||
%exclude %{_mandir}/man8/dnf4-leaves.* | ||
%if %{with python2} | ||
%exclude %{python2_sitelib}/dnf-plugins/leaves.* | ||
%endif | ||
|
@@ -738,16 +774,22 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%files -n python2-dnf-plugin-local | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf | ||
%{python2_sitelib}/dnf-plugins/local.* | ||
%{_mandir}/man8/dnf4-local.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-local.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python3} && 0%{?rhel} == 0 | ||
%files -n python3-dnf-plugin-local | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf | ||
%{python3_sitelib}/dnf-plugins/local.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/local.* | ||
%{_mandir}/man8/dnf4-local.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-local.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python2} | ||
%files -n python2-dnf-plugin-migrate | ||
|
@@ -762,52 +804,70 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.d | ||
%{python2_sitelib}/dnf-plugins/post-transaction-actions.* | ||
%{_mandir}/man8/dnf4-post-transaction-actions.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-post-transaction-actions.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python3} | ||
%files -n python3-dnf-plugin-post-transaction-actions | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.d | ||
%{python3_sitelib}/dnf-plugins/post-transaction-actions.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/post-transaction-actions.* | ||
%{_mandir}/man8/dnf4-post-transaction-actions.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-post-transaction-actions.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python2} | ||
%files -n python2-dnf-plugin-pre-transaction-actions | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/pre-transaction-actions.conf | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/pre-transaction-actions.d | ||
%{python2_sitelib}/dnf-plugins/pre-transaction-actions.* | ||
%{_mandir}/man8/dnf4-pre-transaction-actions.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-pre-transaction-actions.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python3} | ||
%files -n python3-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.* | ||
%{_mandir}/man8/dnf4-pre-transaction-actions.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-pre-transaction-actions.* | ||
%endif | ||
%endif | ||
|
||
%if 0%{?rhel} == 0 | ||
|
||
%if %{with python2} | ||
%files -n python2-dnf-plugin-show-leaves | ||
%{python2_sitelib}/dnf-plugins/show_leaves.* | ||
%{_mandir}/man8/dnf4-show-leaves.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-show-leaves.* | ||
%endif | ||
%endif | ||
|
||
%if %{with python3} | ||
%files -n python3-dnf-plugin-show-leaves | ||
%{python3_sitelib}/dnf-plugins/show_leaves.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.* | ||
%{_mandir}/man8/dnf4-show-leaves.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-show-leaves.* | ||
%endif | ||
%endif | ||
|
||
%else | ||
%exclude %{_mandir}/man8/dnf-show-leaves.* | ||
%exclude %{_mandir}/man8/dnf4-show-leaves.* | ||
%if %{with python2} | ||
%exclude %{python2_sitelib}/dnf-plugins/show_leaves.* | ||
%endif | ||
|
@@ -823,7 +883,10 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf | ||
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list | ||
%{python2_sitelib}/dnf-plugins/versionlock.* | ||
%{_mandir}/man8/dnf4-versionlock.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-versionlock.* | ||
%endif | ||
%if %{with yumcompatibility} | ||
%{_mandir}/man8/yum-versionlock.* | ||
%{_mandir}/man5/yum-versionlock.* | ||
|
@@ -839,7 +902,10 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list | ||
%{python3_sitelib}/dnf-plugins/versionlock.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/versionlock.* | ||
%{_mandir}/man8/dnf4-versionlock.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-versionlock.* | ||
%endif | ||
%if %{with yumcompatibility} | ||
%{_mandir}/man8/yum-versionlock.* | ||
%{_mandir}/man5/yum-versionlock.* | ||
|
@@ -853,8 +919,11 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ | |
%files -n python3-dnf-plugin-modulesync | ||
%{python3_sitelib}/dnf-plugins/modulesync.* | ||
%{python3_sitelib}/dnf-plugins/__pycache__/modulesync.* | ||
%{_mandir}/man8/dnf4-modulesync.* | ||
%if %{without dnf5_obsoletes_dnf} | ||
%{_mandir}/man8/dnf-modulesync.* | ||
%endif | ||
%endif | ||
|
||
%changelog | ||
* Tue Mar 26 2024 Evan Goode <[email protected]> - 4.6.0-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters