]> git.pld-linux.org Git - packages/firefox.git/blame - firefox.spec
- up to 47.0.1
[packages/firefox.git] / firefox.spec
CommitLineData
0d00fa1b 1# TODO:
54d6358a 2# - consider --enable-libproxy
2f695f11 3#
ca6a7239 4# Conditional build:
4ab16c9e 5%bcond_with tests # enable tests (whatever they check)
4264118a 6%bcond_without gtk3 # GTK+ 3.x instead of 2.x
2a673919 7%bcond_without kerberos # disable krb5 support
89390b0e 8%bcond_without official # official Firefox branding
54d6358a
JR
9%bcond_with pgo # PGO-enabled build (requires working $DISPLAY == :100)
10# - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
11%bcond_with shared_js # shared libmozjs library [broken]
12
13# On updating version, grab CVE links from:
14# https://www.mozilla.org/security/known-vulnerabilities/firefox.html
15# Release Notes:
16# https://developer.mozilla.org/en-US/Firefox/Releases
2a673919 17
d97ddc70
JB
18# The actual sqlite version (see RHBZ#480989):
19%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
d97ddc70 20
7bfe3691
JB
21%define nspr_ver 4.12
22%define nss_ver 3.21.1
54d6358a
JR
23
24Summary: Firefox web browser
25Summary(hu.UTF-8): Firefox web böngésző
26Summary(pl.UTF-8): Firefox - przeglądarka WWW
27Name: firefox
d83d925e
AO
28Version: 47.0.1
29Release: 1
a9334f16 30License: MPL v2.0
51c0f20a 31Group: X11/Applications/Networking
54d6358a 32Source0: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz
d83d925e 33# Source0-md5: aba4b673b10e3fdcee80f88300829613
96ef4151
JB
34Source3: %{name}.desktop
35Source4: %{name}.sh
c5cd9be2
JB
36Source5: vendor.js
37Source6: vendor-ac.js
f0a96e4f
JR
38Patch0: idl-parser.patch
39Patch1: xulrunner-new-libxul.patch
40Patch2: xulrunner-paths.patch
41Patch3: xulrunner-pc.patch
42Patch4: %{name}-prefs.patch
43Patch5: %{name}-pld-bookmarks.patch
44Patch6: %{name}-no-subshell.patch
45Patch7: %{name}-middle_click_paste.patch
46Patch8: %{name}-system-virtualenv.patch
47Patch9: %{name}-Disable-Firefox-Health-Report.patch
48Patch10: freetype.patch
49Patch11: firefox-gtk3-20.patch
54d6358a 50URL: https://www.mozilla.org/firefox/
0fca8d8d 51BuildRequires: OpenGL-devel
d97ddc70 52BuildRequires: alsa-lib-devel
e933d2a8 53BuildRequires: automake
f0a96e4f 54BuildRequires: autoconf2_13
d97ddc70 55BuildRequires: bzip2-devel
0fca8d8d 56BuildRequires: cairo-devel >= 1.10.2-5
09328230 57BuildRequires: dbus-glib-devel >= 0.60
37413542 58BuildRequires: freetype-devel >= 1:2.1.8
c5cd9be2 59BuildRequires: gcc-c++ >= 6:4.4
d0a1bb80 60BuildRequires: glib2-devel >= 1:2.22
08ccc3c5
JB
61BuildRequires: gstreamer-devel >= 1.0
62BuildRequires: gstreamer-plugins-base-devel >= 1.0
d0a1bb80
JB
63%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0}
64%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.4.0}
2a673919 65%{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
37413542 66BuildRequires: hunspell-devel >= 1.2.3
8a88dcf7 67BuildRequires: libIDL-devel >= 0.8.0
d0a1bb80
JB
68# DECnet (dnprogs.spec), not dummy net (libdnet.spec)
69#BuildRequires: libdnet-devel
0fca8d8d 70BuildRequires: libevent-devel >= 1.4.7
4ac83cfe
JB
71# standalone libffi 3.0.9 or gcc's from 4.5(?)+
72BuildRequires: libffi-devel >= 6:3.0.9
a9334f16 73BuildRequires: libicu-devel >= 50.1
96ef4151 74# requires libjpeg-turbo implementing at least libjpeg 6b API
ea721d92 75BuildRequires: libjpeg-devel >= 6b
96ef4151 76BuildRequires: libjpeg-turbo-devel
2a673919 77BuildRequires: libpng(APNG)-devel >= 0.10
7bfe3691 78BuildRequires: libpng-devel >= 2:1.6.19
c5cd9be2 79BuildRequires: libstdc++-devel >= 6:4.4
a9334f16 80BuildRequires: libvpx-devel >= 1.3.0
96ef4151
JB
81BuildRequires: nspr-devel >= 1:%{nspr_ver}
82BuildRequires: nss-devel >= 1:%{nss_ver}
08ccc3c5 83BuildRequires: pango-devel >= 1:1.22.0
a9334f16 84BuildRequires: pixman-devel >= 0.19.2
56cf7ebf 85BuildRequires: perl-modules >= 5.004
1bb00684 86BuildRequires: pkgconfig
b73005e5 87BuildRequires: pkgconfig(libffi) >= 3.0.9
08ccc3c5 88BuildRequires: pulseaudio-devel
37413542 89BuildRequires: python-modules >= 1:2.5
54d6358a 90%{?with_pgo:BuildRequires: python-modules-sqlite}
a86b0951 91BuildRequires: python-simplejson
89390b0e 92BuildRequires: python-virtualenv >= 15
08ccc3c5 93BuildRequires: readline-devel
6b1581cf 94BuildRequires: rpm >= 4.4.9-56
9df03825 95BuildRequires: rpmbuild(macros) >= 1.601
54d6358a 96BuildRequires: sed >= 4.0
7bfe3691 97BuildRequires: sqlite3-devel >= 3.9.1
d97ddc70 98BuildRequires: startup-notification-devel >= 0.8
7bfe3691 99BuildRequires: xorg-lib-libX11-devel
0fca8d8d 100BuildRequires: xorg-lib-libXScrnSaver-devel
7bfe3691
JB
101BuildRequires: xorg-lib-libXcomposite-devel
102BuildRequires: xorg-lib-libXdamage-devel
446ffaab 103BuildRequires: xorg-lib-libXext-devel
7bfe3691 104BuildRequires: xorg-lib-libXfixes-devel
446ffaab 105BuildRequires: xorg-lib-libXinerama-devel
de5abc0a 106BuildRequires: xorg-lib-libXt-devel
54d6358a 107%{?with_pgo:BuildRequires: xorg-xserver-Xvfb}
7bfe3691
JB
108%ifarch %{x8664}
109BuildRequires: yasm >= 1.0.1
110%endif
b0a3aa79 111BuildRequires: zip
1dd3785b 112BuildRequires: zlib-devel >= 1.2.3
54d6358a 113BuildConflicts: %{name}-devel < %{version}
f37c2ce5 114Requires(post): mktemp >= 1.5-18
82f4f456 115Requires: browser-plugins >= 2.0
96ef4151 116Requires: desktop-file-utils
c5cd9be2 117Requires: hicolor-icon-theme
d97ddc70 118Requires: myspell-common
96ef4151
JB
119Requires: nspr >= 1:%{nspr_ver}
120Requires: nss >= 1:%{nss_ver}
54d6358a 121Requires: %{name}-libs = %{version}-%{release}
0d52cac8 122Provides: wwwbrowser
54d6358a 123Obsoletes: iceweasel
51c0f20a 124Obsoletes: mozilla-firebird
54d6358a 125Obsoletes: mozilla-firefox
2620301e 126Obsoletes: mozilla-firefox-lang-en < 2.0.0.8-3
c2814220 127Obsoletes: mozilla-firefox-libs
54d6358a
JR
128Obsoletes: xulrunner
129Obsoletes: xulrunner-gnome
130Conflicts: firefox-lang-resources < %{version}
ea721d92 131BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
132
96ef4151
JB
133%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
134
54d6358a
JR
135# don't satisfy other packages
136%define _noautoprovfiles %{_libdir}/%{name}
137
4c7e703c 138# and as we don't provide them, don't require either
54d6358a 139%define _noautoreq libmozjs.so libxul.so
c14d6140 140
ea721d92 141%description
54d6358a
JR
142Firefox is an open-source web browser, designed for standards
143compliance, performance and portability.
144
145%description -l hu.UTF-8
146Firefox egy nyílt forrású webböngésző, hatékonyságra és
147hordozhatóságra tervezve.
ea721d92 148
eace6cdf 149%description -l pl.UTF-8
54d6358a
JR
150Firefox jest przeglądarką WWW rozpowszechnianą zgodnie z ideami
151ruchu otwartego oprogramowania oraz tworzoną z myślą o zgodności ze
152standardami, wydajnością i przenośnością.
153
154%package libs
155Summary: Firefox shared libraries
156Summary(pl.UTF-8): Biblioteki współdzielone Firefoxa
157Group: X11/Libraries
158Requires: cairo >= 1.10.2-5
159Requires: dbus-glib >= 0.60
160Requires: glib2 >= 1:2.22
161%{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
162%{?with_gtk3:Requires: gtk+3 >= 3.4.0}
163Requires: libjpeg-turbo
7bfe3691 164Requires: libpng >= 2:1.6.19
54d6358a
JR
165Requires: libpng(APNG) >= 0.10
166Requires: libvpx >= 1.3.0
167Requires: pango >= 1:1.22.0
168Requires: sqlite3 >= %{sqlite_build_version}
169Requires: startup-notification >= 0.8
170Provides: xulrunner-libs = 2:%{version}-%{release}
171Obsoletes: iceweasel-libs
172Obsoletes: xulrunner-libs
173
174%description libs
175XULRunner shared libraries.
176
177%description libs -l pl.UTF-8
178Biblioteki współdzielone XULRunnera.
179
180%package devel
181Summary: Headers for developing programs that will use Firefox
182Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających Firefox
183Group: X11/Development/Libraries
184Requires: %{name}-libs = %{version}-%{release}
185Requires: nspr-devel >= 1:%{nspr_ver}
186Requires: nss-devel >= 1:%{nss_ver}
187Requires: python-ply
188Provides: xulrunner-devel = 2:%{version}-%{release}
189Obsoletes: iceweasel-devel
190Obsoletes: mozilla-devel
191Obsoletes: mozilla-firefox-devel
192Obsoletes: seamonkey-devel
193Obsoletes: xulrunner-devel
194
195%description devel
196Firefox development package.
197
198%description devel -l pl.UTF-8
199Pakiet programistyczny Firefoxa.
ea721d92 200
201%prep
54d6358a
JR
202%setup -q
203
204# avoid using included headers (-I. is before HUNSPELL_CFLAGS)
205%{__rm} extensions/spellcheck/hunspell/src/{*.hxx,hunspell.h}
206# hunspell needed for factory including mozHunspell.h
207echo 'LOCAL_INCLUDES += $(MOZ_HUNSPELL_CFLAGS)' >> extensions/spellcheck/src/Makefile.in
208
f0a96e4f
JR
209%patch0 -p2
210%patch1 -p1
211%patch2 -p2
212%patch3 -p1
54d6358a 213%patch4 -p1
f0a96e4f
JR
214%patch5 -p1
215%patch6 -p2
d1eea1c3 216%patch7 -p1
54d6358a 217%patch8 -p2
3c8a14c2 218%patch9 -p1
f0a96e4f
JR
219%patch10 -p2
220%patch11 -p1
54d6358a 221
89390b0e
JB
222%{__sed} -i -e '1s,/usr/bin/env python,%{__python},' xpcom/typelib/xpt/tools/xpt.py xpcom/idl-parser/xpidl/xpidl.py
223
54d6358a 224%if %{with pgo}
89390b0e 225%{__sed} -i -e 's@__BROWSER_PATH__@"../../dist/bin/firefox-bin"@' build/automation.py.in
54d6358a 226%endif
29b16068 227
ea721d92 228%build
54d6358a 229cp -p %{_datadir}/automake/config.* build/autoconf
52befddb 230
08ccc3c5
JB
231cat << 'EOF' > .mozconfig
232. $topsrcdir/browser/config/mozconfig
52befddb 233
2620301e 234mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu}
2620301e 235
f37c2ce5 236# Options for 'configure' (same as command-line options).
c5cd9be2
JB
237ac_add_options --build=%{_target_platform}
238ac_add_options --host=%{_target_platform}
52befddb 239ac_add_options --prefix=%{_prefix}
240ac_add_options --exec-prefix=%{_exec_prefix}
241ac_add_options --bindir=%{_bindir}
242ac_add_options --sbindir=%{_sbindir}
243ac_add_options --sysconfdir=%{_sysconfdir}
244ac_add_options --datadir=%{_datadir}
245ac_add_options --includedir=%{_includedir}
246ac_add_options --libdir=%{_libdir}
247ac_add_options --libexecdir=%{_libexecdir}
248ac_add_options --localstatedir=%{_localstatedir}
249ac_add_options --sharedstatedir=%{_sharedstatedir}
250ac_add_options --mandir=%{_mandir}
251ac_add_options --infodir=%{_infodir}
cf471ce5 252%if %{?debug:1}0
f37c2ce5 253ac_add_options --disable-optimize
52befddb 254ac_add_options --enable-debug
255ac_add_options --enable-debug-modules
f37c2ce5
ER
256ac_add_options --enable-debugger-info-modules
257ac_add_options --enable-crash-on-assert
52befddb 258%else
259ac_add_options --disable-debug
2620301e 260ac_add_options --disable-debug-modules
70982d6c 261ac_add_options --enable-optimize="%{rpmcflags} -Os"
52befddb 262%endif
d97ddc70
JB
263ac_add_options --disable-strip
264ac_add_options --disable-strip-libs
c5cd9be2 265ac_add_options --disable-install-strip
52befddb 266%if %{with tests}
267ac_add_options --enable-tests
a9334f16 268ac_add_options --enable-mochitest
c4f9bb37 269%else
54d6358a
JR
270%if %{with pgo}
271ac_add_options --enable-tests
272%else
52befddb 273ac_add_options --disable-tests
54d6358a 274%endif
a9334f16 275ac_add_options --disable-mochitest
c4f9bb37 276%endif
a9334f16 277ac_add_options --disable-cpp-exceptions
c5cd9be2
JB
278ac_add_options --disable-crashreporter
279ac_add_options --disable-elf-dynstr-gc
280ac_add_options --disable-gconf
f37c2ce5 281ac_add_options --disable-gnomeui
6800f9e1 282ac_add_options --disable-gnomevfs
52befddb 283ac_add_options --disable-installer
f37c2ce5 284ac_add_options --disable-javaxpcom
c5cd9be2 285ac_add_options --disable-long-long-warning
a9334f16 286ac_add_options --disable-necko-wifi
c5cd9be2 287ac_add_options --disable-pedantic
f37c2ce5 288ac_add_options --disable-updater
c5cd9be2
JB
289ac_add_options --disable-xterm-updates
290ac_add_options --enable-canvas
a9334f16
JB
291ac_add_options --enable-chrome-format=omni
292ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
08ccc3c5 293ac_add_options --enable-extensions=default
0fca8d8d 294ac_add_options --enable-gio
08ccc3c5 295ac_add_options --enable-gstreamer=1.0
d97ddc70 296ac_add_options --enable-libxul
c5cd9be2 297ac_add_options --enable-mathml
d97ddc70 298ac_add_options --enable-pango
c5cd9be2 299ac_add_options --enable-readline
a9334f16 300ac_add_options --enable-safe-browsing
08ccc3c5 301%{?with_shared_js:ac_add_options --enable-shared-js}
2a673919 302ac_add_options --enable-startup-notification
c5cd9be2 303ac_add_options --enable-svg
52befddb 304ac_add_options --enable-system-cairo
c5cd9be2 305ac_add_options --enable-system-ffi
d97ddc70 306ac_add_options --enable-system-hunspell
dfdf0ac8 307ac_add_options --enable-system-sqlite
c5cd9be2 308ac_add_options --enable-url-classifier
a9334f16 309ac_add_options --enable-xinerama
89390b0e 310%{?with_official:ac_add_options --enable-official-branding}
c5cd9be2 311ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
f37c2ce5 312ac_add_options --with-distribution-id=org.pld-linux
2a673919 313ac_add_options --with-pthreads
d97ddc70 314ac_add_options --with-system-bz2
a86b0951 315ac_add_options --with-system-icu
2620301e 316ac_add_options --with-system-jpeg
0fca8d8d
JB
317ac_add_options --with-system-libevent
318ac_add_options --with-system-libvpx
52befddb 319ac_add_options --with-system-nspr
f37c2ce5 320ac_add_options --with-system-nss
c5cd9be2 321ac_add_options --with-system-ply
f37c2ce5 322ac_add_options --with-system-png
2620301e 323ac_add_options --with-system-zlib
c5cd9be2 324ac_add_options --with-x
52befddb 325EOF
33f81726 326
54d6358a
JR
327%if %{with pgo}
328D=$(( RANDOM % (200 - 100 + 1 ) + 5 ))
329/usr/bin/Xvfb :${D} &
330XVFB_PID=$!
331[ -n "$XVFB_PID" ] || exit 1
332export DISPLAY=:${D}
333%{__make} -j1 -f client.mk profiledbuild \
f0a96e4f 334 AUTOCONF=/usr/bin/autoconf2_13 \
54d6358a
JR
335 DESTDIR=obj-%{_target_cpu}/dist \
336 CC="%{__cc}" \
337 CXX="%{__cxx}" \
338 MOZ_MAKE_FLAGS="%{_smp_mflags}"
339kill $XVFB_PID
340%else
08ccc3c5 341%{__make} -j1 -f client.mk build \
f0a96e4f 342 AUTOCONF=/usr/bin/autoconf2_13 \
3d445135 343 CC="%{__cc}" \
08ccc3c5
JB
344 CXX="%{__cxx}" \
345 MOZ_MAKE_FLAGS="%{_smp_mflags}"
54d6358a 346%endif
ea721d92 347
348%install
349rm -rf $RPM_BUILD_ROOT
45f27404 350install -d \
f37c2ce5 351 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
c5cd9be2
JB
352 $RPM_BUILD_ROOT%{_desktopdir} \
353 $RPM_BUILD_ROOT%{_datadir}/%{name}/browser \
54d6358a
JR
354 $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/plugins \
355 $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/{lib,bin} \
356 $RPM_BUILD_ROOT%{_includedir}/%{name} \
357 $RPM_BUILD_ROOT%{_datadir}/idl/%{name} \
358 $RPM_BUILD_ROOT%{_pkgconfigdir}
75e09104 359
c5cd9be2 360%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins
8bc15110 361
54d6358a
JR
362cd obj-%{_target_cpu}
363%{__make} -C browser/installer stage-package libxul.pc libxul-embedding.pc mozilla-js.pc mozilla-plugin.pc \
d541162e 364 DESTDIR=$RPM_BUILD_ROOT \
c5cd9be2 365 installdir=%{_libdir}/%{name} \
54d6358a 366 INSTALL_SDK=1 \
f37c2ce5 367 PKG_SKIP_STRIP=1
ea721d92 368
54d6358a
JR
369cp -aL browser/installer/*.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
370cp -aL dist/firefox/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
371cp -aL dist/idl/* $RPM_BUILD_ROOT%{_datadir}/idl/%{name}
372cp -aL dist/include/* $RPM_BUILD_ROOT%{_includedir}/%{name}
373cp -aL dist/include/xpcom-config.h $RPM_BUILD_ROOT%{_libdir}/%{name}-devel
374cp -aL dist/sdk/lib/* $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/lib
375cp -aL dist/sdk/bin/* $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/bin
376find $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk -name "*.pyc" | xargs rm -f
377
378ln -s %{_libdir}/%{name} $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/bin
379ln -s %{_includedir}/%{name} $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/include
380ln -s %{_datadir}/idl/%{name} $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/idl
381ln -s %{_libdir}/%{name}-devel/sdk/lib $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/lib
382
383# replace copies with symlinks
384%{?with_shared_js:ln -sf %{_libdir}/%{name}/libmozjs.so $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/lib/libmozjs.so}
385ln -sf %{_libdir}/%{name}/libxul.so $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/lib/libxul.so
386# temp fix for https://bugzilla.mozilla.org/show_bug.cgi?id=63955
387chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/sdk/bin/xpt.py
0fca8d8d 388
f86547d4 389# move arch independant ones to datadir
c5cd9be2 390mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/chrome
8e79a8c3 391mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/extensions
c5cd9be2 392mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/icons
c5cd9be2
JB
393mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults
394mv $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/{pref,preferences}
d97ddc70 395
c5cd9be2
JB
396ln -s ../../../share/%{name}/browser/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome
397ln -s ../../../share/%{name}/browser/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults
8e79a8c3 398ln -s ../../../share/%{name}/browser/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions
c5cd9be2 399ln -s ../../../share/%{name}/browser/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons
f86547d4 400
f1613d3d 401%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
4d687af8
ER
402ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
403
54d6358a
JR
404sed 's,@LIBDIR@,%{_libdir},' %{SOURCE4} > $RPM_BUILD_ROOT%{_bindir}/firefox
405chmod 755 $RPM_BUILD_ROOT%{_bindir}/firefox
ea721d92 406
c5cd9be2 407# install icons and desktop file
89390b0e 408for i in 16 32 48 %{?with_official:22 24 256}; do
c5cd9be2 409 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps
89390b0e 410 cp -a ../browser/branding/%{!?with_official:un}official/default${i}.png \
54d6358a 411 $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/firefox.png
c5cd9be2
JB
412done
413
96ef4151 414cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
ea721d92 415
c5cd9be2
JB
416# install our settings
417%if "%{pld_release}" == "ac"
418cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js
419%else
420cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js
421%endif
422
d97ddc70 423# files created by firefox -register
c5cd9be2
JB
424touch $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/components/compreg.dat
425touch $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/components/xpti.dat
f37c2ce5
ER
426
427cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate
6d77929c 428#!/bin/sh
050f03d2 429umask 022
c5cd9be2 430rm -f %{_libdir}/%{name}/browser/components/{compreg,xpti}.dat
3eeab518 431
f37c2ce5
ER
432# it attempts to touch files in $HOME/.mozilla
433# beware if you run this with sudo!!!
434export HOME=$(mktemp -d)
435# also TMPDIR could be pointing to sudo user's homedir
436unset TMPDIR TMP || :
3eeab518 437
6162f349 438%{_libdir}/%{name}/firefox -register
3eeab518 439
56143477 440rm -rf $HOME
6d77929c 441EOF
82f606de 442chmod 755 $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate
3eeab518 443
6d77929c
JB
444%clean
445rm -rf $RPM_BUILD_ROOT
3eeab518 446
6d77929c 447%post
f37c2ce5 448%{_sbindir}/%{name}-chrome+xpcom-generate
4d9eecad 449%update_browser_plugins
c5cd9be2 450%update_icon_cache hicolor
96ef4151 451%update_desktop_database
4d9eecad
ER
452
453%postun
454if [ "$1" = 0 ]; then
455 %update_browser_plugins
c5cd9be2 456 %update_icon_cache hicolor
4d9eecad 457fi
ea0245e6 458
ea721d92 459%files
460%defattr(644,root,root,755)
f37c2ce5 461%attr(755,root,root) %{_bindir}/%{name}
f37c2ce5
ER
462%attr(755,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate
463
54d6358a
JR
464%{_desktopdir}/firefox.desktop
465%{_iconsdir}/hicolor/*/apps/firefox.png
c5cd9be2 466
4d9eecad
ER
467# browser plugins v2
468%{_browserpluginsconfdir}/browsers.d/%{name}.*
469%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
470
c5cd9be2
JB
471%dir %{_libdir}/%{name}/browser
472%dir %{_libdir}/%{name}/browser/components
c5cd9be2 473%dir %{_libdir}/%{name}/browser/plugins
54d6358a 474%dir %{_libdir}/%{name}/browser/features
c5cd9be2
JB
475
476%dir %{_datadir}/%{name}
477%dir %{_datadir}/%{name}/browser
8e79a8c3 478%dir %{_datadir}/%{name}/browser/extensions
c5cd9be2
JB
479%{_datadir}/%{name}/browser/chrome
480%{_datadir}/%{name}/browser/defaults
481%{_datadir}/%{name}/browser/icons
2a673919 482
c5cd9be2 483# symlinks
8e79a8c3 484%{_libdir}/%{name}/browser/extensions
c5cd9be2
JB
485%{_libdir}/%{name}/browser/chrome
486%{_libdir}/%{name}/browser/icons
c5cd9be2 487%{_libdir}/%{name}/browser/defaults
2a673919 488
c5cd9be2
JB
489%attr(755,root,root) %{_libdir}/%{name}/firefox
490%attr(755,root,root) %{_libdir}/%{name}/firefox-bin
491%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
2a673919 492%{_libdir}/%{name}/application.ini
c5cd9be2
JB
493%{_libdir}/%{name}/browser/blocklist.xml
494%{_libdir}/%{name}/browser/chrome.manifest
495%{_libdir}/%{name}/browser/components/components.manifest
496%attr(755,root,root) %{_libdir}/%{name}/browser/components/libbrowsercomps.so
497# the signature of the default theme
54d6358a 498%{_datadir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
c5cd9be2
JB
499%{_libdir}/%{name}/browser/omni.ja
500%{_libdir}/%{name}/webapprt
501%attr(755,root,root) %{_libdir}/%{name}/webapprt-stub
0fca8d8d 502
54d6358a 503%{_libdir}/%{name}/browser/features/loop@mozilla.org.xpi
b1598639
JR
504%{_libdir}/%{name}/browser/features/e10srollout@mozilla.org.xpi
505%{_libdir}/%{name}/browser/features/firefox@getpocket.com.xpi
54d6358a 506
c5cd9be2
JB
507# files created by firefox -register
508%ghost %{_libdir}/%{name}/browser/components/compreg.dat
509%ghost %{_libdir}/%{name}/browser/components/xpti.dat
0fca8d8d 510
82f606de 511%attr(755,root,root) %{_libdir}/%{name}/plugin-container
f99152f1 512%{_libdir}/%{name}/dictionaries
82f4f456
JB
513
514%dir %{_libdir}/%{name}/gmp-clearkey
515%dir %{_libdir}/%{name}/gmp-clearkey/0.1
516%{_libdir}/%{name}/gmp-clearkey/0.1/clearkey.info
517%attr(755,root,root) %{_libdir}/%{name}/gmp-clearkey/0.1/libclearkey.so
54d6358a
JR
518
519%files libs
520%defattr(644,root,root,755)
521%dir %{_libdir}/%{name}
522%{_libdir}/%{name}/platform.ini
523%{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
524%attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
525%attr(755,root,root) %{_libdir}/%{name}/libxul.so
b1598639
JR
526%attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so
527%attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so
54d6358a
JR
528%{_libdir}/%{name}/dependentlibs.list
529%{_libdir}/%{name}/omni.ja
4264118a
JR
530%if %{with gtk3}
531%dir %{_libdir}/%{name}/gtk2
532%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
533%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
534%endif
54d6358a
JR
535
536%files devel
537%defattr(644,root,root,755)
538%{_includedir}/%{name}
539%{_datadir}/idl/%{name}
540%dir %{_libdir}/%{name}-devel
541%{_libdir}/%{name}-devel/bin
542%{_libdir}/%{name}-devel/idl
543%{_libdir}/%{name}-devel/lib
544%{_libdir}/%{name}-devel/include
545%{_libdir}/%{name}-devel/*.h
546%dir %{_libdir}/%{name}-devel/sdk
547%{_libdir}/%{name}-devel/sdk/lib
548%dir %{_libdir}/%{name}-devel/sdk/bin
549%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/header.py
550%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/run-mozilla.sh
551%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/typelib.py
552%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/xpcshell
553%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/xpidl.py
554%{_libdir}/%{name}-devel/sdk/bin/xpidllex.py
555%{_libdir}/%{name}-devel/sdk/bin/xpidlyacc.py
556%attr(755,root,root) %{_libdir}/%{name}-devel/sdk/bin/xpt.py
557%{_libdir}/%{name}-devel/sdk/bin/ply
558
559%{_pkgconfigdir}/libxul.pc
560%{_pkgconfigdir}/libxul-embedding.pc
561%{_pkgconfigdir}/mozilla-js.pc
562%{_pkgconfigdir}/mozilla-plugin.pc
This page took 0.201384 seconds and 4 git commands to generate.