diff --git a/dnf.spec b/dnf.spec index b50eab5..e48f2da 100644 --- a/dnf.spec +++ b/dnf.spec @@ -3,7 +3,7 @@ Name: dnf Version: 4.10.0 -Release: 3 +Release: 4 Summary: A software package manager that manages packages on Linux distributions. License: GPLv2+ and GPLv2 and GPL URL: https://github.com/rpm-software-management/dnf @@ -126,30 +126,35 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %post %systemd_post dnf-makecache.timer + +%preun +%systemd_preun dnf-makecache.timer + +%postun +%systemd_postun_with_restart dnf-makecache.timer + +%post automatic %systemd_post dnf-automatic.timer %systemd_post dnf-automatic-notifyonly.timer %systemd_post dnf-automatic-download.timer %systemd_post dnf-automatic-install.timer -%preun +%preun automatic %systemd_preun dnf-automatic.timer -%systemd_preun dnf-makecache.timer %systemd_preun dnf-automatic-notifyonly.timer %systemd_preun dnf-automatic-download.timer %systemd_preun dnf-automatic-install.timer -%postun -%systemd_postun_with_restart dnf-makecache.timer +%postun automatic %systemd_postun_with_restart dnf-automatic.timer %systemd_postun_with_restart dnf-automatic-notifyonly.timer %systemd_postun_with_restart dnf-automatic-download.timer %systemd_postun_with_restart dnf-automatic-install.timer %files -%license COPYING PACKAGE-LICENSING -%doc AUTHORS README.rst %{_bindir}/%{name} %{_sysconfdir}/bash_completion.d/%{name} +%{_datadir}/bash-completion/* %{_unitdir}/%{name}-makecache.timer %{_unitdir}/%{name}-makecache.service %{_var}/cache/%{name}/ @@ -192,14 +197,12 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %ghost %attr(644,-,-) %{_sharedstatedir}/%{name}/groups.json %ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/yumdb %ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/history -%{_mandir}/man5/%{name}.conf.5* %{_tmpfilesdir}/%{name}.conf %{_sysconfdir}/libreport/events.d/collect_dnf.conf %files automatic %{_bindir}/%{name}-automatic %config(noreplace) %{_sysconfdir}/%{name}/automatic.conf -%{_mandir}/man8/%{name}-automatic.8* %{_unitdir}/%{name}-automatic.service %{_unitdir}/%{name}-automatic.timer %{_unitdir}/%{name}-automatic-notifyonly.service @@ -212,7 +215,6 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %files help %{_datadir}/locale/* -%{_datadir}/bash-completion/* %{_mandir}/man8/yum.8* %{_mandir}/man8/yum2dnf.8* %{_mandir}/man8/%{name}.8* @@ -225,6 +227,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %{_mandir}/man8/%{name}-automatic.8* %changelog +* Fri Apr 15 2022 yangcheng - 4.10.0-4 +- fix the problem of repeated packaging of man files and automatic service startup + * Wed Mar 30 2022 yangcheng - 4.10.0-3 - fix dnf error when history sqlite missing