]> git.pld-linux.org Git - packages/mozilla-firefox-bin.git/blobdiff - mozilla-firefox-bin.spec
up to 71.0
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
index f43c5047dbb73d2a71709277a8b909aaaf94ec60..adc30689a80766161ee5cd88433f8100b36b36cd 100644 (file)
@@ -1,15 +1,24 @@
+# Conditional build:
+%bcond_with    system_ffmpeg   # build with system ffmpeg library
+%bcond_without system_gtk      # build with internal gtk library
+%bcond_without system_sqlite   # build with internal sqlite library
+
 %define                realname        firefox
+%define                avcodec_soname_ver      57
+%define                avutil_soname_ver       55
+%define                gtk_soname_ver          0
+%define                sqlite_soname_ver       0
 Summary:       Mozilla Firefox web browser
 Summary(pl.UTF-8):     Mozilla Firefox - przeglÄ…darka WWW
 Name:          mozilla-firefox-bin
-Version:       49.0.2
+Version:       71.0
 Release:       1
 License:       MPL/LGPL
 Group:         X11/Applications/Networking
 Source0:       https://ftp.mozilla.org/pub/firefox/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.i686.tar.bz2
-# Source0-md5: 2fc314e8b441baeb47700f32d30bdf53
+# Source0-md5: cd6fc43efb781a7f1c146397c9f23e39
 Source1:       https://ftp.mozilla.org/pub/firefox/releases/%{version}/linux-x86_64/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.x8664.tar.bz2
-# Source1-md5: cb80bdc2129d9faa9a3024480d3239e7
+# Source1-md5: 91700c7cf15f65a6a5004245cf55ebb3
 Source2:       %{name}.desktop
 Source3:       %{name}.sh
 URL:           https://www.mozilla.org/firefox/
@@ -17,10 +26,13 @@ BuildRequires:      rpmbuild(macros) >= 1.453
 BuildRequires: zip
 Requires(post,postun): desktop-file-utils
 Requires:      browser-plugins >= 2.0
-Requires:      myspell-common
-Requires:      nspr >= 1:4.12
-Requires:      nss >= 1:3.25
-Requires:      sqlite3 >= 3.13.0
+Requires:      cpuinfo(sse2)
+%{?with_system_ffmpeg:Requires:        ffmpeg-libs >= 3.4}
+%{?with_system_gtk:Requires:   gtk+3 >= 3.22}
+Requires:      nspr >= 1:4.23
+Requires:      nss >= 1:3.47.1
+%{?with_system_sqlite:Requires:        sqlite3 >= 3.29.0}
+Suggests:      pulseaudio
 Provides:      wwwbrowser
 Obsoletes:     mozilla-firebird
 Conflicts:     mozilla-firefox
@@ -29,7 +41,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _firefoxdir     %{_libdir}/%{name}
 
-%define                moz_caps        libmozalloc.so libmozsqlite3.so libxpcom.so libxul.so
+%define                moz_caps        libmozalloc.so libmozavcodec.so libmozavutil.so libclearkey.so liblgpllibs.so libmozgtk.so libmozsandbox.so libmozsqlite3.so libxpcom.so libxul.so
 %define                sqlite_caps     libsqlite3.so
 
 # list of files (regexps) which don't generate Provides
@@ -68,17 +80,27 @@ cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
 sed 's,@LIBDIR@,%{_libdir},' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{name}
 ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
-cp -a browser/icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+cp -a browser/chrome/icons/default/default128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
 
 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins
 
-# use system dict
-rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
-ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
+%if %{with system_ffmpeg}
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozavcodec.so
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozavutil.so
+ln -s %{_libdir}/libavcodec.so.%{avcodec_soname_ver} $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozavcodec.so
+ln -s %{_libdir}/libavutil.so.%{avutil_soname_ver} $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozavutil.so
+%endif
+
+%if %{with system_gtk}
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozgtk.so
+ln -s %{_libdir}/libgtk-3.so.%{gtk_soname_ver} $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozgtk.so
+%endif
 
