2 # This spec file is used to build the test*.rpm package we use in one of
5 # The advantage of using our own custom package, instead of downloading a
6 # random one from the net, is that we get the chance here to define all the
7 # tags our rpm helper is supposed to support.
9 # Build this package with:
11 # $ rpmbuild -bb test.spec
13 # Then create the input for the test with:
15 # $ perl /path/to/rpm2tags.pl ~/rpmbuild/RPMS/noarch/test*.rpm > rpm.custom.input
22 URL: http
://example.com
23 Group: Development
/System
25 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
29 Distribution: Test Distro
30 Packager: Test
Packager
35 Multi
-line description field
36 with "double"
, 'single quotes'
, and $weird | \characters i\n
= i\\t
, empty line...
41 [ "
%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}"
42 %{__mkdir_p} %{buildroot}%{_tmppath}
43 echo %{name} > %{buildroot}%{_tmppath}/%{name}.txt
47 echo "Pre
-transaction script"
51 echo "Pre
-installation script"
55 echo "Post
-installation script"
59 echo "Pre
-uninstallation script"
63 echo "Post
-uninstallation script"
67 echo "Post
-transaction script"
75 [ "
%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}"
79 %defattr(-,root
,root
,-)
80 %{_tmppath}/%{name}.txt
84 * Fri Dec
30 2016 Jiri Tyr
<jiri.tyr at gmail.com
> 1:2.3-4