1511
|
1 |
Spec file extensions quick reference.
|
|
2 |
------------------------------------
|
|
3 |
|
|
4 |
Solaris specific tags:
|
|
5 |
|
|
6 |
SUNW_BaseDir prefix
|
|
7 |
Define prefix as the value of the BASEDIR tag in the SVr4 package.
|
|
8 |
prefix will be stripped off the beginning of all path names in the
|
|
9 |
%files section, therefore it has to be a real prefix, otherwise it
|
|
10 |
will abort with an error.
|
|
11 |
|
|
12 |
SUNW_ProdName name
|
|
13 |
SUNW_PRODNAME tag in the Solaris pkg.
|
|
14 |
SUNW_ProdVers version
|
|
15 |
SUNW_PRODVERS tag in the Solaris pkg.
|
|
16 |
SUNW_Category cat
|
|
17 |
CATEGORY tag in the Solaris pkg.
|
|
18 |
SUNW_HotLine text
|
|
19 |
HOTLINE tag in the pkginfo file of the SVr4 package.
|
|
20 |
SUNW_MaxInst num
|
|
21 |
num is the value of the MAXINST tag (maximum number of
|
|
22 |
instances of the pkg allowed to be installed on a system) in
|
|
23 |
the pkginfo file of the SVr4 package.
|
|
24 |
|
|
25 |
SUNW_Copyright file
|
|
26 |
Define file as the name of the file that contains the copyright
|
|
27 |
information for the package. [not implemented yet]
|
|
28 |
|
|
29 |
|
|
30 |
Special macros:
|
|
31 |
|
|
32 |
%include <file>
|
|
33 |
|
|
34 |
process the contents of %topdir/SPECS/<file> as if they were
|
|
35 |
copied into this file
|
|
36 |
|
|
37 |
%use <name> = <spec-file>
|
|
38 |
|
|
39 |
Declare that parts of %topdir/SPECS/<spec-file> will be referenced
|
|
40 |
later in this spec file and call it <name>.
|
|
41 |
Any macros %define'd before the %use line will also affect
|
|
42 |
<spec-file> (as if they were copied to the beginning of that file).
|
|
43 |
E.g. %use gtk = gtk2.spec
|
|
44 |
|
|
45 |
%<name>.<def> or
|
|
46 |
%{<name>.<def>}
|
|
47 |
|
|
48 |
Reference to a %define'd macro in the spec file called <name>,
|
|
49 |
as defined by a preceding %use. Gets replaced by the value
|
|
50 |
of the referenced macro.
|
|
51 |
E.g. %{gtk._datadir}
|
|
52 |
|
|
53 |
%<name>.<tag> or
|
|
54 |
%{<name>.<tag>}
|
|
55 |
|
|
56 |
Reference to the value of a <tag> in the spec file called <name>.
|
|
57 |
Gets replaced by the value of <tag>.
|
|
58 |
E.g. %{gtk.version}
|
|
59 |
|
|
60 |
%<name>.<scriptlet> [-d <directory>] or
|
|
61 |
%{<name>.<scriptlet>} [-d <directory>]
|
|
62 |
|
|
63 |
Execute <scriptlet> from the spec file named <name>. If -d <directory>
|
|
64 |
is used, cd into <directory> before executing the <scriptlet>.
|
|
65 |
E.g. %gtk.prep
|
|
66 |
|
|
67 |
%<name>.<package>.<tag> or
|
|
68 |
%{<name.<package>.<tag>}
|
|
69 |
|
|
70 |
Reference to the value of a <tag> in a <package> (subpackage)
|
|
71 |
in the <name>'d spec file.
|
|
72 |
E.g. %{gtk.gtk-devel.summary}
|
|
73 |
Note that is not properly tested yet, use with caution and
|
|
74 |
let me know if it's broken.
|
|
75 |
|
|
76 |
|
|
77 |
--
|
|
78 |
Last modified: 2004-01-09 [email protected]
|