use macro for systemd scriptlet dependencies
This commit is contained in:
parent
6d871d76ce
commit
03f9fea8fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user