]>
Commit | Line | Data |
---|---|---|
aa946041 ŁK |
1 | # TODO: |
2 | # - provide proper $DISPLAY for PGO (Xvfb, Xdummy...) for unattended builds | |
64fd9f61 | 3 | # |
64fd9f61 | 4 | # Conditional build: |
25f97994 | 5 | %bcond_with tests # enable tests (whatever they check) |
6 | %bcond_without gnomeui # disable gnomeui support | |
d60b15b4 | 7 | %bcond_without gnome # synonym for gnomeui (gconf, libnotify and gio are still enabled) |
25f97994 | 8 | %bcond_without kerberos # disable krb5 support |
0e22539a | 9 | %bcond_with xulrunner # build without system xulrunner |
aa946041 | 10 | %bcond_with pgo # PGO-enabled build (requires working $DISPLAY == :100) |
25f97994 | 11 | |
12 | %if %{without gnome} | |
13 | %undefine with_gnomeui | |
25f97994 | 14 | %endif |
15 | ||
11a3f988 | 16 | # convert firefox release number to platform version: 19.0.x -> 19.0.x |
47c1233f JR |
17 | %define xulrunner_main 20.0 |
18 | %define xulrunner_ver %(v=%{version}; echo %{xulrunner_main}${v#20.0}) | |
95d7e788 | 19 | |
edeacddd ER |
20 | %if %{without xulrunner} |
21 | # The actual sqlite version (see RHBZ#480989): | |
22 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
23 | %endif | |
24 | ||
23c292ac AM |
25 | %define nspr_ver 4.9.5 |
26 | %define nss_ver 3.14.3 | |
837c600d | 27 | |
636318c9 | 28 | Summary: Iceweasel web browser |
3c179095 | 29 | Summary(hu.UTF-8): Iceweasel web böngésző |
1c0db0f7 | 30 | Summary(pl.UTF-8): Iceweasel - przeglądarka WWW |
636318c9 | 31 | Name: iceweasel |
47c1233f | 32 | Version: 20.0.1 |
d3fcfd29 | 33 | Release: 3 |
25f97994 | 34 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ |
64fd9f61 | 35 | Group: X11/Applications/Networking |
57727a75 | 36 | Source0: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}.source.tar.bz2 |
47c1233f | 37 | # Source0-md5: b822ff4b2348410587dec563235d9320 |
25f97994 | 38 | Source1: %{name}-branding.tar.bz2 |
f065dcb8 | 39 | # Source1-md5: 816d926bd2c76a5bba5108979ba776ac |
6263e082 | 40 | Source2: %{name}-rm_nonfree.sh |
41 | Source3: %{name}.desktop | |
42 | Source4: %{name}.sh | |
55f0784a JR |
43 | Source5: vendor.js |
44 | Source6: vendor-ac.js | |
25f97994 | 45 | Patch0: %{name}-branding.patch |
25f97994 | 46 | Patch2: %{name}-gcc3.patch |
25f97994 | 47 | Patch7: %{name}-prefs.patch |
0b8ebf73 | 48 | Patch8: %{name}-pld-branding.patch |
9f488603 | 49 | Patch9: %{name}-no-subshell.patch |
d6613925 | 50 | Patch10: system-cairo.patch |
93241bee | 51 | Patch11: %{name}-middle_click_paste.patch |
d8c2b732 | 52 | Patch12: %{name}-packaging.patch |
6a75f2e2 JR |
53 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
54 | Patch13: system-virtualenv.patch | |
d3fcfd29 | 55 | Patch14: gyp-slashism.patch |
743c829e | 56 | URL: http://www.pld-linux.org/Packages/Iceweasel |
16a55804 | 57 | BuildRequires: GConf2-devel >= 1.2.1 |
bcf987c2 | 58 | BuildRequires: OpenGL-devel |
4a6ac63f | 59 | BuildRequires: ImageMagick |
f26228e9 | 60 | BuildRequires: ImageMagick-coder-png |
72c3acea | 61 | BuildRequires: alsa-lib-devel |
64fd9f61 | 62 | BuildRequires: automake |
526c2cf9 | 63 | BuildRequires: bzip2-devel |
ec8ea9c6 | 64 | BuildRequires: cairo-devel >= 1.10.2-5 |
72c3acea | 65 | BuildRequires: dbus-glib-devel >= 0.60 |
11a3f988 | 66 | BuildRequires: glib2-devel >= 1:2.20 |
58f7b9e2 | 67 | BuildRequires: gtk+2-devel >= 2:2.14 |
25f97994 | 68 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
1668aa38 | 69 | BuildRequires: hunspell-devel |
64fd9f61 | 70 | BuildRequires: libIDL-devel >= 0.8.0 |
526c2cf9 | 71 | BuildRequires: libdnet-devel |
fa89a5f1 | 72 | BuildRequires: libevent-devel >= 1.4.7 |
58f7b9e2 JB |
73 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
74 | BuildRequires: libffi-devel >= 6:3.0.9 | |
25f97994 | 75 | %{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0} |
526c2cf9 | 76 | BuildRequires: libiw-devel |
dab03435 | 77 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
64fd9f61 | 78 | BuildRequires: libjpeg-devel >= 6b |
dab03435 | 79 | BuildRequires: libjpeg-turbo-devel |
f6c34380 | 80 | BuildRequires: libnotify-devel >= 0.4 |
25f97994 | 81 | BuildRequires: libpng(APNG)-devel >= 0.10 |
11a3f988 | 82 | BuildRequires: libpng-devel >= 1.5.13 |
64fd9f61 | 83 | BuildRequires: libstdc++-devel |
58f7b9e2 | 84 | BuildRequires: libvpx-devel >= 1.0.0 |
837c600d JR |
85 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
86 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
18df252d | 87 | BuildRequires: pango-devel >= 1:1.14.0 |
64fd9f61 | 88 | BuildRequires: perl-modules >= 5.004 |
89 | BuildRequires: pkgconfig | |
58f7b9e2 | 90 | BuildRequires: pkgconfig(libffi) >= 3.0.9 |
72c3acea | 91 | BuildRequires: python-modules |
aa946041 | 92 | %{?with_pgo:BuildRequires: python-modules-sqlite} |
6a75f2e2 | 93 | BuildRequires: python-virtualenv |
25f97994 | 94 | BuildRequires: rpm >= 4.4.9-56 |
28e49f45 | 95 | BuildRequires: rpmbuild(macros) >= 1.601 |
47c1233f | 96 | BuildRequires: sqlite3-devel >= 3.7.15.2 |
72c3acea | 97 | BuildRequires: startup-notification-devel >= 0.8 |
fa89a5f1 | 98 | BuildRequires: xorg-lib-libXScrnSaver-devel |
18df252d | 99 | BuildRequires: xorg-lib-libXext-devel |
18df252d | 100 | BuildRequires: xorg-lib-libXinerama-devel |
64fd9f61 | 101 | BuildRequires: xorg-lib-libXt-devel |
25f97994 | 102 | %if %{with xulrunner} |
c4d76d99 | 103 | BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver} |
25f97994 | 104 | %endif |
64fd9f61 | 105 | BuildRequires: zip |
106 | BuildRequires: zlib-devel >= 1.2.3 | |
636318c9 | 107 | Requires(post): mktemp >= 1.5-18 |
8309582e | 108 | Requires: desktop-file-utils |
28e49f45 | 109 | Requires: hicolor-icon-theme |
43cd2d9e ER |
110 | %if %{with xulrunner} |
111 | %requires_eq_to xulrunner xulrunner-devel | |
112 | %else | |
25f97994 | 113 | Requires: browser-plugins >= 2.0 |
9bc7e413 | 114 | Requires: cairo >= 1.10.2-5 |
18df252d | 115 | Requires: dbus-glib >= 0.60 |
11a3f988 | 116 | Requires: glib2 >= 1:2.20 |
58f7b9e2 | 117 | Requires: gtk+2 >= 2:2.14 |
dab03435 | 118 | Requires: libjpeg-turbo |
11a3f988 | 119 | Requires: libpng >= 1.5.13 |
25f97994 | 120 | Requires: libpng(APNG) >= 0.10 |
3c179095 | 121 | Requires: myspell-common |
837c600d JR |
122 | Requires: nspr >= 1:%{nspr_ver} |
123 | Requires: nss >= 1:%{nss_ver} | |
18df252d | 124 | Requires: pango >= 1:1.14.0 |
edeacddd | 125 | Requires: sqlite3 >= %{sqlite_build_version} |
18df252d | 126 | Requires: startup-notification >= 0.8 |
25f97994 | 127 | %endif |
64fd9f61 | 128 | Provides: wwwbrowser |
25f97994 | 129 | Obsoletes: mozilla-firebird |
130 | Obsoletes: mozilla-firefox | |
131 | Obsoletes: mozilla-firefox-lang-en < 2.0.0.8-3 | |
132 | Obsoletes: mozilla-firefox-libs | |
8f1f83ff | 133 | Conflicts: iceweasel-lang-resources < %{version} |
64fd9f61 | 134 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
135 | ||
10a03c86 AM |
136 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
137 | ||
18df252d JB |
138 | # don't satisfy other packages |
139 | %define _noautoprovfiles %{_libdir}/%{name} | |
0044292b | 140 | %if %{without xulrunner} |
25f97994 | 141 | # and as we don't provide them, don't require either |
0044292b JB |
142 | %define _noautoreq libmozalloc.so libmozjs.so libxpcom.so libxul.so |
143 | %endif | |
64fd9f61 | 144 | |
64fd9f61 | 145 | %description |
25f97994 | 146 | Iceweasel is an open-source web browser, designed for standards |
147 | compliance, performance and portability. | |
64fd9f61 | 148 | |
3c179095 ZU |
149 | %description -l hu.UTF-8 |
150 | Iceweasel egy nyílt forrású webböngésző, hatékonyságra és | |
151 | hordozhatóságra tervezve. | |
152 | ||
6d49053f | 153 | %description -l pl.UTF-8 |
25f97994 | 154 | Iceweasel jest przeglądarką WWW rozpowszechnianą zgodnie z ideami |
3c179095 ZU |
155 | ruchu otwartego oprogramowania oraz tworzoną z myślą o zgodności ze |
156 | standardami, wydajnością i przenośnością. | |
64fd9f61 | 157 | |
25f97994 | 158 | %prep |
ed3ba396 | 159 | %setup -qc |
dca77f61 | 160 | mv -f mozilla-release mozilla |
ed3ba396 | 161 | %setup -q -T -D -a1 |
25f97994 | 162 | cd mozilla |
6263e082 | 163 | /bin/sh %{SOURCE2} |
64fd9f61 | 164 | |
e73b7e54 | 165 | %patch0 -p1 |
64fd9f61 | 166 | |
25f97994 | 167 | %if "%{cc_version}" < "3.4" |
168 | %patch2 -p2 | |
169 | %endif | |
170 | ||
25f97994 | 171 | %patch7 -p1 |
0b8ebf73 | 172 | %patch8 -p1 |
9f488603 | 173 | %patch9 -p2 |
d6613925 | 174 | %patch10 -p2 |
93241bee | 175 | %patch11 -p2 |
5a357718 | 176 | %patch12 -p2 |
6a75f2e2 | 177 | %patch13 -p2 |
d3fcfd29 | 178 | %patch14 -p2 |
b72a40b3 | 179 | |
6ae184fe AM |
180 | # config/rules.mk is patched by us and js/src/config/rules.mk |
181 | # is supposed to be exact copy | |
182 | cp -a config/rules.mk js/src/config/rules.mk | |
183 | ||
aa946041 ŁK |
184 | %if %{with pgo} |
185 | sed -i -e 's@__BROWSER_PATH__@"../../dist/bin/iceweasel-bin"@' build/automation.py.in | |
186 | %endif | |
187 | ||
25f97994 | 188 | %build |
189 | cd mozilla | |
64fd9f61 | 190 | cp -f %{_datadir}/automake/config.* build/autoconf |
64fd9f61 | 191 | |
c4d76d99 ER |
192 | cat << EOF > .mozconfig |
193 | . \$topsrcdir/browser/config/mozconfig | |
64fd9f61 | 194 | |
25f97994 | 195 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu} |
b084e3e0 | 196 | # parallel build fails on _xpidlgen/ |
b2b1875b ŁK |
197 | %if %{without xulrunner} |
198 | mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags} | |
199 | %endif | |
aa946041 | 200 | mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ @MOZ_OBJDIR@/_profile/pgo/profileserver.py' |
25f97994 | 201 | |
202 | # Options for 'configure' (same as command-line options). | |
64fd9f61 | 203 | ac_add_options --prefix=%{_prefix} |
204 | ac_add_options --exec-prefix=%{_exec_prefix} | |
205 | ac_add_options --bindir=%{_bindir} | |
206 | ac_add_options --sbindir=%{_sbindir} | |
207 | ac_add_options --sysconfdir=%{_sysconfdir} | |
208 | ac_add_options --datadir=%{_datadir} | |
209 | ac_add_options --includedir=%{_includedir} | |
210 | ac_add_options --libdir=%{_libdir} | |
211 | ac_add_options --libexecdir=%{_libexecdir} | |
212 | ac_add_options --localstatedir=%{_localstatedir} | |
213 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
214 | ac_add_options --mandir=%{_mandir} | |
215 | ac_add_options --infodir=%{_infodir} | |
11f8ef54 | 216 | ac_add_options --disable-elf-hack |
64fd9f61 | 217 | %if %{?debug:1}0 |
25f97994 | 218 | ac_add_options --disable-optimize |
64fd9f61 | 219 | ac_add_options --enable-debug |
220 | ac_add_options --enable-debug-modules | |
25f97994 | 221 | ac_add_options --enable-debugger-info-modules |
222 | ac_add_options --enable-crash-on-assert | |
64fd9f61 | 223 | %else |
224 | ac_add_options --disable-debug | |
225 | ac_add_options --disable-debug-modules | |
25f97994 | 226 | ac_add_options --disable-logging |
227 | ac_add_options --enable-optimize="%{rpmcflags} -Os" | |
64fd9f61 | 228 | %endif |
82955f33 ER |
229 | ac_add_options --disable-strip |
230 | ac_add_options --disable-strip-libs | |
25f97994 | 231 | %if %{with tests} |
232 | ac_add_options --enable-tests | |
233 | %else | |
234 | ac_add_options --disable-tests | |
235 | %endif | |
236 | %if %{with gnomeui} | |
64fd9f61 | 237 | ac_add_options --enable-gnomeui |
238 | %else | |
64fd9f61 | 239 | ac_add_options --disable-gnomeui |
240 | %endif | |
25f97994 | 241 | ac_add_options --disable-gnomevfs |
25f97994 | 242 | ac_add_options --disable-crashreporter |
64fd9f61 | 243 | ac_add_options --disable-installer |
25f97994 | 244 | ac_add_options --disable-javaxpcom |
245 | ac_add_options --disable-updater | |
0d0192cb | 246 | ac_add_options --enable-gio |
d1ab36a9 ER |
247 | ac_add_options --enable-libxul |
248 | ac_add_options --enable-pango | |
0d0192cb | 249 | ac_add_options --enable-shared-js |
25f97994 | 250 | ac_add_options --enable-startup-notification |
64fd9f61 | 251 | ac_add_options --enable-system-cairo |
01385fad | 252 | ac_add_options --enable-system-hunspell |
25f97994 | 253 | ac_add_options --enable-system-sqlite |
64fd9f61 | 254 | ac_add_options --with-distribution-id=org.pld-linux |
25f97994 | 255 | ac_add_options --with-branding=iceweasel/branding |
256 | %if %{with xulrunner} | |
c4d76d99 | 257 | ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) |
25f97994 | 258 | %endif |
64fd9f61 | 259 | ac_add_options --with-pthreads |
82955f33 | 260 | ac_add_options --with-system-bz2 |
58f7b9e2 | 261 | ac_add_options --with-system-ffi |
64fd9f61 | 262 | ac_add_options --with-system-jpeg |
fa89a5f1 | 263 | ac_add_options --with-system-libevent |
0d0192cb | 264 | ac_add_options --with-system-libvpx |
64fd9f61 | 265 | ac_add_options --with-system-nspr |
266 | ac_add_options --with-system-nss | |
267 | ac_add_options --with-system-png | |
268 | ac_add_options --with-system-zlib | |
25f97994 | 269 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
64fd9f61 | 270 | EOF |
271 | ||
aa946041 ŁK |
272 | %if %{with pgo} |
273 | export DISPLAY=:100 | |
274 | %{__make} -f client.mk profiledbuild \ | |
275 | DESTDIR=obj-%{_target_cpu}/dist \ | |
276 | STRIP="/bin/true" \ | |
277 | CC="%{__cc}" \ | |
278 | CXX="%{__cxx}" | |
279 | %else | |
dc152da8 | 280 | %{__make} -f client.mk build \ |
25f97994 | 281 | STRIP="/bin/true" \ |
282 | CC="%{__cc}" \ | |
283 | CXX="%{__cxx}" | |
aa946041 | 284 | %endif |
64fd9f61 | 285 | |
286 | %install | |
287 | rm -rf $RPM_BUILD_ROOT | |
25f97994 | 288 | cd mozilla |
64fd9f61 | 289 | install -d \ |
25f97994 | 290 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \ |
28e49f45 | 291 | $RPM_BUILD_ROOT%{_desktopdir} \ |
3e529974 JR |
292 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
293 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins | |
64fd9f61 | 294 | |
25f97994 | 295 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
64fd9f61 | 296 | |
3e529974 JR |
297 | cd obj-%{_target_cpu} |
298 | %{__make} -C browser/installer stage-package \ | |
25f97994 | 299 | DESTDIR=$RPM_BUILD_ROOT \ |
3e529974 | 300 | installdir=%{_libdir}/%{name} \ |
25f97994 | 301 | PKG_SKIP_STRIP=1 |
302 | ||
3e529974 JR |
303 | %{__make} -C iceweasel/branding install \ |
304 | DESTDIR=$RPM_BUILD_ROOT | |
305 | ||
306 | cp -a dist/iceweasel/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ | |
ba83c719 | 307 | |
61766208 | 308 | %if %{with xulrunner} |
881b0f95 AM |
309 | # >= 5.0 seems to require this |
310 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
311 | %endif | |
312 | ||
25f97994 | 313 | # move arch independant ones to datadir |
314 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome | |
315 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
316 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
317 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/icons | |
318 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules | |
319 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins | |
320 | %if %{without xulrunner} | |
3bdd333c | 321 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs.js |
25f97994 | 322 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res |
323 | %endif | |
95d7e788 | 324 | |
25f97994 | 325 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
326 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
327 | ln -s ../../share/%{name}/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions | |
328 | ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules | |
329 | ln -s ../../share/%{name}/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/icons | |
330 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins | |
331 | %if %{without xulrunner} | |
3bdd333c | 332 | ln -s ../../share/%{name}/greprefs.js $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js |
25f97994 | 333 | ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res |
334 | %endif | |
64fd9f61 | 335 | |
25f97994 | 336 | %if %{without xulrunner} |
b2c3c458 | 337 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
25f97994 | 338 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
0044292b JB |
339 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation |
340 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation | |
25f97994 | 341 | %endif |
64fd9f61 | 342 | |
6263e082 | 343 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE4} > $RPM_BUILD_ROOT%{_bindir}/iceweasel |
57727a75 | 344 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/iceweasel |
25f97994 | 345 | ln -s iceweasel $RPM_BUILD_ROOT%{_bindir}/firefox |
346 | ln -s iceweasel $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox | |
64fd9f61 | 347 | |
28e49f45 | 348 | # install icons and desktop file |
3e529974 | 349 | cp iceweasel/branding/{mozicon,default}128.png |
28e49f45 MB |
350 | for i in 16 32 48 64 128; do |
351 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps | |
3e529974 | 352 | cp -a iceweasel/branding/default${i}.png \ |
28e49f45 MB |
353 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/iceweasel.png |
354 | done | |
355 | ||
c4d76d99 | 356 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
64fd9f61 | 357 | |
55f0784a | 358 | # install our settings |
aa62deae | 359 | %if %{without xulrunner} |
0e22539a | 360 | cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/pref/vendor.js |
aa62deae JR |
361 | %else |
362 | cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/preferences/vendor.js | |
363 | %endif | |
55f0784a JR |
364 | |
365 | %if "%{pld_release}" == "ac" | |
aa62deae JR |
366 | %if %{without xulrunner} |
367 | cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/pref/vendor.js | |
368 | %else | |
55f0784a JR |
369 | cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/preferences/vendor.js |
370 | %endif | |
aa62deae | 371 | %endif |
55f0784a | 372 | |
fa89a5f1 | 373 | # files created by iceweasel -register |
25f97994 | 374 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
375 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
64fd9f61 | 376 | |
56be5f03 | 377 | cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate |
64fd9f61 | 378 | #!/bin/sh |
379 | umask 022 | |
b2c3c458 | 380 | rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
64fd9f61 | 381 | |
25f97994 | 382 | # it attempts to touch files in $HOME/.mozilla |
383 | # beware if you run this with sudo!!! | |
384 | export HOME=$(mktemp -d) | |
385 | # also TMPDIR could be pointing to sudo user's homedir | |
386 | unset TMPDIR TMP || : | |
64fd9f61 | 387 | |
25f97994 | 388 | %{_libdir}/%{name}/iceweasel -register |
64fd9f61 | 389 | |
b2c3c458 | 390 | rm -rf $HOME |
64fd9f61 | 391 | EOF |
18df252d | 392 | chmod 755 $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate |
64fd9f61 | 393 | |
394 | %clean | |
395 | rm -rf $RPM_BUILD_ROOT | |
396 | ||
25f97994 | 397 | %pretrans |
398 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
399 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
400 | fi | |
3bdd333c | 401 | for d in chrome defaults extensions greprefs.js icons res searchplugins; do |
25f97994 | 402 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then |
403 | install -d %{_datadir}/%{name} | |
404 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
405 | fi | |
406 | done | |
407 | exit 0 | |
408 | ||
64fd9f61 | 409 | %post |
3e92c67c | 410 | %{_sbindir}/%{name}-chrome+xpcom-generate |
25f97994 | 411 | %update_browser_plugins |
28e49f45 | 412 | %update_icon_cache hicolor |
8309582e | 413 | %update_desktop_database |
64fd9f61 | 414 | |
95d7e788 | 415 | %postun |
25f97994 | 416 | if [ "$1" = 0 ]; then |
417 | %update_browser_plugins | |
28e49f45 | 418 | %update_icon_cache hicolor |
64fd9f61 | 419 | fi |
420 | ||
64fd9f61 | 421 | %files |
422 | %defattr(644,root,root,755) | |
25f97994 | 423 | %attr(755,root,root) %{_bindir}/%{name} |
424 | %attr(755,root,root) %{_bindir}/firefox | |
425 | %attr(755,root,root) %{_bindir}/mozilla-firefox | |
426 | %attr(755,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate | |
427 | ||
25f97994 | 428 | # browser plugins v2 |
429 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
430 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
64fd9f61 | 431 | |
25f97994 | 432 | %dir %{_libdir}/%{name} |
ed3ba396 | 433 | %if %{without xulrunner} |
0044292b JB |
434 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so |
435 | %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so | |
436 | %attr(755,root,root) %{_libdir}/%{name}/libxpcom.so | |
437 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so | |
ed3ba396 | 438 | %endif |
25f97994 | 439 | %{_libdir}/%{name}/blocklist.xml |
440 | ||
441 | %if %{with crashreporter} | |
442 | %{_libdir}/%{name}/crashreporter | |
443 | %{_libdir}/%{name}/crashreporter-override.ini | |
444 | %{_libdir}/%{name}/crashreporter.ini | |
445 | %{_libdir}/%{name}/Throbber-small.gif | |
446 | %endif | |
447 | ||
448 | # config? | |
25f97994 | 449 | %{_libdir}/%{name}/application.ini |
0d0192cb | 450 | %{_libdir}/%{name}/chrome.manifest |
25f97994 | 451 | |
452 | %dir %{_libdir}/%{name}/components | |
453 | ||
8a36ee5c | 454 | %{_libdir}/%{name}/components/ChromeProfileMigrator.js |
57727a75 JB |
455 | %{_libdir}/%{name}/components/DownloadsStartup.js |
456 | %{_libdir}/%{name}/components/DownloadsUI.js | |
25f97994 | 457 | %{_libdir}/%{name}/components/FeedConverter.js |
458 | %{_libdir}/%{name}/components/FeedWriter.js | |
c11dc56f | 459 | %{_libdir}/%{name}/components/FirefoxProfileMigrator.js |
57727a75 | 460 | %{_libdir}/%{name}/components/PageThumbsProtocol.js |
0d0192cb | 461 | %{_libdir}/%{name}/components/PlacesProtocolHandler.js |
57727a75 | 462 | %{_libdir}/%{name}/components/ProfileMigrator.js |
67c1f3e7 JB |
463 | %{_libdir}/%{name}/components/WebContentConverter.js |
464 | %{_libdir}/%{name}/components/browser.xpt | |
25f97994 | 465 | %{_libdir}/%{name}/components/fuelApplication.js |
466 | %{_libdir}/%{name}/components/nsBrowserContentHandler.js | |
467 | %{_libdir}/%{name}/components/nsBrowserGlue.js | |
3e529974 | 468 | %{_libdir}/%{name}/components/nsPrivateBrowsingServiceObsolete.js |
25f97994 | 469 | %{_libdir}/%{name}/components/nsSessionStartup.js |
470 | %{_libdir}/%{name}/components/nsSessionStore.js | |
471 | %{_libdir}/%{name}/components/nsSetDefaultBrowser.js | |
472 | %{_libdir}/%{name}/components/nsSidebar.js | |
0d0192cb MB |
473 | |
474 | %{_libdir}/%{name}/components/components.manifest | |
475 | %{_libdir}/%{name}/components/interfaces.manifest | |
476 | ||
25f97994 | 477 | %if %{without xulrunner} |
2c50337f | 478 | %{_libdir}/%{name}/dependentlibs.list |
25f97994 | 479 | %{_libdir}/%{name}/platform.ini |
0e22539a JR |
480 | %{_libdir}/%{name}/components/addonManager.js |
481 | %{_libdir}/%{name}/components/Aitc.js | |
482 | %{_libdir}/%{name}/components/AlarmsManager.js | |
483 | %{_libdir}/%{name}/components/amContentHandler.js | |
484 | %{_libdir}/%{name}/components/amWebInstallListener.js | |
2c50337f ŁK |
485 | %{_libdir}/%{name}/components/AppsService.js |
486 | %{_libdir}/%{name}/components/BrowserElementParent.js | |
0e22539a | 487 | %{_libdir}/%{name}/components/ColorAnalyzer.js |
48b2842a | 488 | %{_libdir}/%{name}/components/ConsoleAPI.js |
2c50337f | 489 | %{_libdir}/%{name}/components/ContactManager.js |
48b2842a | 490 | %{_libdir}/%{name}/components/contentAreaDropListener.js |
491 | %{_libdir}/%{name}/components/contentSecurityPolicy.js | |
492 | %{_libdir}/%{name}/components/crypto-SDR.js | |
0e22539a JR |
493 | %{_libdir}/%{name}/components/FeedProcessor.js |
494 | %{_libdir}/%{name}/components/GPSDGeolocationProvider.js | |
67c1f3e7 | 495 | %{_libdir}/%{name}/components/jsconsole-clhandler.js |
2c50337f | 496 | %{_libdir}/%{name}/components/messageWakeupService.js |
0e22539a | 497 | %{_libdir}/%{name}/components/NetworkGeolocationProvider.js |
8088fa6d | 498 | %{_libdir}/%{name}/components/nsBadCertHandler.js |
25f97994 | 499 | %{_libdir}/%{name}/components/nsBlocklistService.js |
500 | %{_libdir}/%{name}/components/nsContentDispatchChooser.js | |
501 | %{_libdir}/%{name}/components/nsContentPrefService.js | |
502 | %{_libdir}/%{name}/components/nsDefaultCLH.js | |
0e22539a | 503 | %{_libdir}/%{name}/components/nsDOMIdentity.js |
25f97994 | 504 | %{_libdir}/%{name}/components/nsDownloadManagerUI.js |
25f97994 | 505 | %{_libdir}/%{name}/components/nsFilePicker.js |
07008b88 | 506 | %{_libdir}/%{name}/components/nsFormAutoComplete.js |
48b2842a | 507 | %{_libdir}/%{name}/components/nsFormHistory.js |
25f97994 | 508 | %{_libdir}/%{name}/components/nsHandlerService.js |
509 | %{_libdir}/%{name}/components/nsHelperAppDlg.js | |
0e22539a | 510 | %{_libdir}/%{name}/components/nsIDService.js |
69dd136c | 511 | %{_libdir}/%{name}/components/nsINIProcessor.js |
48b2842a | 512 | %{_libdir}/%{name}/components/nsInputListAutoComplete.js |
25f97994 | 513 | %{_libdir}/%{name}/components/nsLivemarkService.js |
514 | %{_libdir}/%{name}/components/nsLoginInfo.js | |
515 | %{_libdir}/%{name}/components/nsLoginManager.js | |
516 | %{_libdir}/%{name}/components/nsLoginManagerPrompter.js | |
07008b88 | 517 | %{_libdir}/%{name}/components/nsPlacesAutoComplete.js |
48b2842a | 518 | %{_libdir}/%{name}/components/nsPlacesExpiration.js |
519 | %{_libdir}/%{name}/components/nsPrompter.js | |
ed3ba396 SP |
520 | %{_libdir}/%{name}/components/nsSearchService.js |
521 | %{_libdir}/%{name}/components/nsSearchSuggestions.js | |
25f97994 | 522 | %{_libdir}/%{name}/components/nsTaggingService.js |
0e22539a | 523 | %{_libdir}/%{name}/components/nsUpdateTimerManager.js |
0b404f48 | 524 | %{_libdir}/%{name}/components/nsUrlClassifierHashCompleter.js |
25f97994 | 525 | %{_libdir}/%{name}/components/nsUrlClassifierLib.js |
526 | %{_libdir}/%{name}/components/nsUrlClassifierListManager.js | |
0e22539a | 527 | %{_libdir}/%{name}/components/nsURLFormatter.js |
25f97994 | 528 | %{_libdir}/%{name}/components/nsWebHandlerApp.js |
0e22539a JR |
529 | %{_libdir}/%{name}/components/PeerConnection.js |
530 | %{_libdir}/%{name}/components/PermissionSettings.js | |
531 | %{_libdir}/%{name}/components/PlacesCategoriesStarter.js | |
532 | %{_libdir}/%{name}/components/SettingsManager.js | |
533 | %{_libdir}/%{name}/components/SiteSpecificUserAgent.js | |
25f97994 | 534 | %{_libdir}/%{name}/components/storage-Legacy.js |
ed3ba396 | 535 | %{_libdir}/%{name}/components/storage-mozStorage.js |
0e22539a JR |
536 | %{_libdir}/%{name}/components/TCPSocket.js |
537 | %{_libdir}/%{name}/components/TCPSocketParentIntermediary.js | |
538 | %{_libdir}/%{name}/components/TelemetryPing.js | |
25f97994 | 539 | %{_libdir}/%{name}/components/txEXSLTRegExFunctions.js |
0e22539a JR |
540 | %{_libdir}/%{name}/components/Weave.js |
541 | %{_libdir}/%{name}/components/Webapps.js | |
25f97994 | 542 | %endif |
543 | ||
436d6dc0 JR |
544 | %{_libdir}/%{name}/webapprt |
545 | %attr(755,root,root) %{_libdir}/%{name}/webapprt-stub | |
546 | ||
25f97994 | 547 | %attr(755,root,root) %{_libdir}/%{name}/components/libbrowsercomps.so |
25f97994 | 548 | %if %{without xulrunner} |
549 | %attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so | |
25f97994 | 550 | %endif |
551 | ||
25f97994 | 552 | %if %{without xulrunner} |
553 | %attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so | |
554 | %endif | |
25f97994 | 555 | |
3d856204 | 556 | %attr(755,root,root) %{_libdir}/%{name}/iceweasel |
ba83c719 | 557 | %dir %{_libdir}/%{name}/plugins |
25f97994 | 558 | %if %{without xulrunner} |
d1ab36a9 | 559 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
25f97994 | 560 | %attr(755,root,root) %{_libdir}/%{name}/iceweasel-bin |
25f97994 | 561 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client |
69dd136c | 562 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
25f97994 | 563 | %endif |
ba83c719 | 564 | |
28e49f45 | 565 | %{_iconsdir}/hicolor/*/*/iceweasel.png |
25f97994 | 566 | %{_desktopdir}/iceweasel.desktop |
567 | ||
568 | # symlinks | |
569 | %{_libdir}/%{name}/chrome | |
570 | %{_libdir}/%{name}/defaults | |
571 | %{_libdir}/%{name}/extensions | |
572 | %{_libdir}/%{name}/icons | |
573 | %{_libdir}/%{name}/modules | |
574 | %{_libdir}/%{name}/searchplugins | |
61766208 MB |
575 | %if %{with xulrunner} |
576 | %{_libdir}/%{name}/xulrunner | |
d60b15b4 | 577 | %else |
25f97994 | 578 | %{_libdir}/%{name}/dictionaries |
0044292b | 579 | %{_libdir}/%{name}/hyphenation |
48b2842a | 580 | %{_libdir}/%{name}/greprefs.js |
25f97994 | 581 | %{_libdir}/%{name}/res |
582 | %endif | |
583 | ||
25f97994 | 584 | %dir %{_datadir}/%{name} |
585 | %{_datadir}/%{name}/chrome | |
586 | %{_datadir}/%{name}/defaults | |
587 | %{_datadir}/%{name}/icons | |
588 | %{_datadir}/%{name}/modules | |
589 | %{_datadir}/%{name}/searchplugins | |
590 | %if %{without xulrunner} | |
48b2842a | 591 | %{_datadir}/%{name}/greprefs.js |
25f97994 | 592 | %{_datadir}/%{name}/res |
593 | %endif | |
594 | ||
595 | %dir %{_datadir}/%{name}/extensions | |
25f97994 | 596 | # the signature of the default theme |
597 | %{_datadir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
64fd9f61 | 598 | |
fa89a5f1 | 599 | # files created by iceweasel -register |
25f97994 | 600 | %ghost %{_libdir}/%{name}/components/compreg.dat |
601 | %ghost %{_libdir}/%{name}/components/xpti.dat |