-
-
Save jtyr/b9d6abd0f2ad2c17daa75b02c8278d13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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