9397
|
1 |
#
|
|
2 |
# spec file for package SUNWfirefox
|
|
3 |
#
|
|
4 |
# includes module(s): firefox
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner:davelam
|
|
11 |
#
|
|
12 |
# DO NOT REMOVE NEXT LINE
|
|
13 |
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
|
|
14 |
#
|
|
15 |
%include Solaris.inc
|
|
16 |
# use --without-apoc-adapter to disable building apoc adapter
|
|
17 |
# default: build apoc adapter
|
|
18 |
%define with_apoc_adapter %{?!_without_apoc_adapter:1}%{?_without_apoc_adapter:0}
|
|
19 |
%use firefox = firefox.spec
|
|
20 |
|
|
21 |
#####################################
|
|
22 |
## Package Information Section ##
|
|
23 |
#####################################
|
|
24 |
|
|
25 |
Name: SUNWfirefox
|
|
26 |
Summary: Mozilla Firefox Web browser
|
|
27 |
Version: %{firefox.version}
|
|
28 |
Source: %{name}-manpages-0.1.tar.gz
|
|
29 |
SUNW_BaseDir: %{_basedir}
|
|
30 |
SUNW_Category: FIREFOX,application,%{jds_version}
|
|
31 |
SUNW_Copyright:firefox-copyright.txt
|
|
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
33 |
|
|
34 |
#####################################
|
|
35 |
## Package Requirements Section ##
|
|
36 |
#####################################
|
|
37 |
|
|
38 |
%include default-depend.inc
|
|
39 |
Requires: SUNWjdsrm
|
|
40 |
Requires: SUNWj5rt
|
|
41 |
Requires: SUNWgnome-base-libs
|
|
42 |
Requires: SUNWdtbas
|
|
43 |
Requires: SUNWfontconfig
|
|
44 |
Requires: SUNWfreetype2
|
|
45 |
Requires: SUNWgnome-config
|
|
46 |
Requires: SUNWgnome-libs
|
|
47 |
Requires: SUNWgnome-vfs
|
|
48 |
Requires: SUNWlibC
|
|
49 |
Requires: SUNWlibms
|
|
50 |
Requires: SUNWxwrtl
|
|
51 |
Requires: SUNWpr
|
|
52 |
Requires: SUNWtls
|
|
53 |
Requires: SUNWlibmsr
|
|
54 |
Requires: SUNWxwplt
|
|
55 |
Requires: SUNWxwxft
|
|
56 |
BuildRequires: SUNWzip
|
|
57 |
BuildRequires: SUNWgtar
|
|
58 |
BuildRequires: SUNWgnome-config-devel
|
|
59 |
BuildRequires: SUNWgnome-libs-devel
|
|
60 |
BuildRequires: SUNWgnome-vfs-devel
|
|
61 |
BuildRequires: SUNWgnome-component-devel
|
|
62 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
63 |
Requires: SUNWpostrun
|
|
64 |
Requires: SUNWsolaris-devel-docs
|
|
65 |
|
|
66 |
#####################################
|
|
67 |
## Package Description Section ##
|
|
68 |
#####################################
|
|
69 |
|
|
70 |
%package devel
|
|
71 |
Summary: %{summary} - development files
|
|
72 |
SUNW_BaseDir: %{_basedir}
|
|
73 |
%include default-depend.inc
|
|
74 |
Requires: SUNWfirefox
|
|
75 |
|
|
76 |
%if %with_apoc_adapter
|
|
77 |
%package apoc-adapter
|
|
78 |
Summary: %{summary} - Apoc Adapter
|
|
79 |
SUNW_BaseDir: %{_basedir}
|
|
80 |
%include default-depend.inc
|
|
81 |
Requires: SUNWfirefox
|
|
82 |
%endif
|
|
83 |
|
|
84 |
#####################################
|
|
85 |
## Package Preparation Section ##
|
|
86 |
#####################################
|
|
87 |
|
|
88 |
%prep
|
|
89 |
rm -rf %name-%version
|
|
90 |
mkdir -p %name-%version
|
|
91 |
%firefox.prep -d %name-%version
|
|
92 |
cd %{_builddir}/%name-%version
|
|
93 |
gzcat %SOURCE0 | tar xf -
|
|
94 |
|
|
95 |
#####################################
|
|
96 |
## Package Build Section ##
|
|
97 |
#####################################
|
|
98 |
|
|
99 |
%build
|
|
100 |
export PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
|
|
101 |
export MSGFMT="/usr/bin/msgfmt"
|
|
102 |
export LDFLAGS="-z ignore -L%{_libdir} -L/usr/sfw/lib -R'\$\$ORIGIN:\$\$ORIGIN/..' -R%{_libdir}/mps"
|
|
103 |
export CFLAGS="-xlibmil"
|
|
104 |
export CXXFLAGS="-norunpath -xlibmil -xlibmopt -features=tmplife -lCrun -lCstd"
|
|
105 |
%ifarch sparc
|
|
106 |
export CFLAGS="$CFLAGS -xO5"
|
|
107 |
export CXXFLAGS="$CXXFLAGS -xO5"
|
|
108 |
%else
|
|
109 |
export CFLAGS="$CFLAGS -xO3"
|
|
110 |
export CXXFLAGS="$CXXFLAGS -xO3"
|
|
111 |
%endif
|
|
112 |
|
|
113 |
%firefox.build -d %name-%version
|
|
114 |
|
|
115 |
%install
|
|
116 |
%firefox.install -d %name-%version
|
|
117 |
|
|
118 |
%if %with_apoc_adapter
|
|
119 |
# creat file list for SUNWfirefox to separate
|
|
120 |
# libmozapoc.so which is delivered by SUNWfirefox-apoc-adapter
|
|
121 |
cd $RPM_BUILD_ROOT%{_libdir}
|
|
122 |
find firefox ! -type d | grep -v "libmozapoc.so" | \
|
|
123 |
sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
|
|
124 |
> %{_builddir}/%name-%version/%{name}.list
|
9588
|
125 |
|
|
126 |
|
|
127 |
# deliver file .autoreg for triggerring Firefox auto-registration
|
|
128 |
# right after apoc adapter removal(see bug CR#6521792)
|
|
129 |
touch $RPM_BUILD_ROOT%{_libdir}/firefox/.autoreg
|
|
130 |
|
9397
|
131 |
%endif
|
|
132 |
|
|
133 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
134 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
135 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
136 |
|
|
137 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
138 |
|
|
139 |
%clean
|
|
140 |
rm -rf $RPM_BUILD_ROOT
|
|
141 |
|
|
142 |
#########################################
|
|
143 |
## Package Post[Un] Install Section ##
|
|
144 |
#########################################
|
|
145 |
|
|
146 |
%post
|
|
147 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
148 |
echo '/usr/bin/update-desktop-database'
|
|
149 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
150 |
|
|
151 |
%postun
|
|
152 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
153 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
154 |
echo '/usr/bin/update-desktop-database'
|
|
155 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
156 |
|
9588
|
157 |
%if %with_apoc_adapter
|
|
158 |
%post apoc-adapter
|
|
159 |
PKGCOND=/usr/bin/pkgcond
|
|
160 |
test -x $PKGCOND || exit 0
|
|
161 |
if $PKGCOND is_path_writable $BASEDIR/lib/firefox; then
|
|
162 |
touch $BASEDIR/lib/firefox/.autoreg
|
|
163 |
fi
|
|
164 |
|
|
165 |
%postun apoc-adapter
|
|
166 |
PKGCOND=/usr/bin/pkgcond
|
|
167 |
test -x $PKGCOND || exit 0
|
|
168 |
if $PKGCOND is_path_writable $BASEDIR/lib/firefox; then
|
|
169 |
touch $BASEDIR/lib/firefox/.autoreg
|
|
170 |
fi
|
|
171 |
%endif
|
|
172 |
|
9397
|
173 |
|
|
174 |
%if %with_apoc_adapter
|
|
175 |
%files -f SUNWfirefox.list
|
|
176 |
%else
|
|
177 |
%files
|
|
178 |
%endif
|
|
179 |
|
|
180 |
%defattr(0755, root, bin)
|
|
181 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
182 |
%{_bindir}/firefox
|
|
183 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
184 |
|
|
185 |
%if %with_apoc_adapter
|
9588
|
186 |
%ghost %{_libdir}/firefox/.autoreg
|
9397
|
187 |
%else
|
|
188 |
%{_libdir}/firefox
|
|
189 |
%endif
|
|
190 |
|
|
191 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
192 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
193 |
%{_datadir}/applications/firefox.desktop
|
|
194 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
195 |
%{_datadir}/pixmaps/firefox-icon.png
|
|
196 |
%dir %attr (0755, root, bin) %{_mandir}
|
|
197 |
%dir %attr (0755, root, bin) %{_mandir}/man1
|
|
198 |
%{_mandir}/man1/*
|
|
199 |
|
|
200 |
%files devel
|
|
201 |
%defattr(0755, root, bin)
|
|
202 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
203 |
%{_includedir}/firefox
|
|
204 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
205 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
206 |
%{_libdir}/pkgconfig/*
|
|
207 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
208 |
%{_bindir}/firefox-config
|
|
209 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
210 |
%{_datadir}/idl/*
|
|
211 |
|
|
212 |
%if %with_apoc_adapter
|
|
213 |
%files apoc-adapter
|
|
214 |
%defattr(0755, root, bin)
|
|
215 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
216 |
%{_libdir}/firefox/components/libmozapoc.so
|
|
217 |
%endif
|
|
218 |
|
|
219 |
%changelog
|
9588
|
220 |
* Tue Mar 20 2007 - [email protected]
|
|
221 |
- fix bug CR#6521792
|
|
222 |
part1: add file ".autoreg" and add postinstall/postremove scripts in
|
|
223 |
SUNWfirefox-apoc-adapter
|
|
224 |
part2: add patch firefox-12-regenerate-compreg-file.diff
|
9397
|
225 |
* Thu Dec 28 2006 - [email protected]
|
|
226 |
- remove %preun to fix bug CR#6502253
|
|
227 |
* Fri Dec 8 2006 - [email protected]
|
|
228 |
- add SUNWsolaris-devel-docs dependency
|
|
229 |
* Tue Nov 28 2006 - [email protected]
|
|
230 |
- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
|
|
231 |
default: enable apoc adapter, use --without-apoc-adapter to disable it
|
|
232 |
* Mon Nov 27 - [email protected]
|
|
233 |
- enable apoc adapter(SUNWfirefox-apoc-adapter), CR#6478680
|
|
234 |
* Tue Sep 05 2006 - [email protected]
|
|
235 |
- New Manpage tarball
|
|
236 |
* Thu Jul 27 2006 - [email protected]
|
|
237 |
- Remove 'aclocal' dir from %files as it is now empty.
|
|
238 |
* Fri Jul 14 2006 - [email protected]
|
|
239 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
240 |
part of 6448317
|
|
241 |
* Thu Jul 13 2006 - [email protected]
|
|
242 |
- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
|
|
243 |
* Thu Jun 29 2006 - [email protected]
|
|
244 |
- update postrun scripts
|
|
245 |
* Tue Jun 20 2006 - [email protected]
|
|
246 |
- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
|
|
247 |
* Mon Jun 12 2006 - [email protected]
|
|
248 |
- changed to let firefox use nss,nspr in /usr/lib/mps required by ARC
|
|
249 |
- remove -R%{_libdir}
|
|
250 |
* Sun Jun 11 2006 - [email protected]
|
|
251 |
- change group from other to bin/sys
|
|
252 |
* Fri Jun 09 2006 - [email protected]
|
|
253 |
- Uncomment man page lines in %files.
|
|
254 |
* Thu Jun 08 2006 - [email protected]
|
|
255 |
- add man page prepared by Leon Sha
|
|
256 |
* Thu Apr 13 2006 - [email protected]
|
|
257 |
- changed installation location from "/usr/sfw/lib" to "/usr/lib"
|
|
258 |
* Fri Feb 24 2006 - [email protected]
|
|
259 |
- Changed package category to FIREFOX
|
|
260 |
- Improved preremove script, using ${BASEDIR} instead of absolute path
|
|
261 |
* Mon Feb 20 2006 - [email protected]
|
|
262 |
- Update Build/Requires after running check-deps.pl script.
|
|
263 |
* Thu Jan 19 2006 - [email protected]
|
|
264 |
- Add BuildRequires SUNWgnome-base-libs-devel.
|
|
265 |
* Sat Dec 3 2005 - [email protected]
|
|
266 |
- add %post script that runs update-desktop-database
|
|
267 |
* Fri Dec 02 2005 - [email protected]
|
|
268 |
- Add .autoreg file introduced in 1.5.
|
|
269 |
* Mon Oct 31 2005 - [email protected]
|
|
270 |
- Merge share pkgs into base
|
|
271 |
* Mon Oct 24 2005 - [email protected]
|
|
272 |
- Add BuildRequires SUNWgtar because source tarball needs GNU tar.
|
|
273 |
* Mon Sep 26 2005 - [email protected]
|
|
274 |
- Change version same with linux verion.
|
|
275 |
* Fri Sep 02 2005 - [email protected]
|
|
276 |
- Correct ownership of %{_libdir}/pkgconfig directory.
|
|
277 |
* Fri Aug 26 2005 - [email protected]
|
|
278 |
- initial version of the spec file created
|