Dropping the bash script's file extension

master
denes 6 years ago
parent 60850fa47e
commit 8b7348d9f8

@ -32,7 +32,7 @@ DOCS="README.md"
src_install() {
dodoc ${DOCS}
dobin battery_status_led.sh
dobin battery_status_led
systemd_dounit battery_status_led.service
}

@ -38,7 +38,7 @@ mkdir -p build/batterystatusled_${VERSION}/lib/systemd/system
cp ../battery_status_led.service build/batterystatusled_${VERSION}/lib/systemd/system
mkdir -p build/batterystatusled_${VERSION}/usr/bin
cp ../battery_status_led.sh build/batterystatusled_${VERSION}/usr/bin
cp ../battery_status_led build/batterystatusled_${VERSION}/usr/bin
mkdir -p build/batterystatusled_${VERSION}/usr/share/doc/
cp ../README.md build/batterystatusled_${VERSION}/usr/share/doc/

@ -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

Loading…
Cancel
Save