Solve the problem of service cannot restart when upgrading

This commit is contained in:
chengquan 2020-03-11 11:01:14 +08:00 committed by Gitee
parent 6a98078e2f
commit d5c7a0413a

View File

@ -2,7 +2,7 @@
Name: timedatex
Version: 0.5
Release: 8
Release: 9
Summary: D-Bus service for system clock and RTC settings
License: GPLv2+
URL: https://github.com/mlichvar/timedatex
@ -37,7 +37,7 @@ help document for timedatex.
%makeinstall unitdir=$RPM_BUILD_ROOT%{_unitdir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system
ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/timedatex.service
ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/systemd-timedated.service
%check
make test
@ -56,7 +56,7 @@ make test
%files
%defattr(-,root,root)
%doc COPYING NEWS README
%{_sysconfdir}/systemd/system/timedatex.service
%{_sysconfdir}/systemd/system/systemd-timedated.service
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service
@ -65,6 +65,12 @@ make test
%{_mandir}/man8/%{name}.8*
%changelog
* Wed Mar 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.9
- Type: enhancement
- ID: NA
- SUG: NA
- DESC:Solve the problem of service cannot restart when upgrading
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.8
- Type: enhancement
- ID: NA