+%if %{with system_sqlite}
 # use system sqlite
 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
-ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
+ln -s /%{_lib}/libsqlite3.so.%{sqlite_soname_ver} $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
+%endif
 
 # never package these
 # nss
@@ -100,12 +122,6 @@ rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pretrans
-if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
-       mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
-fi
-exit 0
-
 %post
 %update_browser_plugins
 %update_desktop_database_post
@@ -127,45 +143,41 @@ fi
 
 %dir %{_libdir}/%{name}
 %{_libdir}/%{name}/application.ini
-%{_libdir}/%{name}/icudt56l.dat
+%{_libdir}/%{name}/chrome.manifest
 
 %dir %{_libdir}/%{name}/browser
 %{_libdir}/%{name}/browser/blocklist.xml
 %{_libdir}/%{name}/browser/chrome.manifest
 %{_libdir}/%{name}/browser/omni.ja
 
-%dir %{_libdir}/%{name}/browser/components
-%{_libdir}/%{name}/browser/components/components.manifest
-%attr(755,root,root) %{_libdir}/%{name}/browser/components/libbrowsercomps.so
 %{_libdir}/%{name}/omni.ja
 %{_libdir}/%{name}/platform.ini
 %attr(755,root,root) %{_libdir}/%{name}/firefox
 %attr(755,root,root) %{_libdir}/%{name}/firefox-bin
-%attr(755,root,root) %{_libdir}/%{name}/precomplete
+%attr(755,root,root) %{_libdir}/%{name}/minidump-analyzer
+%attr(755,root,root) %{_libdir}/%{name}/pingsender
 %attr(755,root,root) %{_libdir}/%{name}/plugin-container
+%attr(755,root,root) %{_libdir}/%{name}/precomplete
 
 %{_libdir}/%{name}/browser/chrome
-%{_libdir}/%{name}/browser/icons
 %{_libdir}/%{name}/defaults
 %{_libdir}/%{name}/dependentlibs.list
-%{_libdir}/%{name}/dictionaries
 %{_libdir}/%{name}/icons
 
+%dir %{_libdir}/%{name}/fonts
+%{_libdir}/%{name}/fonts/TwemojiMozilla.ttf
+
 %dir %{_libdir}/%{name}/gtk2
 %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
 
-%dir %{_libdir}/%{name}/browser/extensions
-# the signature of the default theme
-%{_libdir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
-
 %dir %{_libdir}/%{name}/browser/features
-%{_libdir}/%{name}/browser/features/e10srollout@mozilla.org.xpi
-%{_libdir}/%{name}/browser/features/firefox@getpocket.com.xpi
+%{_libdir}/%{name}/browser/features/formautofill@mozilla.org.xpi
+%{_libdir}/%{name}/browser/features/screenshots@mozilla.org.xpi
 %{_libdir}/%{name}/browser/features/webcompat@mozilla.org.xpi
+%{_libdir}/%{name}/browser/features/webcompat-reporter@mozilla.org.xpi
 
 %dir %{_libdir}/%{name}/browser/plugins
 %attr(755,root,root) %{_libdir}/%{name}/*.so
-%attr(755,root,root) %{_libdir}/%{name}/*.sh
 
 # crashreporter
 %attr(755,root,root) %{_libdir}/%{name}/crashreporter
@@ -174,7 +186,7 @@ fi
 
 %dir %{_libdir}/%{name}/gmp-clearkey
 %dir %{_libdir}/%{name}/gmp-clearkey/0.1
-%{_libdir}/%{name}/gmp-clearkey/0.1/clearkey.info
+%{_libdir}/%{name}/gmp-clearkey/0.1/manifest.json
 %attr(755,root,root) %{_libdir}/%{name}/gmp-clearkey/0.1/libclearkey.so
 
 %{_pixmapsdir}/%{name}.png
This page took 0.048418 seconds and 4 git commands to generate.