Specs added from this server

This commit is contained in:
Daniel Steiner
2017-07-06 09:46:08 +02:00
parent 6f9d369383
commit 192156612e
10 changed files with 2627 additions and 0 deletions

54
centos/SPECS/test.spec Normal file
View File

@@ -0,0 +1,54 @@
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