You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

Name: battery-status-led
Version: 0.1
Release: 1%{?dist}
URL: https://github.com/dmatetelki/battery-status-led
Packager: Denes Matetelki <denes.matetelki@gmail.com>
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 <denes.matetelki@gmail.com> - 0.1-1
- Initial release