]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Set systemd dependency to get it's macros
authorMaciej Sitarz <Maciej.Sitarz@pl.ibm.com>
Thu, 19 Jul 2018 13:40:28 +0000 (15:40 +0200)
committerMaciej Sitarz <Maciej.Sitarz@pl.ibm.com>
Thu, 19 Jul 2018 13:40:28 +0000 (15:40 +0200)
contrib/packaging/autorandr.spec

index b0ab38e6e0635f9bdf2d8403b858f2aa39f45b82..f349aba889276be235a64367ae628ef774e291a9 100644 (file)
@@ -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