Skip to content

Instantly share code, notes, and snippets.

@jtyr

jtyr/test.spec Secret

Created Dec 30, 2016
Embed
What would you like to do?
Name: test
Summary: Testing
Epoch: 1
Version: 2.3
Release: 4%{?dist}
URL: http://test.com
Group: Development/System
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Conflicts: notest
Obsoletes: testing
Distribution: Test Distro
Packager: Test Packager
Vendor: Test Vendor
%description
Testing.
%install
[ "%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}"
%{__mkdir_p} %{buildroot}%{_tmppath}
echo %{name} > %{buildroot}%{_tmppath}/%{name}.txt
%pretrans
echo "Pre-transaction script"
%pre
echo "Pre-installation script"
%post
echo "Post-installation script"
%preun
echo "Pre-uninstallation script"
%postun
echo "Post-uninstallation script"
%posttrans
echo "Post-transaction script"
%verifyscript
echo "Verify script"
%clean
[ "%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}"
%files
%defattr(-,root,root,-)
%{_tmppath}/%{name}.txt
%changelog
* Fri Dec 30 2016 Jiri Tyr <jiri.tyr at gmail.com> 1:2.3-4
- Initial build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment