Accepting request 396577 from home:jengelh:branches:network

something like this (untested)

- Drop unnecessary systemd install-time dependencies. [bnc#980389]
  Only pass template units to preun (disable); no other actions
  are defined for them.

OBS-URL: https://build.opensuse.org/request/show/396577
OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=62
This commit is contained in:
Alexei Sorokin
2016-05-18 09:23:45 +00:00
committed by Git OBS Bridge
parent f9f4c65606
commit 4e2014fc9e
2 changed files with 10 additions and 4 deletions

View File

@@ -28,7 +28,6 @@ Source1: %{name}.firewall
BuildRequires: go >= 1.3
BuildRequires: systemd
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
%description
Syncthing replaces proprietary sync and cloud services with
@@ -73,10 +72,10 @@ install -Dm 0644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
%pre
%service_add_pre %{name}@.service %{name}-resume.service
%service_add_pre %{name}-resume.service
%post
%service_add_post %{name}@.service %{name}-resume.service
%service_add_post %{name}-resume.service
%if 0%{?suse_version} > 1320
%systemd_user_post %{name}.service
%endif
@@ -88,7 +87,7 @@ install -Dm 0644 %{SOURCE1} \
%endif
%postun
%service_del_postun %{name}@.service %{name}-resume.service
%service_del_postun %{name}-resume.service
%if 0%{?suse_version} > 1320
%systemd_user_postun %{name}.service
%endif