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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user