MozillaFirefox/MozillaFirefox.spec
branchfirefox79
changeset 1140 a9aa543a508a
parent 1139 4fd43e0d4a8f
child 1141 edb0ebe8cccc
equal deleted inserted replaced
1139:4fd43e0d4a8f 1140:a9aa543a508a
    80 BuildRequires:  alsa-devel
    80 BuildRequires:  alsa-devel
    81 BuildRequires:  autoconf213
    81 BuildRequires:  autoconf213
    82 BuildRequires:  dbus-1-glib-devel
    82 BuildRequires:  dbus-1-glib-devel
    83 BuildRequires:  dejavu-fonts
    83 BuildRequires:  dejavu-fonts
    84 BuildRequires:  fdupes
    84 BuildRequires:  fdupes
    85 BuildRequires:  memory-constraints
       
    86 %if 0%{?suse_version} <= 1320
    85 %if 0%{?suse_version} <= 1320
    87 BuildRequires:  gcc9-c++
    86 BuildRequires:  gcc9-c++
    88 %else
    87 %else
    89 BuildRequires:  gcc-c++
    88 BuildRequires:  gcc-c++
    90 %endif
    89 %endif
    91 BuildRequires:  cargo >= 1.43
    90 BuildRequires:  cargo >= 1.43
       
    91 BuildRequires:  ccache
    92 BuildRequires:  libXcomposite-devel
    92 BuildRequires:  libXcomposite-devel
    93 BuildRequires:  libcurl-devel
    93 BuildRequires:  libcurl-devel
    94 BuildRequires:  libidl-devel
    94 BuildRequires:  libidl-devel
    95 BuildRequires:  libiw-devel
    95 BuildRequires:  libiw-devel
    96 BuildRequires:  libproxy-devel
    96 BuildRequires:  libproxy-devel
   184 # Gecko/Toolkit
   184 # Gecko/Toolkit
   185 Patch1:         mozilla-nongnome-proxies.patch
   185 Patch1:         mozilla-nongnome-proxies.patch
   186 Patch2:         mozilla-kde.patch
   186 Patch2:         mozilla-kde.patch
   187 Patch3:         mozilla-ntlm-full-path.patch
   187 Patch3:         mozilla-ntlm-full-path.patch
   188 Patch4:         mozilla-aarch64-startup-crash.patch
   188 Patch4:         mozilla-aarch64-startup-crash.patch
   189 Patch5:         mozilla-bmo1463035.patch
       
   190 Patch6:         mozilla-sandbox-fips.patch
   189 Patch6:         mozilla-sandbox-fips.patch
   191 Patch7:         mozilla-fix-aarch64-libopus.patch
   190 Patch7:         mozilla-fix-aarch64-libopus.patch
   192 Patch8:         mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch
   191 Patch8:         mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch
   193 Patch9:         mozilla-s390-context.patch
   192 Patch9:         mozilla-s390-context.patch
   194 Patch11:        mozilla-reduce-rust-debuginfo.patch
   193 Patch11:        mozilla-reduce-rust-debuginfo.patch
   215 %endif # only_print_mozconfig
   214 %endif # only_print_mozconfig
   216 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
   215 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
   217 Requires(post):   coreutils shared-mime-info desktop-file-utils
   216 Requires(post):   coreutils shared-mime-info desktop-file-utils
   218 Requires(postun): shared-mime-info desktop-file-utils
   217 Requires(postun): shared-mime-info desktop-file-utils
   219 Requires:       %{name}-branding >= 68
   218 Requires:       %{name}-branding >= 68
   220 Requires:       mozilla-nspr >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nspr)
   219 %requires_ge    mozilla-nspr
   221 Requires:       mozilla-nss >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nss)
   220 %requires_ge    mozilla-nss
       
   221 %requires_ge    libfreetype6
   222 Recommends:     libcanberra0
   222 Recommends:     libcanberra0
   223 Recommends:     libpulse0
   223 Recommends:     libpulse0
   224 # addon leads to startup crash (bnc#908892)
   224 # addon leads to startup crash (bnc#908892)
   225 Obsoletes:      tracker-miner-firefox < 0.15
   225 Obsoletes:      tracker-miner-firefox < 0.15
   226 %if 0%{?devpkg} == 0
   226 %if 0%{?devpkg} == 0
   324 cd $RPM_BUILD_DIR/%{srcname}-%{orig_version}
   324 cd $RPM_BUILD_DIR/%{srcname}-%{orig_version}
   325 %patch1 -p1
   325 %patch1 -p1
   326 %patch2 -p1
   326 %patch2 -p1
   327 %patch3 -p1
   327 %patch3 -p1
   328 %patch4 -p1
   328 %patch4 -p1
   329 %patch5 -p1
       
   330 %patch6 -p1
   329 %patch6 -p1
   331 %patch7 -p1
   330 %patch7 -p1
   332 %patch8 -p1
   331 %patch8 -p1
   333 %patch9 -p1
   332 %patch9 -p1
   334 %patch11 -p1
   333 %patch11 -p1
   428 echo "export BUILD_OFFICIAL=1"
   427 echo "export BUILD_OFFICIAL=1"
   429 echo "export MOZ_TELEMETRY_REPORTING=1"
   428 echo "export MOZ_TELEMETRY_REPORTING=1"
   430 echo ""
   429 echo ""
   431 cat << EOF
   430 cat << EOF
   432 %else
   431 %else
   433 %ifarch ppc64 ppc64le
       
   434 %limit_build -m 2500
       
   435 %else
       
   436 %limit_build -m 2000
       
   437 %endif
       
   438 cat << EOF > $MOZCONFIG
   432 cat << EOF > $MOZCONFIG
   439 %endif
   433 %endif
   440 mk_add_options MOZILLA_OFFICIAL=1
   434 mk_add_options MOZILLA_OFFICIAL=1
   441 mk_add_options BUILD_OFFICIAL=1
   435 mk_add_options BUILD_OFFICIAL=1
   442 mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
   436 mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
   463 ac_add_options --disable-elf-hack
   457 ac_add_options --disable-elf-hack
   464 %endif
   458 %endif
   465 #%endif
   459 #%endif
   466 ac_add_options --with-system-nspr
   460 ac_add_options --with-system-nspr
   467 ac_add_options --with-system-nss
   461 ac_add_options --with-system-nss
       
   462 ac_add_options --with-ccache
   468 %if %{localize}
   463 %if %{localize}
   469 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
   464 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
   470 %endif
   465 %endif
   471 #ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
   466 #ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
   472 #ac_add_options --with-system-png     # doesn't work because of missing APNG support
   467 #ac_add_options --with-system-png     # doesn't work because of missing APNG support
   531 # build additional locales
   526 # build additional locales
   532 %if %localize
   527 %if %localize
   533 mkdir -p %{buildroot}%{progdir}/browser/extensions
   528 mkdir -p %{buildroot}%{progdir}/browser/extensions
   534 truncate -s 0 %{_tmppath}/translations.{common,other}
   529 truncate -s 0 %{_tmppath}/translations.{common,other}
   535 sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \
   530 sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \
   536     | xargs -n 1 -I {} /bin/sh -c '
   531     | xargs -n 1 -P 0 -I {} /bin/sh -c '
   537         locale=$1
   532         locale=$1
   538         ./mach build langpack-$locale
   533         ./mach build langpack-$locale
   539         cp -L ../obj/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \
   534         cp -L ../obj/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \
   540             %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org.xpi
   535             %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org.xpi
   541         # remove prefs, profile defaults, and hyphenation from langpack
   536         # remove prefs, profile defaults, and hyphenation from langpack
   612 %suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
   607 %suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
   613 # additional mime-types
   608 # additional mime-types
   614 mkdir -p %{buildroot}%{_datadir}/mime/packages
   609 mkdir -p %{buildroot}%{_datadir}/mime/packages
   615 cp %{SOURCE8} %{buildroot}%{_datadir}/mime/packages/%{progname}.xml
   610 cp %{SOURCE8} %{buildroot}%{_datadir}/mime/packages/%{progname}.xml
   616 # appdata
   611 # appdata
   617 mkdir -p %{buildroot}%{_datadir}/appdata
   612 mkdir -p %{buildroot}%{_datadir}/metainfo
   618 sed "s:firefox.desktop:%{desktop_file_name}:g" \
   613 sed "s:firefox.desktop:%{desktop_file_name}:g" \
   619   %{SOURCE15} > %{buildroot}%{_datadir}/appdata/%{desktop_file_name}.appdata.xml
   614   %{SOURCE15} > %{buildroot}%{_datadir}/metainfo/%{desktop_file_name}.appdata.xml
   620 # install man-page
   615 # install man-page
   621 mkdir -p %{buildroot}%{_mandir}/man1/
   616 mkdir -p %{buildroot}%{_mandir}/man1/
   622 cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1
   617 cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1
   623 ##########
   618 ##########
   624 # ADDONS
   619 # ADDONS
   747 %dir %{_libdir}/mozilla/extensions
   742 %dir %{_libdir}/mozilla/extensions
   748 %dir %{_libdir}/mozilla/extensions/%{firefox_appid}
   743 %dir %{_libdir}/mozilla/extensions/%{firefox_appid}
   749 %{gnome_dir}/share/icons/hicolor/
   744 %{gnome_dir}/share/icons/hicolor/
   750 %{_bindir}/%{progname}
   745 %{_bindir}/%{progname}
   751 %doc %{_mandir}/man1/%{progname}.1.gz
   746 %doc %{_mandir}/man1/%{progname}.1.gz
   752 %{_datadir}/appdata/
   747 %{_datadir}/metainfo/
   753 
   748 
   754 %if 0%{?devpkg}
   749 %if 0%{?devpkg}
   755 %files devel
   750 %files devel
   756 %defattr(-,root,root)
   751 %defattr(-,root,root)
   757 %{_bindir}/mozilla-get-app-id
   752 %{_bindir}/mozilla-get-app-id