Files
rpms/centos/SPECS/test.spec
2017-07-06 09:46:08 +02:00

55 lines
1.0 KiB
RPMSpec

Summary: Summary
Name: test
Version: 0.0.0
#Epoch: 2
Release: 1%{?dist}
Prefix: %{_prefix}
License: GPL
Group: test
BuildRoot: %{_tmppath}/%{name}/%{release}
Requires: /bin/bash
BUILDARCH: noarch
### Full description of package:
%description
Test rpm to check $1 variable (install, update, remove, ...).
### The build prepare section:
%prep
### The source install section (make install):
%install
mkdir -p ${RPM_BUILD_ROOT}%{_tmppath}
mkdir -p ${RPM_BUILD_ROOT}%_datadir/test
### RPM installation prepare section:
%pre
echo -e "Pre: $1"
### RPM installation post installation section:
%post
echo -e "Post: $1"
### RPM installation before uninstall script execution section:
%preun
echo -e "Preun: $1"
### RPM installation post installation script execution section:
%postun
echo -e "Postun: $1"
### Cleanup:
%clean
%{__rm} -rf %{buildroot}
### File definitions:
%files
%defattr(-,root,root)
%{_tmppath}
%dir %_datadir/test
### Change log:
%changelog
* Fri Feb 3 2017 Daniel Steiner <ssteiner1@redhat.com>
- Any changes