Files
hello/hello.spec
Lukas Greve 3e3ae9181b
All checks were successful
Build and Publish RPM / build-and-publish (push) Successful in 5s
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.
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
2025-11-27 20:04:25 +01:00

30 lines
550 B
RPMSpec

Name: hello
Version: 0.0.1
Release: 1%{?dist}
Summary: A simple hello world script
BuildArch: noarch
License: GPLv3+
URL: https://git.phyllo.me/
Source0: %{name}-%{version}.tar.gz
Requires: bash
%description
A demo RPM build
%prep
%setup -q
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cp hello.sh $RPM_BUILD_ROOT/%{_bindir}/hello
%files
%{_bindir}/hello
%changelog
* Wed Jul 09 2025 Lukas Greve <please@refre.ch> - 0.0.1
- First version being packaged