Fixed source archive creation: Instead of directly tarring hello.sh, I now create a proper directory structure hello-0.0.1/ with the file inside, which is what %setup expects.
All checks were successful
Build and Publish RPM / build-and-publish (push) Successful in 5s

Fixed the %install section: Changed cp hello.sh $RPM_BUILD_ROOT/%{_bindir}/hello to remove the .sh extension as it's a more conventional name for executable files.

Fixed the %files section: Updated to reference %{_bindir}/hello instead of %{_bindir}/hello.sh
This commit is contained in:
Lukas Greve
2025-11-27 20:04:25 +01:00
parent 916f80f8cb
commit 3e3ae9181b
2 changed files with 14 additions and 4 deletions

View File

@@ -19,10 +19,10 @@ A demo RPM build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cp hello.sh $RPM_BUILD_ROOT/%{_bindir}
cp hello.sh $RPM_BUILD_ROOT/%{_bindir}/hello
%files
%{_bindir}/hello.sh
%{_bindir}/hello
%changelog
* Wed Jul 09 2025 Lukas Greve <please@refre.ch> - 0.0.1