Alexei Sorokin 2015-05-18 08:03:46 +00:00 committed by Git OBS Bridge
parent c406bd1f43
commit beec8dc59c

View File

@ -58,15 +58,21 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%post %post
%service_add_post %{name}@.service %service_add_post %{name}@.service
%if 0%{?suse_version} > 1320
%systemd_user_post %{name}.service %systemd_user_post %{name}.service
%endif
%preun %preun
%service_del_preun %{name}@.service %service_del_preun %{name}@.service
%if 0%{?suse_version} > 1320
%systemd_user_preun %{name}.service %systemd_user_preun %{name}.service
%endif
%postun %postun
%service_del_postun %{name}@.service %service_del_postun %{name}@.service
%if 0%{?suse_version} > 1320
%systemd_user_postun %{name}.service %systemd_user_postun %{name}.service
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -74,6 +80,8 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{_bindir}/%{name} %{_bindir}/%{name}
%{_sbindir}/rc%{name} %{_sbindir}/rc%{name}
%{_unitdir}/%{name}@.service %{_unitdir}/%{name}@.service
%if 0%{?suse_version} > 1320
%{_userunitdir}/%{name}.service %{_userunitdir}/%{name}.service
%endif
%changelog %changelog