commit b9fe4d27d9bd7c04433bb1acca6f87490e98e2fe Author: Pavel Negrobov Date: Tue Apr 4 11:43:07 2023 +0300 INF-33: Add test-package diff --git a/src/hello.sh b/src/hello.sh new file mode 100644 index 0000000..9f3f770 --- /dev/null +++ b/src/hello.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Hello, world!" diff --git a/test-package.spec b/test-package.spec new file mode 100644 index 0000000..ff123ec --- /dev/null +++ b/test-package.spec @@ -0,0 +1,52 @@ +Name: test-package +Version: 1.0.0 +Release: 1%{dist}.inferit +Summary: Test package +License: Inferit License +Group: System Environment/Base +Source: %{name}-%{version}.tar.bz2 + +AutoReq: 0 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +%description +This package provides test package + +%check +exit 0 + +%prep +%setup -q + +%build +exit 0 + +%install +%{__rm} -rf $RPM_BUILD_ROOT +install -D -m 755 src/hello.sh $RPM_BUILD_ROOT%{_sbindir}/hello.sh + + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" + +%post +exit 0 + + +%posttrans +exit 0 + + +%preun +exit 0 + + +%files +%{_sbindir}/hello.sh + + +%changelog + +* Tue Apr 04 2023 Pavel Negrobob 1.0.0-1 +- First release