2022-09-15 14:05:11 +02:00
|
|
|
Name: hello_world
|
2022-09-22 16:14:01 +02:00
|
|
|
Version: 7
|
2022-09-15 14:05:11 +02:00
|
|
|
Release: 1
|
|
|
|
Summary: Most simple RPM package
|
|
|
|
License: MIT
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is my first RPM package, which does nothing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# we have no source, so nothing here
|
|
|
|
|
|
|
|
%build
|
|
|
|
cat > hello_world.sh <<EOF
|
|
|
|
#!/usr/bin/bash
|
|
|
|
echo Hello world
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/usr/bin/
|
|
|
|
install -m 755 hello_world.sh %{buildroot}/usr/bin/hello_world.sh
|
|
|
|
|
|
|
|
%files
|
|
|
|
/usr/bin/hello_world.sh
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
# let skip this for now
|
|
|
|
Footer
|
|
|
|
|