Name: battery-status-led Version: 0.1 Release: 1%{?dist} URL: https://github.com/dmatetelki/battery-status-led Packager: Denes Matetelki Summary: Battery status indication on an LED Group: Utilities License: GPLv3 BuildArch: noarch Source0: battery-status-led.service Source1: battery-status-led Source2: README.md Source3: battery-status-led.1 %description Battery (low/critical) status indication by making a (the caps-lock) LED blink # %prep %install mkdir -p %{buildroot}%{_unitdir} install -p -m 0644 %{SOURCE0} %{buildroot}%{_unitdir} mkdir -p %{buildroot}/%{_bindir} install -p -m 755 %{SOURCE1} %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_docdir}/battery-status-led install -p -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/battery-status-led/ mkdir -p %{buildroot}/%{_mandir}/man1 install -p -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_unitdir}/battery-status-led.service %{_bindir}/battery-status-led %{_docdir}/battery-status-led/README.md %{_mandir}/man1/battery-status-led.1.* %changelog * Fri Aug 31 2018 Denes Matetelki - 0.1-1 - Initial release