Specs added from this server
This commit is contained in:
54
centos/SPECS/test.spec
Normal file
54
centos/SPECS/test.spec
Normal 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
|
||||
Reference in New Issue
Block a user