12 Summary: Automatically select a display configuration based on connected devices
15 #URL: https://github.com/phillipberndt/autorandr
16 #Source0: https://github.com/phillipberndt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
17 URL: https://github.com/maciex/autorandr
18 Source0: https://github.com/maciex/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
26 BuildRequires: systemd
38 install -D -m 755 autorandr.py %{buildroot}%{_bindir}/autorandr
39 install -D -m 644 contrib/bash_completion/autorandr %{buildroot}%{_datarootdir}/autorandr/completions/autorandr
40 install -d -m 755 %{buildroot}%{_datarootdir}/bash-completion/completions
41 ln -s ../../autorandr/completions/autorandr %{buildroot}%{_datarootdir}/bash-completion/completions/autorandr
42 install -D -m 755 contrib/pm-utils/40autorandr %{buildroot}%{_sysconfdir}/pm/sleep.d/40autorandr
43 install -D -m 644 contrib/systemd/autorandr.service %{buildroot}%{_unitdir}/autorandr.service
44 #install -D -m 644 contrib/udev/40-monitor-hotplug.rules %{buildroot}%{_sysconfdir}/udev/rules.d/40-monitor-hotplug.rules
45 install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop %{buildroot}%{_sysconfdir}/etc/xdg/autostart/autorandr.desktop
48 %defattr(-,root,root,-)
49 %attr(0644,root,root) %{_unitdir}/autorandr.service
54 %config(noreplace) %{_sysconfdir}/*
55 %{_datarootdir}/autorandr/*
56 %{_datarootdir}/bash-completion/completions/autorandr
59 #udevadm control --reload-rules
63 * Thu Jul 19 2018 Maciej Sitarz <macieksitarz@wp.pl> - 1.5-1
64 - Updated to stable 1.5
65 - Changed dest path for systemd service file
66 * Sun Oct 01 2017 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 1.1-2
67 - Added conditionals for pm-utils, compability with Fedora26+
68 - Removed bash-completion from requisites
69 - Removed udev from requisites
70 * Sun Sep 03 2017 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 1.1-1
71 - Update to stable 1.1
72 * Fri Feb 17 2017 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 20170217git-1
74 * Wed Jul 6 2016 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 20160706git-1
75 - Set default value of $XDG_CONFIG_DIRS to fulfill the standard
76 * Fri Jul 1 2016 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 20160701git-1.1
77 - fixed running udevadm in post
78 * Fri Jul 1 2016 Jerzy Drozdz <rpmbuilder@jdsieci.pl> - 20160701git-1