From 359b534a13a0d8f92baebc9d23a6e7013b597bb3 Mon Sep 17 00:00:00 2001 From: Maciej Sitarz Date: Thu, 19 Jul 2018 15:40:28 +0200 Subject: [PATCH] Set systemd dependency to get it's macros --- contrib/packaging/autorandr.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/packaging/autorandr.spec b/contrib/packaging/autorandr.spec index b0ab38e..f349aba 100644 --- a/contrib/packaging/autorandr.spec +++ b/contrib/packaging/autorandr.spec @@ -18,10 +18,12 @@ URL: https://github.com/maciex/autorandr Source0: https://github.com/maciex/%{name}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch -Requires: systemd +Requires: python2 %if 0%{?use_pm_utils} Requires: pm-utils %endif +%{?systemd_ordering} +BuildRequires: systemd %description @@ -44,7 +46,7 @@ install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop %{buildroot}%{_sys %files %defattr(-,root,root,-) -%attr(0644,root,root) /%{_unitdir}/autorandr.service +%attr(0644,root,root) %{_unitdir}/autorandr.service %license gpl-3.0.txt %doc README.md -- 2.39.2