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