Skip to content

Commit

Permalink
python3-dnf: Provide /usr/bin/dnf4 symlink to /usr/bin/dnf-3
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode authored and kontura committed Jul 18, 2023
1 parent cb654bb commit 9e8ec48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ mkdir -p %{buildroot}%{_localstatedir}/log/
mkdir -p %{buildroot}%{_var}/cache/dnf/
touch %{buildroot}%{_localstatedir}/log/%{name}.log
ln -sr %{buildroot}%{_bindir}/dnf-3 %{buildroot}%{_bindir}/dnf
ln -sr %{buildroot}%{_bindir}/dnf-3 %{buildroot}%{_bindir}/dnf4
mv %{buildroot}%{_bindir}/dnf-automatic-3 %{buildroot}%{_bindir}/dnf-automatic
rm -vf %{buildroot}%{_bindir}/dnf-automatic-*

Expand Down Expand Up @@ -358,6 +359,7 @@ popd

%files -n python3-%{name}
%{_bindir}/%{name}-3
%{_bindir}/%{name}4
%exclude %{python3_sitelib}/%{name}/automatic
%{python3_sitelib}/%{name}/
%dir %{py3pluginpath}
Expand Down

0 comments on commit 9e8ec48

Please sign in to comment.