SUNWtemplate.spec revision 6549
10139N/A# spec file for package SUNWgnome-foo-bar 12251N/A# includes module(s): gnome-foo, libgnomebar 10139N/A# Copyright (c) 2004 Sun Microsystems, Inc. 10139N/A# This file and all modifications and additions to the pristine 10139N/A# package are under the same license as the package itself. 11195N/A############################################################################ 10139N/A# The example in this template builds 2 GNOME components, gnome-foo and 10139N/A# libgnomebar and packages them together into a Solaris package called 13919N/A# SUNWgnome-foo-bar that is split by file system boundaries [Solaris rule], 10139N/A# so it has a "subpackage" called SUNWgnome-foo-bar-share. 10139N/A############################################################################ 12773N/A# default locations and extra info needed for building Solaris pkgs. 12773N/A# See the file itself for more details, it's located in this directory. 12773N/A# Note that this line should appear before any %use lines so that 10139N/A# Declare that this spec file will use information (tags, scriptlets, etc.) 10139N/A# spec file for future reference. 13551N/A# This is the name (PKG) of the Solaris package. 10139N/A# This will become the one-line description of the Solaris package 10139N/A# This is the version of the Solaris package that has nothing to do with 10139N/A# the version of the gnome components included, since several gnome 10139N/A# components may be packaged together. 10139N/A# The base directory of the Solaris package (normally /usr, / or 10139N/A# You need to define the basedir for each package and subpackage. 10139N/A# For now, the basedir of "-root" packages should be /, everything 10139N/A# Same as with linux specs. Note that in this case this will be 10139N/A# There's a list of packages that all GNOME packages depend on 10139N/A# These are really just the Solaris core, devices, system libs. 10139N/A# We could include them in all spec files but it's nicer and shorter 10139N/A# to %include them from a common file. 10139N/A# These are the additional [to the default ones %include'd above] 10139N/A# dependencies of this package. Please don't use version checks in 10139N/A# Solaris dependencies. They are not usually used and not properly 10139N/A# implemented in the build scripts either. 10139N/A# This defines the "-share" subpackage, i.e. SUNWgnome-foo-bar-share. 10139N/A# Solaris packages must be split by usual filesystem boundaries, so 10139N/A# the package. When it makes sense (e.g. the package is big), development 10139N/A# The naming convention used in GNOME is this: 12728N/A# SUNWgnome-package-name: the main package, binaries, libs 10139N/A# SUNWgnome-package-name-root: /etc, /var stuff 10142N/A# SUNWgnome-package-name-share: man pages, help, docs, anything in 12248N/A# SUNWgnome-package-name-devel: include files, pkgconfig files, 10139N/A# binaries only needed for development 10139N/A# SUNWgnome-package-name-devel-root: any root files that are only needed 13551N/A# SUNWgnome-package-name-devel-share: development docs (e.g. gtk-doc), 10139N/A# files in %{_datadir} only needed for 10139N/A# start with a clean source directory. 10139N/A# prepare the sources of gnome-foo in the %name-%version subdir. 10139N/A# The same thing again with libgnomebar. 12773N/A# Set any environement variables that may be needed. 12773N/A# Note that the linux spec files usually set CFLAGS to $RPM_OPT_FLAGS 10139N/A# before running configure, so if you want to add something to the 10139N/A# CFLAGS defined in the linux spec file, the above trick will do 10139N/A# (i.e. set RPM_OPT_FLAGS to be the same as the CFLAGS you want) 10139N/A# ((RPM_OPT_FLAGS is normally defined by rpm as %optflags)) 10139N/A# run the %build section of the linux spec files after cd'ing into 10139N/A# The same thing with the %install sections. 10139N/A# The rest of this spec file is just the same as the Linux spec files, 10139N/A# so I'm not going to comment on everything. 10139N/A# Make sure you define the Solaris default file attributes for system 10139N/A# Although pkgbuild doesn't currently do anything with %changelog, it's 10139N/A# still a good idea to use changelog entries. 10139N/A# To build a Solaris package from this spec file, copy all referenced 10139N/A# and run pkgbuild -ba <this spec file> 10139N/A# Alternatively, run ./build-gnome2 build <spec-file>