author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 19084 | 714a97b71284 |
child 8703 | c1be3bb41b18 |
permissions | -rw-r--r-- |
1508 | 1 |
# |
2 |
# Default settings for GNOME packages on Solaris |
|
3 |
# |
|
4 |
# Copyright (c) 2003 Sun Microsystems, Inc. |
|
5 |
# |
|
6 |
SUNW_ProdName: GNOME |
|
19084 | 7 |
SUNW_ProdVers: 2.17.1 |
4122 | 8 |
|
7257
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
9 |
# Note: you need JDS CBE 1.4.1 or later for these 3: |
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
10 |
%{?!jds_version:#}SUNW_Pkg_AllZones: false |
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
11 |
%{?!jds_version:#}SUNW_Pkg_Hollow: false |
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
12 |
%{?!jds_version:#}SUNW_Pkg_ThisZone: false |
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
13 |
|
19084 | 14 |
%define default_pkg_version 2.17.1 |
7242
19b994b053db
2006-05-10 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7202
diff
changeset
|
15 |
%{?jds_version:#}%define jds_version JDSosol |
6826 | 16 |
%define default_category GNOME2,application,%{jds_version} |
7242
19b994b053db
2006-05-10 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7202
diff
changeset
|
17 |
%{?support_level:#}%define support_level unsupported |
5894 | 18 |
%define cc_is_gcc %(test "x`basename $CC`" = xgcc && echo 1 || echo 0) |
8501 | 19 |
|
20 |
# Command line configurable build options: |
|
21 |
||
22 |
# use --with-build-l10n to build the SUNWfoo-l10n packages |
|
23 |
# default: no l10n packages |
|
6169 | 24 |
%define build_l10n %{?_with_l10n:1}%{?!_with_l10n:0} |
8501 | 25 |
|
26 |
# use --with-tjds to build the JDS Trusted Extensions |
|
27 |
# default: no tjds |
|
7550 | 28 |
%define build_tjds %{?_with_tjds:1}%{?!_with_tjds:0} |
8501 | 29 |
|
30 |
# use --with-debug to build binaries with debug info (-g) and not to strip |
|
31 |
# them. |
|
32 |
# default: don't include debug info and strip the binaries (strip -x) |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
33 |
%define debug_build %{?_with_debug:1}%{?!_with_debug:0} |
8501 | 34 |
|
35 |
# use --without-gtk-doc to disable building gtk-docs (it takes quite |
|
36 |
# a while to build them) |
|
37 |
# default: build gtk-doc API docs |
|
38 |
%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc} |
|
39 |
||
40 |
# end of command line configurable build options |
|
41 |
||
6963 | 42 |
%define is_nevada %(test `uname -r` = 5.11 && echo 1 || echo 0) |
8258
73b7ea5cfb91
2006-10-03 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8247
diff
changeset
|
43 |
%define _patch_options --fuzz=0 --unified |
4122 | 44 |
|
6826 | 45 |
SUNW_Category: %{default_category} |
1508 | 46 |
SUNW_HotLine: Please contact your local service provider |
47 |
SUNW_MaxInst: 1000 |
|
7270 | 48 |
SUNW_Rev: 110.0.4.%(date +%Y.%m.%d.%H.%M) |
3403 | 49 |
SUNW_Copyright: default-copyright.txt |
1508 | 50 |
Vendor: Sun Microsystems, Inc. |
7257
dbac8355e502
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7242
diff
changeset
|
51 |
|
1508 | 52 |
%define _libexecdir %{_prefix}/lib |
53 |
%define _mandir %{_datadir}/man |
|
4121 | 54 |
|
6339 | 55 |
%if %debug_build |
56 |
%define _ldflags |
|
57 |
%else |
|
6671 | 58 |
%define _ldflags -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect |
6339 | 59 |
%endif |
6102 | 60 |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
61 |
%ifarch sparcv9 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
62 |
%define _arch64 sparcv9 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
63 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
64 |
|
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
65 |
%ifarch amd64 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
66 |
%define _arch64 amd64 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
67 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
68 |
|
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
69 |
%if %debug_build |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
70 |
%define pkgbuild_postprocess /bin/true |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
71 |
%define _cc_opt_level -g |
6158
e6c4b7ff5106
reset opt level to xO2 on AMD64/forte as xO4 still crashes the compiler. :(
laca
parents:
6155
diff
changeset
|
72 |
%define _cc64_opt_level -g |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
73 |
%define _cxx_opt_level -g |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
74 |
%else |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
75 |
%if %cc_is_gcc |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
76 |
%define _cc_opt_level -O2 |
6158
e6c4b7ff5106
reset opt level to xO2 on AMD64/forte as xO4 still crashes the compiler. :(
laca
parents:
6155
diff
changeset
|
77 |
%define _cc64_opt_level -O2 |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
78 |
%define _cxx_opt_level -O2 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
79 |
%else |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
80 |
%define _cc_opt_level -xO4 -xspace |
6158
e6c4b7ff5106
reset opt level to xO2 on AMD64/forte as xO4 still crashes the compiler. :(
laca
parents:
6155
diff
changeset
|
81 |
%define _cc64_opt_level -xO2 -xspace |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
82 |
%define _cxx_opt_level -xO3 -xspace |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
83 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
84 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
85 |
|
5894 | 86 |
%if %cc_is_gcc |
87 |
||
5936 | 88 |
%define picflags -fPIC -DPIC |
89 |
||
5894 | 90 |
%ifarch sparc |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
91 |
%define optflags %_cc_opt_level -mv8plus -Xlinker -i %picflags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
92 |
%define cxx_optflags %_cxx_opt_level -mv8plus -Xlinker -i %picflags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
93 |
%define optflags64 %_cc_opt_level -mcpu=ultrasparc -m64 -Xlinker -i %picflags |
8162
ab63e00d2219
2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8047
diff
changeset
|
94 |
%define cxx_optflags64 %optflags64 |
5894 | 95 |
%endif |
96 |
||
97 |
%ifarch i386 |
|
7124
db1febd335b2
2006-04-24 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6963
diff
changeset
|
98 |
%define optflags %_cc_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointers %picflags |
db1febd335b2
2006-04-24 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6963
diff
changeset
|
99 |
%define cxx_optflags %_cc_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointers %picflags |
db1febd335b2
2006-04-24 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6963
diff
changeset
|
100 |
%define optflags64 %_cc64_opt_level -march=opteron -m64 -Xlinker -i -fno-omit-frame-pointers %picflags |
8162
ab63e00d2219
2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8047
diff
changeset
|
101 |
%define cxx_optflags64 %optflags64 |
5894 | 102 |
%endif |
103 |
||
104 |
%else |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
105 |
# cc is not gcc |
5894 | 106 |
|
5936 | 107 |
%define picflags -KPIC |
108 |
||
1508 | 109 |
%ifarch sparc |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
110 |
%define optflags -i %_cc_opt_level -xstrconst -xarch=v8a -mr |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
111 |
%define optflags64 -i %_cc_opt_level -xstrconst -xarch=v9 -xcode=pic32 -mr |
8163
eac77da08252
remove -xstrconst from sparc cxx_optflags -- it was added accidentally
lp117937
parents:
8162
diff
changeset
|
112 |
%define cxx_optflags -i %_cxx_opt_level -xarch=v8a -mr -norunpath |
eac77da08252
remove -xstrconst from sparc cxx_optflags -- it was added accidentally
lp117937
parents:
8162
diff
changeset
|
113 |
%define cxx_optflags64 -i %_cxx_opt_level -xarch=v9 -xcode=pic32 -mr -norunpath |
4121 | 114 |
%endif |
115 |
||
116 |
%ifarch i386 |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
117 |
%define optflags -i %_cc_opt_level -xstrconst -xpentium -mr -xregs=no%%frameptr |
8163
eac77da08252
remove -xstrconst from sparc cxx_optflags -- it was added accidentally
lp117937
parents:
8162
diff
changeset
|
118 |
%define optflags64 -i -xstrconst -xarch=generic64 -Kpic -xregs=no%%frameptr |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
119 |
%define cxx_optflags -i %_cxx_opt_level -pentium -mr -norunpath -xregs=no%%frameptr |
8162
ab63e00d2219
2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8047
diff
changeset
|
120 |
%define cxx_optflags64 -i %_cxx_opt_level -xarch=generic64 -Kpic -pentium -mr -norunpath -xregs=no%%frameptr |
1508 | 121 |
%endif |
122 |
||
5894 | 123 |
%endif |
124 |
||
3221
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
125 |
%define _basedir /usr |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
126 |
%define _subdir |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
127 |
%define _prefix %{_basedir} |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
128 |
%define _sysconfdir /etc |
7966
32f7a18f94da
2006-08-23 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7960
diff
changeset
|
129 |
%define _localstatedir /var |
2078 | 130 |
%define _localedir %{_libdir}/locale |
3184 | 131 |
%define _pkg_config_path %{_libdir}/pkgconfig |
4227 | 132 |
%define _pkg_config_path64 %{_libdir}/%{_arch64}/pkgconfig |
2078 | 133 |
|
134 |
# ChangeLog: |
|
19084 | 135 |
# 2006-11-23 Damien Carbery <[email protected]> |
136 |
# - Bump SUNW_ProdVers and default_pkg_version to 2.17.1. |
|
8501 | 137 |
# 2006-11-03 Laszlo Peter <[email protected]> |
138 |
# - define %gtk_doc_option, lets the user disable building gtk-docs |
|
139 |
# using --without-gtk-doc; also added comments about usage |
|
8258
73b7ea5cfb91
2006-10-03 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8247
diff
changeset
|
140 |
# 2006-10-03 Laszlo Peter <[email protected]> |
73b7ea5cfb91
2006-10-03 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8247
diff
changeset
|
141 |
# - define %_patch_options, this specifies extra options for gpatch when |
73b7ea5cfb91
2006-10-03 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8247
diff
changeset
|
142 |
# using pkgbuild 1.1.1 or later |
8247 | 143 |
# 2006-10-03 Damien Carbery <[email protected]> |
144 |
# - Bump SUNW_ProdVers and default_pkg_version to 2.16.1. |
|
8162
ab63e00d2219
2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8047
diff
changeset
|
145 |
# 2006-09-18 Laszlo Peter <[email protected]> |
ab63e00d2219
2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
8047
diff
changeset
|
146 |
# - define cxx_optflags64 |
7966
32f7a18f94da
2006-08-23 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7960
diff
changeset
|
147 |
# 2006-08-23 Laszlo Peter <[email protected]> |
32f7a18f94da
2006-08-23 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7960
diff
changeset
|
148 |
# - define _localstatedir |
7202
fe32cb265692
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7188
diff
changeset
|
149 |
# 2006-06-02 Laszlo Peter <[email protected]> |
fe32cb265692
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7188
diff
changeset
|
150 |
# - add the date string back into REV |
6295 | 151 |
# 2005-11-28 Laszlo Peter <[email protected]> |
7202
fe32cb265692
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7188
diff
changeset
|
152 |
# - add -z combreloc and -Bdirect to the LDFLAGS |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
153 |
# 2005-10-23 Laszlo Peter <[email protected]> |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
154 |
# - define debug_build (if --with-debug is used) and build_l10n |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
155 |
# (when --with-l10n is used) build_l10n will disable building |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
156 |
# the l10n packages but needs changes in the spec files to work; |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
157 |
# debug_build is already functional: replaces the optimisation flags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
158 |
# with -g and disables stripping the binaries. (Yay!) |
6102 | 159 |
# 2005-10-14 Laszlo Peter <[email protected]> |
160 |
# - define _ldflags |
|
5937 | 161 |
# 2005-09-19 Laszlo Peter <[email protected]> |
162 |
# - add -xregs=no%frameptr (Sun CC) or -fomit-frame-pointers (gcc) |
|
163 |
# flags to enable dtrace get stack traces |
|
5936 | 164 |
# 2005-09-17 Laszlo Peter <[email protected]> |
165 |
# - define %picflags and add them to the gcc CFLAGS otherwise most things |
|
166 |
# seem to break |
|
5894 | 167 |
# 2005-09-16 Laszlo Peter <[email protected]> |
168 |
# - define cc_is_gcc and define gcc specific compiler flags |
|
5866 | 169 |
# 2005-09-15 Brian Cameron <[email protected]> |
170 |
# - Backout debug lines I accidently committed to this file. |
|
5518 | 171 |
# 2005-07-14 Laszlo Peter <[email protected]> |
172 |
# - update product version to 2.10 |
|
4401 | 173 |
# 2004-11-01 Laszlo Peter <[email protected]> |
174 |
# - temporarily removed -O for amd64 to stop gtk-demo crashing |
|
4226 | 175 |
# 2004-10-13 Laszlo Peter <[email protected]> |
176 |
# - defined _pkg_config_path64 |
|
4122 | 177 |
# 2004-10-02 Laszlo Peter <[email protected]> |
178 |
# - defined jds_version |
|
4121 | 179 |
# 2004-10-02 Joseph Townsend <[email protected]> |
180 |
# - Create 64bit libraries for Solaris |
|
3547 | 181 |
# 2004-08-12 Shirley Woo <[email protected]> |
182 |
# - Updated SUNW_Category for G2.6 packages to 2.6.0 |
|
3403 | 183 |
# 2004-07-23 Laszlo Peter <[email protected]> |
184 |
# - Changed default copyright notice to default-copyright.txt |
|
185 |
# - Prefixed REV with 9.7.2 |
|
186 |
# 2004-06-26 Shirley Woo <[email protected]> |
|
3221
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
187 |
# - Changed install location to /usr/... |
3184 | 188 |
# 2004-06-21 Laszlo Peter <[email protected]> |
189 |
# - descrease C++ optimisation level to xO3 |
|
190 |
# - define _pkg_config_path |
|
2621 | 191 |
# 2004-05-03 Laszlo Peter <[email protected]> |
192 |
# - define _basedir |
|
2483 | 193 |
# 2004-04-14 Laszlo Peter <[email protected]> |
194 |
# - change CATEGORY to GNOME2,application,JDS3 |
|
2078 | 195 |
# 2004-02-28 Laszlo Peter <[email protected]> |
196 |
# - add -mr and -xtrconst options, -xpentium on intel. |
|
2483 | 197 |
# - define cxx_optflags for CC compilation |