use macro for systemd scriptlet dependencies

This commit is contained in:
Miroslav Lichvar 2018-01-30 11:03:06 +01:00
parent 6d871d76ce
commit 03f9fea8fc

View File

@ -16,6 +16,7 @@ Source11: gpsd.sysconfig
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python2-devel python3-devel
BuildRequires: scons desktop-file-utils bluez-libs-devel pps-tools-devel /usr/bin/c++
BuildRequires: systemd
%if %{with_qt}
BuildRequires: qt-devel
%endif
@ -25,9 +26,7 @@ BuildRequires: libusb1-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: udev
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%{?systemd_requires}
%description
gpsd is a service daemon that mediates access to a GPS sensor