commit
b9fe4d27d9
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Hello, world!"
|
@ -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 <Pavel.Negrobov@softline.com> 1.0.0-1
|
||||
- First release
|
Loading…
Reference in new issue