fix spec problem
This commit is contained in:
parent
35a6f5dbf1
commit
dea57b0c61
25
dnf.spec
25
dnf.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: dnf
|
Name: dnf
|
||||||
Version: 4.10.0
|
Version: 4.10.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A software package manager that manages packages on Linux distributions.
|
Summary: A software package manager that manages packages on Linux distributions.
|
||||||
License: GPLv2+ and GPLv2 and GPL
|
License: GPLv2+ and GPLv2 and GPL
|
||||||
URL: https://github.com/rpm-software-management/dnf
|
URL: https://github.com/rpm-software-management/dnf
|
||||||
@ -126,30 +126,35 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post dnf-makecache.timer
|
%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.timer
|
||||||
%systemd_post dnf-automatic-notifyonly.timer
|
%systemd_post dnf-automatic-notifyonly.timer
|
||||||
%systemd_post dnf-automatic-download.timer
|
%systemd_post dnf-automatic-download.timer
|
||||||
%systemd_post dnf-automatic-install.timer
|
%systemd_post dnf-automatic-install.timer
|
||||||
|
|
||||||
%preun
|
%preun automatic
|
||||||
%systemd_preun dnf-automatic.timer
|
%systemd_preun dnf-automatic.timer
|
||||||
%systemd_preun dnf-makecache.timer
|
|
||||||
%systemd_preun dnf-automatic-notifyonly.timer
|
%systemd_preun dnf-automatic-notifyonly.timer
|
||||||
%systemd_preun dnf-automatic-download.timer
|
%systemd_preun dnf-automatic-download.timer
|
||||||
%systemd_preun dnf-automatic-install.timer
|
%systemd_preun dnf-automatic-install.timer
|
||||||
|
|
||||||
%postun
|
%postun automatic
|
||||||
%systemd_postun_with_restart dnf-makecache.timer
|
|
||||||
%systemd_postun_with_restart dnf-automatic.timer
|
%systemd_postun_with_restart dnf-automatic.timer
|
||||||
%systemd_postun_with_restart dnf-automatic-notifyonly.timer
|
%systemd_postun_with_restart dnf-automatic-notifyonly.timer
|
||||||
%systemd_postun_with_restart dnf-automatic-download.timer
|
%systemd_postun_with_restart dnf-automatic-download.timer
|
||||||
%systemd_postun_with_restart dnf-automatic-install.timer
|
%systemd_postun_with_restart dnf-automatic-install.timer
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING PACKAGE-LICENSING
|
|
||||||
%doc AUTHORS README.rst
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_sysconfdir}/bash_completion.d/%{name}
|
%{_sysconfdir}/bash_completion.d/%{name}
|
||||||
|
%{_datadir}/bash-completion/*
|
||||||
%{_unitdir}/%{name}-makecache.timer
|
%{_unitdir}/%{name}-makecache.timer
|
||||||
%{_unitdir}/%{name}-makecache.service
|
%{_unitdir}/%{name}-makecache.service
|
||||||
%{_var}/cache/%{name}/
|
%{_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(644,-,-) %{_sharedstatedir}/%{name}/groups.json
|
||||||
%ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/yumdb
|
%ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/yumdb
|
||||||
%ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/history
|
%ghost %attr(755,-,-) %dir %{_sharedstatedir}/%{name}/history
|
||||||
%{_mandir}/man5/%{name}.conf.5*
|
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_sysconfdir}/libreport/events.d/collect_dnf.conf
|
%{_sysconfdir}/libreport/events.d/collect_dnf.conf
|
||||||
|
|
||||||
%files automatic
|
%files automatic
|
||||||
%{_bindir}/%{name}-automatic
|
%{_bindir}/%{name}-automatic
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/automatic.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/automatic.conf
|
||||||
%{_mandir}/man8/%{name}-automatic.8*
|
|
||||||
%{_unitdir}/%{name}-automatic.service
|
%{_unitdir}/%{name}-automatic.service
|
||||||
%{_unitdir}/%{name}-automatic.timer
|
%{_unitdir}/%{name}-automatic.timer
|
||||||
%{_unitdir}/%{name}-automatic-notifyonly.service
|
%{_unitdir}/%{name}-automatic-notifyonly.service
|
||||||
@ -212,7 +215,6 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v
|
|||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_datadir}/locale/*
|
%{_datadir}/locale/*
|
||||||
%{_datadir}/bash-completion/*
|
|
||||||
%{_mandir}/man8/yum.8*
|
%{_mandir}/man8/yum.8*
|
||||||
%{_mandir}/man8/yum2dnf.8*
|
%{_mandir}/man8/yum2dnf.8*
|
||||||
%{_mandir}/man8/%{name}.8*
|
%{_mandir}/man8/%{name}.8*
|
||||||
@ -225,6 +227,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v
|
|||||||
%{_mandir}/man8/%{name}-automatic.8*
|
%{_mandir}/man8/%{name}-automatic.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 15 2022 yangcheng <yangcheng87@h-partners.com> - 4.10.0-4
|
||||||
|
- fix the problem of repeated packaging of man files and automatic service startup
|
||||||
|
|
||||||
* Wed Mar 30 2022 yangcheng <yangcheng87@h-partners.com> - 4.10.0-3
|
* Wed Mar 30 2022 yangcheng <yangcheng87@h-partners.com> - 4.10.0-3
|
||||||
- fix dnf error when history sqlite missing
|
- fix dnf error when history sqlite missing
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user