From 03f9fea8fcbe181c2ec77eed1edcda84e420bf55 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 30 Jan 2018 11:03:06 +0100 Subject: [PATCH] use macro for systemd scriptlet dependencies --- gpsd.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gpsd.spec b/gpsd.spec index 2a5adb6..66de106 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -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