Spec file extensions quick reference. ------------------------------------ Solaris specific tags: SUNW_BaseDir prefix Define prefix as the value of the BASEDIR tag in the SVr4 package. prefix will be stripped off the beginning of all path names in the %files section, therefore it has to be a real prefix, otherwise it will abort with an error. SUNW_ProdName name SUNW_PRODNAME tag in the Solaris pkg. SUNW_ProdVers version SUNW_PRODVERS tag in the Solaris pkg. SUNW_Category cat CATEGORY tag in the Solaris pkg. SUNW_HotLine text HOTLINE tag in the pkginfo file of the SVr4 package. SUNW_MaxInst num num is the value of the MAXINST tag (maximum number of instances of the pkg allowed to be installed on a system) in the pkginfo file of the SVr4 package. SUNW_Copyright file Define file as the name of the file that contains the copyright information for the package. Special macros: %include process the contents of %topdir/SPECS/ as if they were copied into this file %use = Declare that parts of %topdir/SPECS/ will be referenced later in this spec file and call it . Any macros %define'd before the %use line will also affect (as if they were copied to the beginning of that file). E.g. %use gtk = gtk2.spec %. or %{.} Reference to a %define'd macro in the spec file called , as defined by a preceding %use. Gets replaced by the value of the referenced macro. E.g. %{gtk._datadir} %. or %{.} Reference to the value of a in the spec file called . Gets replaced by the value of . E.g. %{gtk.version} %. [-d ] or %{.} [-d ] Execute from the spec file named . If -d is used, cd into before executing the . E.g. %gtk.prep %.. or %{.} Reference to the value of a in a (subpackage) in the 'd spec file. E.g. %{gtk.gtk-devel.summary} Note that is not properly tested yet, use with caution and let me know if it's broken. -- Last modified: 2004-01-09 Laca@Sun.Com