Fix placement of systemd service file
Updated to latest version
This commit is contained in:
parent
59e50efac1
commit
c86015ab0e
|
@ -7,8 +7,8 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: autorandr
|
Name: autorandr
|
||||||
Version: 1.1
|
Version: 1.5
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Automatically select a display configuration based on connected devices
|
Summary: Automatically select a display configuration based on connected devices
|
||||||
|
|
||||||
License: GPL
|
License: GPL
|
||||||
|
@ -16,10 +16,12 @@ URL: https://github.com/phillipberndt/autorandr
|
||||||
Source0: https://github.com/phillipberndt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/phillipberndt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: systemd
|
Requires: python2
|
||||||
%if 0%{?use_pm_utils}
|
%if 0%{?use_pm_utils}
|
||||||
Requires: pm-utils
|
Requires: pm-utils
|
||||||
%endif
|
%endif
|
||||||
|
%{?systemd_ordering}
|
||||||
|
BuildRequires: systemd
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
|
@ -36,12 +38,13 @@ install -D -m 644 contrib/bash_completion/autorandr %{buildroot}%{_datarootdir}/
|
||||||
install -d -m 755 %{buildroot}%{_datarootdir}/bash-completion/completions
|
install -d -m 755 %{buildroot}%{_datarootdir}/bash-completion/completions
|
||||||
ln -s ../../autorandr/completions/autorandr %{buildroot}%{_datarootdir}/bash-completion/completions/autorandr
|
ln -s ../../autorandr/completions/autorandr %{buildroot}%{_datarootdir}/bash-completion/completions/autorandr
|
||||||
install -D -m 755 contrib/pm-utils/40autorandr %{buildroot}%{_sysconfdir}/pm/sleep.d/40autorandr
|
install -D -m 755 contrib/pm-utils/40autorandr %{buildroot}%{_sysconfdir}/pm/sleep.d/40autorandr
|
||||||
install -D -m 644 contrib/systemd/autorandr.service %{buildroot}%{_sysconfdir}/systemd/system/autorandr.service
|
install -D -m 644 contrib/systemd/autorandr.service %{buildroot}%{_unitdir}/autorandr.service
|
||||||
#install -D -m 644 contrib/udev/40-monitor-hotplug.rules %{buildroot}%{_sysconfdir}/udev/rules.d/40-monitor-hotplug.rules
|
#install -D -m 644 contrib/udev/40-monitor-hotplug.rules %{buildroot}%{_sysconfdir}/udev/rules.d/40-monitor-hotplug.rules
|
||||||
install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop %{buildroot}%{_sysconfdir}/etc/xdg/autostart/autorandr.desktop
|
install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop %{buildroot}%{_sysconfdir}/etc/xdg/autostart/autorandr.desktop
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%attr(0644,root,root) %{_unitdir}/autorandr.service
|
||||||
|
|
||||||
%license gpl-3.0.txt
|
%license gpl-3.0.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
@ -55,6 +58,9 @@ install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop %{buildroot}%{_sys
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 19 2018 Maciej Sitarz <macieksitarz@wp.pl> - 1.5-1
|
||||||
|
- Updated to stable 1.5
|
||||||
|
- Changed dest path for systemd service file
|
||||||
* Sun Oct 01 2017 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 1.1-2
|
* Sun Oct 01 2017 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 1.1-2
|
||||||
- Added conditionals for pm-utils, compability with Fedora26+
|
- Added conditionals for pm-utils, compability with Fedora26+
|
||||||
- Removed bash-completion from requisites
|
- Removed bash-completion from requisites
|
||||||
|
|
Loading…
Reference in New Issue