author | laca |
Thu, 15 Dec 2005 03:47:47 +0000 | |
changeset 6391 | 2b0f4b4c4069 |
parent 6381 | ef90fce6f8bb |
child 6671 | b02526340825 |
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 |
|
6391 | 7 |
SUNW_ProdVers: 2.13.3 |
4122 | 8 |
|
6391 | 9 |
%define default_pkg_version 2.13.3 |
6381 | 10 |
%define jds_version JDSosol |
5859
da89f4e343b9
update package version numbers and change ELF comment from supported to
laca
parents:
5844
diff
changeset
|
11 |
%define support_level unsupported |
5894 | 12 |
%define cc_is_gcc %(test "x`basename $CC`" = xgcc && echo 1 || echo 0) |
6169 | 13 |
%define build_l10n %{?_with_l10n:1}%{?!_with_l10n:0} |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
14 |
%define debug_build %{?_with_debug:1}%{?!_with_debug:0} |
4122 | 15 |
|
16 |
SUNW_Category: GNOME2,application,%{jds_version} |
|
1508 | 17 |
SUNW_HotLine: Please contact your local service provider |
18 |
SUNW_MaxInst: 1000 |
|
3403 | 19 |
SUNW_Rev: 10.0.3 |
20 |
SUNW_Copyright: default-copyright.txt |
|
1508 | 21 |
Vendor: Sun Microsystems, Inc. |
22 |
%define _libexecdir %{_prefix}/lib |
|
23 |
%define _mandir %{_datadir}/man |
|
4121 | 24 |
|
6339 | 25 |
%if %debug_build |
26 |
%define _ldflags |
|
27 |
%else |
|
6295 | 28 |
%define _ldflags -Wl,-z,ignore -Wl,-z,combreloc -Wl,-Bdirect |
6339 | 29 |
%endif |
6102 | 30 |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
31 |
%ifarch sparcv9 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
32 |
%define _arch64 sparcv9 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
33 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
34 |
|
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
35 |
%ifarch amd64 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
36 |
%define _arch64 amd64 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
37 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
38 |
|
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
39 |
%if %debug_build |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
40 |
%define pkgbuild_postprocess /bin/true |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
41 |
%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
|
42 |
%define _cc64_opt_level -g |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
43 |
%define _cxx_opt_level -g |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
44 |
%else |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
45 |
%if %cc_is_gcc |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
46 |
%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
|
47 |
%define _cc64_opt_level -O2 |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
48 |
%define _cxx_opt_level -O2 |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
49 |
%else |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
50 |
%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
|
51 |
%define _cc64_opt_level -xO2 -xspace |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
52 |
%define _cxx_opt_level -xO3 -xspace |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
53 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
54 |
%endif |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
55 |
|
5894 | 56 |
%if %cc_is_gcc |
57 |
||
5936 | 58 |
%define picflags -fPIC -DPIC |
59 |
||
5894 | 60 |
%ifarch sparc |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
61 |
%define optflags %_cc_opt_level -mv8plus -Xlinker -i %picflags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
62 |
%define cxx_optflags %_cxx_opt_level -mv8plus -Xlinker -i %picflags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
63 |
%define optflags64 %_cc_opt_level -mcpu=ultrasparc -m64 -Xlinker -i %picflags |
5894 | 64 |
%endif |
65 |
||
66 |
%ifarch i386 |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
67 |
%define optflags %_cc_opt_level -march=i586 -Xlinker -i -fomit-frame-pointers %picflags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
68 |
%define cxx_optflags %_cc_opt_level -march=i586 -Xlinker -i -fomit-frame-pointers %picflags |
6158
e6c4b7ff5106
reset opt level to xO2 on AMD64/forte as xO4 still crashes the compiler. :(
laca
parents:
6155
diff
changeset
|
69 |
%define optflags64 %_cc64_opt_level -march=opteron -m64 -Xlinker -i -fomit-frame-pointers %picflags |
5894 | 70 |
%endif |
71 |
||
72 |
%else |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
73 |
# cc is not gcc |
5894 | 74 |
|
5936 | 75 |
%define picflags -KPIC |
76 |
||
1508 | 77 |
%ifarch sparc |
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
78 |
%define optflags -i %_cc_opt_level -xstrconst -xarch=v8a -mr |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
79 |
%define cxx_optflags -i %_cxx_opt_level -xarch=v8a -mr -norunpath |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
80 |
%define optflags64 -i %_cc_opt_level -xstrconst -xarch=v9 -xcode=pic32 -mr |
4121 | 81 |
%endif |
82 |
||
83 |
%ifarch i386 |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
84 |
%define optflags -i %_cc_opt_level -xstrconst -xpentium -mr -xregs=no%%frameptr |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
85 |
%define cxx_optflags -i %_cxx_opt_level -pentium -mr -norunpath -xregs=no%%frameptr |
6160 | 86 |
%define optflags64 -i -xarch=generic64 -Kpic -xregs=no%%frameptr |
1508 | 87 |
%endif |
88 |
||
5894 | 89 |
%endif |
90 |
||
1508 | 91 |
# temporary locations while we're sorting things out |
3221
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
92 |
%define _basedir /usr |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
93 |
%define _subdir |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
94 |
%define _prefix %{_basedir} |
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
95 |
%define _sysconfdir /etc |
2078 | 96 |
%define _localedir %{_libdir}/locale |
3184 | 97 |
%define _pkg_config_path %{_libdir}/pkgconfig |
4227 | 98 |
%define _pkg_config_path64 %{_libdir}/%{_arch64}/pkgconfig |
2078 | 99 |
|
100 |
# ChangeLog: |
|
101 |
# |
|
6295 | 102 |
# 2005-11-28 Laszlo Peter <[email protected]> |
103 |
# - add -z combreloc and -Bdirect to the LDFLAGS; kinda experimental for now |
|
6155
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
104 |
# 2005-10-23 Laszlo Peter <[email protected]> |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
105 |
# - define debug_build (if --with-debug is used) and build_l10n |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
106 |
# (when --with-l10n is used) build_l10n will disable building |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
107 |
# the l10n packages but needs changes in the spec files to work; |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
108 |
# debug_build is already functional: replaces the optimisation flags |
ac793d1d7754
PLEASE READ! IMPORTANT! *** DEBUG BUILDS *** Yay!! (;
laca
parents:
6102
diff
changeset
|
109 |
# with -g and disables stripping the binaries. (Yay!) |
6102 | 110 |
# 2005-10-14 Laszlo Peter <[email protected]> |
111 |
# - define _ldflags |
|
5937 | 112 |
# 2005-09-19 Laszlo Peter <[email protected]> |
113 |
# - add -xregs=no%frameptr (Sun CC) or -fomit-frame-pointers (gcc) |
|
114 |
# flags to enable dtrace get stack traces |
|
5936 | 115 |
# 2005-09-17 Laszlo Peter <[email protected]> |
116 |
# - define %picflags and add them to the gcc CFLAGS otherwise most things |
|
117 |
# seem to break |
|
5894 | 118 |
# 2005-09-16 Laszlo Peter <[email protected]> |
119 |
# - define cc_is_gcc and define gcc specific compiler flags |
|
5866 | 120 |
# 2005-09-15 Brian Cameron <[email protected]> |
121 |
# - Backout debug lines I accidently committed to this file. |
|
5518 | 122 |
# 2005-07-14 Laszlo Peter <[email protected]> |
123 |
# - update product version to 2.10 |
|
4401 | 124 |
# 2004-11-01 Laszlo Peter <[email protected]> |
125 |
# - temporarily removed -O for amd64 to stop gtk-demo crashing |
|
4226 | 126 |
# 2004-10-13 Laszlo Peter <[email protected]> |
127 |
# - defined _pkg_config_path64 |
|
4122 | 128 |
# 2004-10-02 Laszlo Peter <[email protected]> |
129 |
# - defined jds_version |
|
4121 | 130 |
# 2004-10-02 Joseph Townsend <[email protected]> |
131 |
# - Create 64bit libraries for Solaris |
|
3547 | 132 |
# 2004-08-12 Shirley Woo <[email protected]> |
133 |
# - Updated SUNW_Category for G2.6 packages to 2.6.0 |
|
3403 | 134 |
# 2004-07-23 Laszlo Peter <[email protected]> |
135 |
# - Changed default copyright notice to default-copyright.txt |
|
136 |
# - Prefixed REV with 9.7.2 |
|
137 |
# 2004-06-26 Shirley Woo <[email protected]> |
|
3221
a9dc1a9a5f37
Updated for changing Gnome install location to /usr/...,
woos
parents:
3184
diff
changeset
|
138 |
# - Changed install location to /usr/... |
3184 | 139 |
# 2004-06-21 Laszlo Peter <[email protected]> |
140 |
# - descrease C++ optimisation level to xO3 |
|
141 |
# - define _pkg_config_path |
|
2621 | 142 |
# 2004-05-03 Laszlo Peter <[email protected]> |
143 |
# - define _basedir |
|
2483 | 144 |
# 2004-04-14 Laszlo Peter <[email protected]> |
145 |
# - change CATEGORY to GNOME2,application,JDS3 |
|
2078 | 146 |
# 2004-02-28 Laszlo Peter <[email protected]> |
147 |
# - add -mr and -xtrconst options, -xpentium on intel. |
|
2483 | 148 |
# - define cxx_optflags for CC compilation |