Accepting request 536930 from home:dimstar:Factory

- Explicitly package systemd service on suse_version >= 1330:
  depending on the dep chain, systemd is already detected (and
  causes build failures for unpackaged files).

OBS-URL: https://build.opensuse.org/request/show/536930
OBS-URL: https://build.opensuse.org/package/show/hardware/gammu?expand=0&rev=40
This commit is contained in:
2017-11-14 12:00:03 +00:00
committed by Git OBS Bridge
parent c42806e269
commit 79241ed18c
2 changed files with 27 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 26 12:05:38 UTC 2017 - dimstar@opensuse.org
- Explicitly package systemd service on suse_version >= 1330:
depending on the dep chain, systemd is already detected (and
causes build failures for unpackaged files).
-------------------------------------------------------------------
Sun Jul 30 10:40:44 UTC 2017 - meissner@suse.com

View File

@@ -119,6 +119,9 @@ BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
%if 0%{?suse_version} >= 1330
BuildRequires: pkgconfig(systemd)
%endif
BuildRequires: %{dist_bluez_libs}
%if 0%{?suse_version} > 1140
BuildRequires: python-Sphinx
@@ -332,6 +335,20 @@ rm -rf %{buildroot}%{_datadir}/locale/sw/
%postun -n libgsmsd%{so_ver} -p /sbin/ldconfig
%if 0%{?suse_version} >= 1330
%pre smsd
%service_add_pre gammu-smsd.service
%preun smsd
%service_del_preun gammu-smsd.service
%post smsd
%service_add_post gammu-smsd.service
%postun smsd
%service_del_postun gammu-smsd.service
%endif
%files -f %{name}.lang
%defattr(-,root,root,-)
%config %{_sysconfdir}/bash_completion.d/gammu
@@ -372,6 +389,9 @@ rm -rf %{buildroot}%{_datadir}/locale/sw/
%{_bindir}/gammu-smsd
%{_bindir}/gammu-smsd-inject
%{_bindir}/gammu-smsd-monitor
%if 0%{?suse_version} >= 1330
%{_unitdir}/gammu-smsd.service
%endif
%doc %{_mandir}/man1/gammu-smsd-inject.1*
%doc %{_mandir}/man1/gammu-smsd-monitor.1*
%doc %{_mandir}/man1/gammu-smsd.1*