]>
Commit | Line | Data |
---|---|---|
82f606de | 1 | # NOTE: PLD distributes iceweasel instead |
dfdf0ac8 | 2 | # |
0d00fa1b | 3 | # TODO: |
cec5c010 ER |
4 | # - (12:22:58) patrys: can you also move _libdir/mozilla-firefox to just _libdir/firefox? |
5 | # (12:23:25) patrys: it's not like we ship official firefox | |
0af918cf | 6 | # - fix wrapper script to allow playing with profiles (must not use -remote) |
2f695f11 | 7 | # |
ca6a7239 | 8 | # Conditional build: |
4ab16c9e | 9 | %bcond_with tests # enable tests (whatever they check) |
2a673919 | 10 | %bcond_without kerberos # disable krb5 support |
d97ddc70 | 11 | %bcond_without xulrunner # system xulrunner |
2a673919 | 12 | |
d97ddc70 JB |
13 | %if %{without xulrunner} |
14 | # The actual sqlite version (see RHBZ#480989): | |
15 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
16 | %endif | |
17 | ||
c5cd9be2 JB |
18 | %define nspr_ver 4.9.6 |
19 | %define nss_ver 3.15 | |
96ef4151 | 20 | |
52dbdf60 | 21 | Summary: Firefox Community Edition web browser |
948d1385 | 22 | Summary(pl.UTF-8): Firefox Community Edition - przeglądarka WWW |
ea721d92 | 23 | Name: mozilla-firefox |
c5cd9be2 | 24 | Version: 25.0 |
e6902292 | 25 | Release: 1 |
4ab16c9e | 26 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ |
51c0f20a | 27 | Group: X11/Applications/Networking |
96ef4151 | 28 | Source0: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}.source.tar.bz2 |
c5cd9be2 | 29 | # Source0-md5: 90ac047e83079a9046192c732e195329 |
96ef4151 JB |
30 | Source3: %{name}.desktop |
31 | Source4: %{name}.sh | |
c5cd9be2 JB |
32 | Source5: vendor.js |
33 | Source6: vendor-ac.js | |
64fa34f7 | 34 | Patch0: %{name}-branding.patch |
64fa34f7 JB |
35 | Patch7: %{name}-prefs.patch |
36 | Patch9: %{name}-no-subshell.patch | |
96ef4151 JB |
37 | Patch11: %{name}-middle_click_paste.patch |
38 | Patch12: %{name}-packaging.patch | |
96ef4151 | 39 | Patch13: %{name}-system-virtualenv.patch |
c5cd9be2 JB |
40 | Patch14: %{name}-gyp-slashism.patch |
41 | Patch15: %{name}-Disable-Firefox-Health-Report.patch | |
5f561b4c | 42 | URL: http://www.mozilla.org/projects/firefox/ |
9df03825 | 43 | BuildRequires: GConf2-devel >= 1.2.1 |
0fca8d8d | 44 | BuildRequires: OpenGL-devel |
d97ddc70 | 45 | BuildRequires: alsa-lib-devel |
e933d2a8 | 46 | BuildRequires: automake |
d97ddc70 | 47 | BuildRequires: bzip2-devel |
0fca8d8d | 48 | BuildRequires: cairo-devel >= 1.10.2-5 |
09328230 | 49 | BuildRequires: dbus-glib-devel >= 0.60 |
c5cd9be2 | 50 | BuildRequires: gcc-c++ >= 6:4.4 |
96ef4151 | 51 | BuildRequires: glib2-devel >= 1:2.20 |
b73005e5 | 52 | BuildRequires: gtk+2-devel >= 2:2.14 |
2a673919 | 53 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
d97ddc70 | 54 | BuildRequires: hunspell-devel |
8a88dcf7 | 55 | BuildRequires: libIDL-devel >= 0.8.0 |
d97ddc70 | 56 | BuildRequires: libdnet-devel |
0fca8d8d | 57 | BuildRequires: libevent-devel >= 1.4.7 |
4ac83cfe JB |
58 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
59 | BuildRequires: libffi-devel >= 6:3.0.9 | |
d97ddc70 | 60 | BuildRequires: libiw-devel |
96ef4151 | 61 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
ea721d92 | 62 | BuildRequires: libjpeg-devel >= 6b |
96ef4151 | 63 | BuildRequires: libjpeg-turbo-devel |
17eb28c6 | 64 | BuildRequires: libnotify-devel >= 0.4 |
2a673919 | 65 | BuildRequires: libpng(APNG)-devel >= 0.10 |
96ef4151 | 66 | BuildRequires: libpng-devel >= 1.5.13 |
c5cd9be2 | 67 | BuildRequires: libstdc++-devel >= 6:4.4 |
b73005e5 | 68 | BuildRequires: libvpx-devel >= 1.0.0 |
96ef4151 JB |
69 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
70 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
82f606de | 71 | BuildRequires: pango-devel >= 1:1.14.0 |
56cf7ebf | 72 | BuildRequires: perl-modules >= 5.004 |
1bb00684 | 73 | BuildRequires: pkgconfig |
b73005e5 | 74 | BuildRequires: pkgconfig(libffi) >= 3.0.9 |
aef94f18 | 75 | BuildRequires: python-modules |
96ef4151 | 76 | BuildRequires: python-virtualenv |
6b1581cf | 77 | BuildRequires: rpm >= 4.4.9-56 |
9df03825 | 78 | BuildRequires: rpmbuild(macros) >= 1.601 |
c5cd9be2 | 79 | BuildRequires: sqlite3-devel >= 3.7.17 |
d97ddc70 | 80 | BuildRequires: startup-notification-devel >= 0.8 |
0fca8d8d | 81 | BuildRequires: xorg-lib-libXScrnSaver-devel |
446ffaab | 82 | BuildRequires: xorg-lib-libXext-devel |
446ffaab | 83 | BuildRequires: xorg-lib-libXinerama-devel |
de5abc0a | 84 | BuildRequires: xorg-lib-libXt-devel |
f99152f1 | 85 | %if %{with xulrunner} |
0fca8d8d | 86 | BuildRequires: xulrunner-devel >= 2:%{version} |
f99152f1 | 87 | %endif |
b0a3aa79 | 88 | BuildRequires: zip |
1dd3785b | 89 | BuildRequires: zlib-devel >= 1.2.3 |
f37c2ce5 | 90 | Requires(post): mktemp >= 1.5-18 |
96ef4151 | 91 | Requires: desktop-file-utils |
c5cd9be2 | 92 | Requires: hicolor-icon-theme |
d97ddc70 JB |
93 | %if %{with xulrunner} |
94 | %requires_eq_to xulrunner xulrunner-devel | |
95 | %else | |
1408fb17 | 96 | Requires: browser-plugins >= 2.0 |
0fca8d8d | 97 | Requires: cairo >= 1.10.2-5 |
82f606de | 98 | Requires: dbus-glib >= 0.60 |
96ef4151 | 99 | Requires: glib2 >= 1:2.20 |
b73005e5 | 100 | Requires: gtk+2 >= 2:2.14 |
96ef4151 JB |
101 | Requires: libjpeg-turbo |
102 | Requires: libpng >= 1.5.13 | |
2a673919 | 103 | Requires: libpng(APNG) >= 0.10 |
d97ddc70 | 104 | Requires: myspell-common |
96ef4151 JB |
105 | Requires: nspr >= 1:%{nspr_ver} |
106 | Requires: nss >= 1:%{nss_ver} | |
82f606de | 107 | Requires: pango >= 1:1.14.0 |
d97ddc70 | 108 | Requires: sqlite3 >= %{sqlite_build_version} |
82f606de | 109 | Requires: startup-notification >= 0.8 |
f99152f1 | 110 | %endif |
0d52cac8 | 111 | Provides: wwwbrowser |
51c0f20a | 112 | Obsoletes: mozilla-firebird |
2620301e | 113 | Obsoletes: mozilla-firefox-lang-en < 2.0.0.8-3 |
c2814220 | 114 | Obsoletes: mozilla-firefox-libs |
4ac83cfe | 115 | Conflicts: mozilla-firefox-lang-resources < %{version} |
ea721d92 | 116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
117 | ||
96ef4151 JB |
118 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
119 | ||
09328230 JB |
120 | # don't satisfy other packages (don't use %{name} here) |
121 | %define _noautoprovfiles %{_libdir}/mozilla-firefox | |
64fa34f7 | 122 | %if %{without xulrunner} |
4c7e703c | 123 | # and as we don't provide them, don't require either |
96ef4151 | 124 | %define _noautoreq libmozalloc.so libmozjs.so libxpcom.so libxul.so |
64fa34f7 | 125 | %endif |
c14d6140 | 126 | |
ea721d92 | 127 | %description |
52dbdf60 ER |
128 | Firefox Community Edition is an open-source web browser, designed for |
129 | standards compliance, performance and portability. | |
ea721d92 | 130 | |
eace6cdf | 131 | %description -l pl.UTF-8 |
c0bec9dd | 132 | Firefox Community Edition jest przeglądarką WWW rozpowszechnianą |
e236f127 | 133 | zgodnie z ideami ruchu otwartego oprogramowania oraz tworzoną z myślą |
134 | o zgodności ze standardami, wydajnością i przenośnością. | |
ea721d92 | 135 | |
136 | %prep | |
d97ddc70 | 137 | %setup -qc |
0fca8d8d | 138 | mv -f mozilla-release mozilla |
56143477 | 139 | cd mozilla |
d97ddc70 | 140 | |
d541162e | 141 | %patch0 -p1 |
d1eea1c3 | 142 | %patch7 -p1 |
64fa34f7 | 143 | %patch9 -p2 |
96ef4151 JB |
144 | %patch11 -p2 |
145 | %patch12 -p2 | |
146 | %patch13 -p2 | |
c5cd9be2 JB |
147 | %patch14 -p2 |
148 | %patch15 -p1 | |
29b16068 | 149 | |
438df47f JB |
150 | # config/rules.mk is patched by us and js/src/config/rules.mk |
151 | # is supposed to be exact copy | |
152 | cp -a config/rules.mk js/src/config/rules.mk | |
153 | ||
ea721d92 | 154 | %build |
56143477 | 155 | cd mozilla |
52befddb | 156 | cp -f %{_datadir}/automake/config.* build/autoconf |
52befddb | 157 | |
d97ddc70 JB |
158 | cat << EOF > .mozconfig |
159 | . \$topsrcdir/browser/config/mozconfig | |
52befddb | 160 | |
2620301e | 161 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu} |
96ef4151 JB |
162 | # parallel build fails on _xpidlgen/ |
163 | %if %{without xulrunner} | |
164 | mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags} | |
165 | %endif | |
c5cd9be2 | 166 | mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ @MOZ_OBJDIR@/_profile/pgo/profileserver.py' |
2620301e | 167 | |
f37c2ce5 | 168 | # Options for 'configure' (same as command-line options). |
c5cd9be2 JB |
169 | ac_add_options --build=%{_target_platform} |
170 | ac_add_options --host=%{_target_platform} | |
52befddb | 171 | ac_add_options --prefix=%{_prefix} |
172 | ac_add_options --exec-prefix=%{_exec_prefix} | |
173 | ac_add_options --bindir=%{_bindir} | |
174 | ac_add_options --sbindir=%{_sbindir} | |
175 | ac_add_options --sysconfdir=%{_sysconfdir} | |
176 | ac_add_options --datadir=%{_datadir} | |
177 | ac_add_options --includedir=%{_includedir} | |
178 | ac_add_options --libdir=%{_libdir} | |
179 | ac_add_options --libexecdir=%{_libexecdir} | |
180 | ac_add_options --localstatedir=%{_localstatedir} | |
181 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
182 | ac_add_options --mandir=%{_mandir} | |
183 | ac_add_options --infodir=%{_infodir} | |
cf471ce5 | 184 | %if %{?debug:1}0 |
f37c2ce5 | 185 | ac_add_options --disable-optimize |
52befddb | 186 | ac_add_options --enable-debug |
187 | ac_add_options --enable-debug-modules | |
f37c2ce5 ER |
188 | ac_add_options --enable-debugger-info-modules |
189 | ac_add_options --enable-crash-on-assert | |
52befddb | 190 | %else |
191 | ac_add_options --disable-debug | |
2620301e | 192 | ac_add_options --disable-debug-modules |
f37c2ce5 | 193 | ac_add_options --disable-logging |
2a673919 | 194 | ac_add_options --enable-optimize="%{rpmcflags} -Os" |
52befddb | 195 | %endif |
d97ddc70 JB |
196 | ac_add_options --disable-strip |
197 | ac_add_options --disable-strip-libs | |
c5cd9be2 | 198 | ac_add_options --disable-install-strip |
52befddb | 199 | %if %{with tests} |
200 | ac_add_options --enable-tests | |
c4f9bb37 | 201 | %else |
52befddb | 202 | ac_add_options --disable-tests |
c4f9bb37 | 203 | %endif |
c5cd9be2 JB |
204 | ac_add_options --disable-crashreporter |
205 | ac_add_options --disable-elf-dynstr-gc | |
206 | ac_add_options --disable-gconf | |
f37c2ce5 | 207 | ac_add_options --disable-gnomeui |
6800f9e1 | 208 | ac_add_options --disable-gnomevfs |
52befddb | 209 | ac_add_options --disable-installer |
f37c2ce5 | 210 | ac_add_options --disable-javaxpcom |
c5cd9be2 JB |
211 | ac_add_options --disable-long-long-warning |
212 | ac_add_options --disable-pedantic | |
f37c2ce5 | 213 | ac_add_options --disable-updater |
c5cd9be2 JB |
214 | ac_add_options --disable-xterm-updates |
215 | ac_add_options --enable-canvas | |
216 | ac_add_options --enable-default-toolkit=cairo-gtk2 | |
217 | ac_add_options --enable-extensions="default,permissions,gio" | |
0fca8d8d | 218 | ac_add_options --enable-gio |
d97ddc70 | 219 | ac_add_options --enable-libxul |
c5cd9be2 | 220 | ac_add_options --enable-mathml |
d97ddc70 | 221 | ac_add_options --enable-pango |
c5cd9be2 | 222 | ac_add_options --enable-readline |
0fca8d8d | 223 | ac_add_options --enable-shared-js |
2a673919 | 224 | ac_add_options --enable-startup-notification |
c5cd9be2 | 225 | ac_add_options --enable-svg |
52befddb | 226 | ac_add_options --enable-system-cairo |
c5cd9be2 | 227 | ac_add_options --enable-system-ffi |
d97ddc70 | 228 | ac_add_options --enable-system-hunspell |
dfdf0ac8 | 229 | ac_add_options --enable-system-sqlite |
c5cd9be2 JB |
230 | ac_add_options --enable-url-classifier |
231 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} | |
f37c2ce5 | 232 | ac_add_options --with-distribution-id=org.pld-linux |
f99152f1 | 233 | %if %{with xulrunner} |
d97ddc70 | 234 | ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) |
f99152f1 | 235 | %endif |
2a673919 | 236 | ac_add_options --with-pthreads |
d97ddc70 | 237 | ac_add_options --with-system-bz2 |
2620301e | 238 | ac_add_options --with-system-jpeg |
0fca8d8d JB |
239 | ac_add_options --with-system-libevent |
240 | ac_add_options --with-system-libvpx | |
52befddb | 241 | ac_add_options --with-system-nspr |
f37c2ce5 | 242 | ac_add_options --with-system-nss |
c5cd9be2 | 243 | ac_add_options --with-system-ply |
f37c2ce5 | 244 | ac_add_options --with-system-png |
2620301e | 245 | ac_add_options --with-system-zlib |
c5cd9be2 | 246 | ac_add_options --with-x |
52befddb | 247 | EOF |
33f81726 | 248 | |
0fca8d8d | 249 | %{__make} -f client.mk build \ |
2a673919 | 250 | STRIP="/bin/true" \ |
3d445135 | 251 | CC="%{__cc}" \ |
33f81726 | 252 | CXX="%{__cxx}" |
ea721d92 | 253 | |
254 | %install | |
255 | rm -rf $RPM_BUILD_ROOT | |
56143477 | 256 | cd mozilla |
45f27404 | 257 | install -d \ |
f37c2ce5 | 258 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \ |
c5cd9be2 JB |
259 | $RPM_BUILD_ROOT%{_desktopdir} \ |
260 | $RPM_BUILD_ROOT%{_datadir}/%{name}/browser \ | |
261 | $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/plugins | |
75e09104 | 262 | |
c5cd9be2 | 263 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins |
8bc15110 | 264 | |
2a673919 | 265 | %{__make} -C obj-%{_target_cpu}/browser/installer stage-package \ |
d541162e | 266 | DESTDIR=$RPM_BUILD_ROOT \ |
c5cd9be2 | 267 | installdir=%{_libdir}/%{name} \ |
f37c2ce5 | 268 | PKG_SKIP_STRIP=1 |
ea721d92 | 269 | |
c5cd9be2 | 270 | cp -a obj-%{_target_cpu}/dist/firefox/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
d97ddc70 | 271 | |
0fca8d8d JB |
272 | %if %{with xulrunner} |
273 | # >= 5.0 seems to require this | |
274 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
275 | %endif | |
276 | ||
f86547d4 | 277 | # move arch independant ones to datadir |
c5cd9be2 JB |
278 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/chrome |
279 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/icons | |
280 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/searchplugins | |
f99152f1 | 281 | %if %{without xulrunner} |
c5cd9be2 JB |
282 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults |
283 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/{pref,preferences} | |
284 | %else | |
285 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults | |
f99152f1 | 286 | %endif |
d97ddc70 | 287 | |
c5cd9be2 JB |
288 | ln -s ../../../share/%{name}/browser/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome |
289 | ln -s ../../../share/%{name}/browser/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults | |
290 | ln -s ../../../share/%{name}/browser/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons | |
291 | ln -s ../../../share/%{name}/browser/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/searchplugins | |
f86547d4 | 292 | |
f99152f1 | 293 | %if %{without xulrunner} |
f1613d3d | 294 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
4d687af8 | 295 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
f99152f1 | 296 | %endif |
4d687af8 | 297 | |
96ef4151 | 298 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE4} > $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox |
82f606de | 299 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox |
8bc15110 | 300 | ln -s mozilla-firefox $RPM_BUILD_ROOT%{_bindir}/firefox |
ea721d92 | 301 | |
c5cd9be2 JB |
302 | # install icons and desktop file |
303 | for i in 48 64; do | |
304 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps | |
305 | cp -a browser/branding/unofficial/content/icon${i}.png \ | |
306 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/mozilla-firefox.png | |
307 | done | |
308 | ||
96ef4151 | 309 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
ea721d92 | 310 | |
c5cd9be2 JB |
311 | # install our settings |
312 | %if "%{pld_release}" == "ac" | |
313 | cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js | |
314 | %else | |
315 | cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js | |
316 | %endif | |
317 | ||
d97ddc70 | 318 | # files created by firefox -register |
c5cd9be2 JB |
319 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/components/compreg.dat |
320 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/components/xpti.dat | |
f37c2ce5 ER |
321 | |
322 | cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate | |
6d77929c | 323 | #!/bin/sh |
050f03d2 | 324 | umask 022 |
c5cd9be2 | 325 | rm -f %{_libdir}/%{name}/browser/components/{compreg,xpti}.dat |
3eeab518 | 326 | |
f37c2ce5 ER |
327 | # it attempts to touch files in $HOME/.mozilla |
328 | # beware if you run this with sudo!!! | |
329 | export HOME=$(mktemp -d) | |
330 | # also TMPDIR could be pointing to sudo user's homedir | |
331 | unset TMPDIR TMP || : | |
3eeab518 | 332 | |
6162f349 | 333 | %{_libdir}/%{name}/firefox -register |
3eeab518 | 334 | |
56143477 | 335 | rm -rf $HOME |
6d77929c | 336 | EOF |
82f606de | 337 | chmod 755 $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate |
3eeab518 | 338 | |
6d77929c JB |
339 | %clean |
340 | rm -rf $RPM_BUILD_ROOT | |
3eeab518 | 341 | |
b1662829 | 342 | %pretrans |
ade6d95c ER |
343 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then |
344 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
345 | fi | |
f86547d4 ER |
346 | exit 0 |
347 | ||
6d77929c | 348 | %post |
f37c2ce5 | 349 | %{_sbindir}/%{name}-chrome+xpcom-generate |
4d9eecad | 350 | %update_browser_plugins |
c5cd9be2 | 351 | %update_icon_cache hicolor |
96ef4151 | 352 | %update_desktop_database |
4d9eecad ER |
353 | |
354 | %postun | |
355 | if [ "$1" = 0 ]; then | |
356 | %update_browser_plugins | |
c5cd9be2 | 357 | %update_icon_cache hicolor |
4d9eecad | 358 | fi |
ea0245e6 | 359 | |
ea721d92 | 360 | %files |
361 | %defattr(644,root,root,755) | |
f37c2ce5 | 362 | %attr(755,root,root) %{_bindir}/%{name} |
fb0d8197 | 363 | %attr(755,root,root) %{_bindir}/firefox |
f37c2ce5 ER |
364 | %attr(755,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate |
365 | ||
c5cd9be2 JB |
366 | %{_desktopdir}/mozilla-firefox.desktop |
367 | %{_iconsdir}/hicolor/*/apps/mozilla-firefox.png | |
368 | ||
4d9eecad ER |
369 | # browser plugins v2 |
370 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
371 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
372 | ||
c2814220 | 373 | %dir %{_libdir}/%{name} |
c5cd9be2 JB |
374 | %dir %{_libdir}/%{name}/browser |
375 | %dir %{_libdir}/%{name}/browser/components | |
376 | %dir %{_libdir}/%{name}/browser/extensions | |
377 | %dir %{_libdir}/%{name}/browser/plugins | |
378 | ||
379 | %dir %{_datadir}/%{name} | |
380 | %dir %{_datadir}/%{name}/browser | |
381 | %{_datadir}/%{name}/browser/chrome | |
382 | %{_datadir}/%{name}/browser/defaults | |
383 | %{_datadir}/%{name}/browser/icons | |
384 | %{_datadir}/%{name}/browser/searchplugins | |
2a673919 | 385 | |
c5cd9be2 JB |
386 | # symlinks |
387 | %{_libdir}/%{name}/browser/chrome | |
388 | %{_libdir}/%{name}/browser/icons | |
389 | %{_libdir}/%{name}/browser/searchplugins | |
390 | %if %{with xulrunner} | |
391 | %{_libdir}/%{name}/xulrunner | |
2a673919 | 392 | %endif |
c5cd9be2 | 393 | %{_libdir}/%{name}/browser/defaults |
2a673919 | 394 | |
c5cd9be2 JB |
395 | %attr(755,root,root) %{_libdir}/%{name}/firefox |
396 | %attr(755,root,root) %{_libdir}/%{name}/firefox-bin | |
397 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh | |
2a673919 | 398 | %{_libdir}/%{name}/application.ini |
c5cd9be2 JB |
399 | %{_libdir}/%{name}/browser/blocklist.xml |
400 | %{_libdir}/%{name}/browser/chrome.manifest | |
401 | %{_libdir}/%{name}/browser/components/components.manifest | |
402 | %attr(755,root,root) %{_libdir}/%{name}/browser/components/libbrowsercomps.so | |
403 | # the signature of the default theme | |
404 | %{_libdir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
405 | %{_libdir}/%{name}/browser/omni.ja | |
406 | %{_libdir}/%{name}/webapprt | |
407 | %attr(755,root,root) %{_libdir}/%{name}/webapprt-stub | |
0fca8d8d | 408 | |
c5cd9be2 JB |
409 | # files created by firefox -register |
410 | %ghost %{_libdir}/%{name}/browser/components/compreg.dat | |
411 | %ghost %{_libdir}/%{name}/browser/components/xpti.dat | |
0fca8d8d | 412 | |
f99152f1 | 413 | %if %{without xulrunner} |
c5cd9be2 | 414 | # private xulrunner instance |
96ef4151 | 415 | %{_libdir}/%{name}/dependentlibs.list |
f99152f1 | 416 | %{_libdir}/%{name}/platform.ini |
c5cd9be2 JB |
417 | %dir %{_libdir}/%{name}/components |
418 | %{_libdir}/%{name}/components/components.manifest | |
2a673919 | 419 | %attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so |
2a673919 | 420 | %attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so |
c5cd9be2 JB |
421 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so |
422 | %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so | |
423 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so | |
f99152f1 | 424 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client |
82f606de | 425 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
f99152f1 | 426 | %{_libdir}/%{name}/dictionaries |
c5cd9be2 JB |
427 | %{_libdir}/%{name}/chrome.manifest |
428 | %{_libdir}/%{name}/omni.ja | |
f99152f1 | 429 | %endif |