|
|
|
@ -32,7 +32,7 @@ License: GPLv3
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Source0: battery_status_led.service
|
|
|
|
|
Source1: battery_status_led.sh
|
|
|
|
|
Source1: battery_status_led
|
|
|
|
|
Source2: README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -54,18 +54,18 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.md
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_unitdir}/battery_status_led.service
|
|
|
|
|
%{_bindir}/battery_status_led.sh
|
|
|
|
|
%{_bindir}/battery_status_led
|
|
|
|
|
%{_docdir}/%{name}/README.md
|
|
|
|
|
|
|
|
|
|
# %changelog
|
|
|
|
|
EOL
|
|
|
|
|
|
|
|
|
|
cp ../battery_status_led.service build/
|
|
|
|
|
cp ../battery_status_led.sh build/
|
|
|
|
|
cp ../battery_status_led build/
|
|
|
|
|
cp ../README.md build/
|
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
rpmbuild --define "_sourcedir $PWD" --define "_rpmdir $PWD" --define "_unitdir /lib/systemd/system" -bb battery_status_led.spec
|
|
|
|
|
cd ..
|
|
|
|
|
mv build/noarch/battery_status_led-${VERSION}.noarch.rpm .
|
|
|
|
|
rm -rf build
|
|
|
|
|
rm -rf build
|
|
|
|
|