diff --git a/redshift.spec b/redshift.spec index 792b5dcba2c9096943ab48f39ecc310d021e3ca6..c5da2334a5c3792e30ea903b096803c2db02ec7f 100644 --- a/redshift.spec +++ b/redshift.spec @@ -6,7 +6,7 @@ Name: redshift Version: 1.12 -Release: 3%{dist} +Release: 4 Summary: Adjusts the color temperature of your screen according to time of day License: GPLv3+ @@ -76,12 +76,20 @@ autopoint -f && AUTOPOINT="intltoolize --automake --copy" autoreconf -f -i desktop-file-validate %{buildroot}%{_datadir}/applications/redshift.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/redshift-gtk.desktop -%post +%post -n %{name}-gtk %systemd_user_post %{name}-gtk.service -%preun +%post +%systemd_user_post %{name}.service + +%preun -n %{name}-gtk %systemd_user_preun %{name}-gtk.service +%preun +%systemd_user_preun %{name}.service + + + %files -f %{name}.lang %doc DESIGN CONTRIBUTING.md NEWS NEWS.md README README-colorramp README.md redshift.conf.sample @@ -104,5 +112,8 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/redshift-gtk.desktop %{_userunitdir}/%{name}-gtk.service %changelog +* Tue Mar 08 2022 tanyulong  - 1.12-4 +- fix Failed to start redshift-gtk.service + * Thu Jul 23 2020 Zhao Yang  - 1.12-3 - Initial release for OpenEuler