Skip to content

Commit

Permalink
Enable leaves and show-leaves plugins for RHEL
Browse files Browse the repository at this point in the history
This effectively reverts commit
8a7a02b because RHEL enebles these
plugins since RHEL 9.3.

Resolves: https://issues.redhat.com/browse/RHEL-44922
  • Loading branch information
ppisar committed Jun 25, 2024
1 parent a2ba5b2 commit 97ae5d6
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions dnf-plugins-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ repoquery, reposync, repotrack, repodiff, builddep, config-manager,%{?with_debug
download and yum-groups-manager that use new implementations using DNF.
%endif

%if 0%{?rhel} == 0 && %{with python2}
%if %{with python2}
%package -n python2-dnf-plugin-leaves
Summary: Leaves Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
Expand All @@ -250,7 +250,7 @@ Leaves Plugin for DNF, Python 2 version. List all installed packages
not required by any other installed package.
%endif

%if 0%{?rhel} == 0 && %{with python3}
%if %{with python3}
%package -n python3-dnf-plugin-leaves
Summary: Leaves Plugin for DNF
Requires: python3-%{name} = %{version}-%{release}
Expand Down Expand Up @@ -376,7 +376,7 @@ Pre transaction actions Plugin for DNF, Python 3 version. Plugin runs actions
files.
%endif

%if 0%{?rhel} == 0 && %{with python2}
%if %{with python2}
%package -n python2-dnf-plugin-show-leaves
Summary: Leaves Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
Expand All @@ -397,7 +397,7 @@ packages that are no longer required by any other installed package
after a transaction.
%endif

%if 0%{?rhel} == 0 && %{with python3}
%if %{with python3}
%package -n python3-dnf-plugin-show-leaves
Summary: Show-leaves Plugin for DNF
Requires: python3-%{name} = %{version}-%{release}
Expand Down Expand Up @@ -755,8 +755,6 @@ ln -sf %{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/man1/repotrack.1
%exclude %{_mandir}/man1/yum-utils.*
%endif

%if 0%{?rhel} == 0

%if %{with python2}
%files -n python2-dnf-plugin-leaves
%{python2_sitelib}/dnf-plugins/leaves.*
Expand All @@ -770,18 +768,6 @@ ln -sf %{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/man1/repotrack.1
%{_mandir}/man8/dnf*-leaves.*
%endif

%else
%exclude %{_mandir}/man8/dnf*-leaves.*
%if %{with python2}
%exclude %{python2_sitelib}/dnf-plugins/leaves.*
%endif
%if %{with python3}
%exclude %{python3_sitelib}/dnf-plugins/leaves.*
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
%endif
%endif
# endif 0%%{?rhel} == 0

%if 0%{?rhel} == 0 && %{with python2}
%files -n python2-dnf-plugin-local
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
Expand Down Expand Up @@ -839,8 +825,6 @@ ln -sf %{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/man1/repotrack.1
%{_mandir}/man8/dnf*-pre-transaction-actions.*
%endif

%if 0%{?rhel} == 0

%if %{with python2}
%files -n python2-dnf-plugin-show-leaves
%{python2_sitelib}/dnf-plugins/show_leaves.*
Expand All @@ -854,18 +838,6 @@ ln -sf %{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/man1/repotrack.1
%{_mandir}/man8/dnf*-show-leaves.*
%endif

%else
%exclude %{_mandir}/man8/dnf*-show-leaves.*
%if %{with python2}
%exclude %{python2_sitelib}/dnf-plugins/show_leaves.*
%endif
%if %{with python3}
%exclude %{python3_sitelib}/dnf-plugins/show_leaves.*
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
%endif
%endif
# endif 0%%{?rhel} == 0

%if %{with python2}
%files -n python2-dnf-plugin-versionlock
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
Expand Down

0 comments on commit 97ae5d6

Please sign in to comment.