## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: autorandr Version: 1.12.1 Release: %autorelease Summary: Automatically select a display configuration based on connected devices BuildArch: noarch BuildRequires: python3-devel License: GPLv3 URL: https://github.com/phillipberndt/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: make BuildRequires: systemd BuildRequires: udev BuildRequires: desktop-file-utils %description %{summary}. %prep %setup -q %py3_shebang_fix ./autorandr.py %post udevadm control --reload-rules %systemd_post autorandr.service %preun %systemd_preun autorandr.service %postun %systemd_postun autorandr.service %package bash-completion Summary: Bash completion for autorandr Requires: %{name} Requires: bash-completion %description bash-completion This package provides bash-completion files for autorandr %package zsh-completion Summary: Zsh completion for autorandr Requires: zsh Requires: %{name} %description zsh-completion This package provides zsh-completion files for autorandr %install %make_install install -vDm 644 README.md -t "%{buildroot}/usr/share/doc/%{name}/" install -vDm 644 contrib/bash_completion/autorandr -t %{buildroot}%{_datadir}/bash-completion/completions/ install -vDm 644 contrib/zsh_completion/_autorandr -t %{buildroot}%{_datadir}/zsh/site-functions/ install -vDm 644 autorandr.1 -t %{buildroot}%{_mandir}/man1/ %check desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/autorandr.desktop %files %license gpl-3.0.txt %doc README.md %{_mandir}/man1/* %{_bindir}/autorandr %{_unitdir}/autorandr.service %{_sysconfdir}/xdg/autostart/autorandr.desktop %{_udevrulesdir}/40-monitor-hotplug.rules %files bash-completion %{_datadir}/bash-completion/completions/autorandr %files zsh-completion %{_datadir}/zsh/site-functions/_autorandr %changelog * Wed Jan 18 2023 Fedora Release Engineering 1.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering 1.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Feb 02 2022 Peter Kotvan 1.12.1-1 - Update to 1.12.1. * Wed Jan 19 2022 Fedora Release Engineering 1.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 16 2021 Peter Kotvan 1.12-1 - Update to 1.12. * Wed Nov 03 2021 Peter Kotvan 1.11-1 - Initial import