From 2c5c1518147291e0619d71b25454aa554e9ef3d1 Mon Sep 17 00:00:00 2001 From: Jerzy Drozdz Date: Sun, 3 Sep 2017 01:06:29 +0200 Subject: [PATCH] Added RedHat compatible spec file --- contrib/packaging/autorandr.spec | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 contrib/packaging/autorandr.spec diff --git a/contrib/packaging/autorandr.spec b/contrib/packaging/autorandr.spec new file mode 100644 index 0000000..91f87af --- /dev/null +++ b/contrib/packaging/autorandr.spec @@ -0,0 +1,52 @@ +Name: autorandr +Version: 1.1 +Release: 1%{?dist} +Summary: Automatically select a display configuration based on connected devices + +License: GPL +URL: https://github.com/phillipberndt/autorandr +Source0: https://github.com/phillipberndt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +Requires: systemd udev bash-completion pm-utils + +%description + + +%prep +%setup -q + +%build + +%install + +install -D -m 755 autorandr.py %{buildroot}%{_bindir}/autorandr +install -D -m 644 contrib/bash_completion/autorandr %{buildroot}%{_sysconfdir}/bash_completion.d/autorandr +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/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 + +%files +%defattr(-,root,root,-) + +%license gpl-3.0.txt +%doc README.md +%{_bindir}/* +%config(noreplace) %{_sysconfdir}/* + +#%post +#udevadm control --reload-rules + + +%changelog +* Sun Sep 03 2017 Jerzy Drozdz - 1.1-1 +- Update to stable 1.1 +* Fri Feb 17 2017 Jerzy Drozdz - 20170217git-1 +- Update to master +* Wed Jul 6 2016 Jerzy Drozdz - 20160706git-1 +- Set default value of $XDG_CONFIG_DIRS to fulfill the standard +* Fri Jul 1 2016 Jerzy Drozdz - 20160701git-1.1 +- fixed running udevadm in post +* Fri Jul 1 2016 Jerzy Drozdz - 20160701git-1 +- initial build -- 2.39.2