automatic version update by autodist [release 64.0-1mamba;Sun Jan 06 2019]

This commit is contained in:
Automatic Build System 2024-01-05 22:19:11 +01:00
parent d38580fd40
commit 06d7f89a32

View File

@ -17,7 +17,7 @@
%define pkgver %(echo %version | tr . _) %define pkgver %(echo %version | tr . _)
Name: firefox Name: firefox
Version: 61.0.2 Version: 64.0
Release: 1mamba Release: 1mamba
Epoch: 1 Epoch: 1
Summary: The next generation browsing technology from mozilla.org Summary: The next generation browsing technology from mozilla.org
@ -72,13 +72,11 @@ BuildRequires: libdbus-glib-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel BuildRequires: libfreetype-devel
BuildRequires: libfribidi-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libgtk-devel BuildRequires: libgtk-devel
BuildRequires: libgtk2-devel BuildRequires: libgtk2-devel
BuildRequires: libhunspell-devel
BuildRequires: libicu-devel BuildRequires: libicu-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libnspr-devel BuildRequires: libnspr-devel
@ -124,6 +122,7 @@ BuildRequires: unzip
BuildRequires: bash BuildRequires: bash
BuildRequires: yasm BuildRequires: yasm
BuildRequires: rust-bin BuildRequires: rust-bin
BuildRequires: cbindgen
#Requires: xulrunner = %{version} #Requires: xulrunner = %{version}
Provides: xulrunner Provides: xulrunner
Obsoletes: xulrunner Obsoletes: xulrunner
@ -144,9 +143,8 @@ Mofilla Firefox is the next generation browsing technology from mozilla.org.
This package contains static libraries and header files need for development. This package contains static libraries and header files need for development.
%prep %prep
%setup -q -n mozilla-release-FIREFOX_%{pkgver}_RELEASE %setup -q -n mozilla-release-FIREFOX_%{pkgver}_RELEASE -D -T
#-D -T :<< ___EOF
#:<< ___EOF
#cd %{source_dir} #cd %{source_dir}
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297 # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297
@ -195,13 +193,14 @@ sed -e 's|__RPM_VERSION_INTERNAL__|%{firefox_internal_version}|' %{PATCH0} | pat
#_EOF #_EOF
#chmod +x %{_builddir}/firefox-%{version}/%{source_dir}/find_requires.sh #chmod +x %{_builddir}/firefox-%{version}/%{source_dir}/find_requires.sh
echo -n "AIzaSyBT3wXwxmFuUQcyeMyp0MbHHhhFwNfWKTc" >google-api-key
#echo -n "$_mozilla_api_key" >mozilla-api-key
#___EOF #___EOF
%build %build
mkdir -p build
cd build
#:<< ___EOF #:<< ___EOF
ln -sf ../configure configure
export LDFLAGS='-lX11 -lXrender' PYTHON=%{__python} export LDFLAGS='-lX11 -lXrender' PYTHON=%{__python}
export MOZILLA_OFFICIAL=1 export MOZILLA_OFFICIAL=1
@ -211,18 +210,18 @@ export MOZ_REQUIRE_SIGNING=1
export MOZ_SOURCE_REPO=https://hg.mozilla.org/mozilla-unified export MOZ_SOURCE_REPO=https://hg.mozilla.org/mozilla-unified
export MOZ_SOURCE_CHANGESET=1 export MOZ_SOURCE_CHANGESET=1
#:<< ___ EOF ./mach configure \
../mach configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
--enable-release \ --enable-release \
--enable-gold \ --enable-linker=gold \
--enable-pie \ --enable-hardening \
--enable-optimize="-O2" \ --enable-optimize="-O2" \
--enable-rust-simd \ --enable-rust-simd \
--enable-official-branding \ --enable-official-branding \
--enable-update-channel=release \ --enable-update-channel=release \
--with-distribution-id=org.openmamba \
--with-google-api-keyfile=`pwd`/google-api-key \
--with-system-zlib \ --with-system-zlib \
--with-system-bz2 \ --with-system-bz2 \
--with-system-icu \ --with-system-icu \
@ -230,7 +229,6 @@ export MOZ_SOURCE_CHANGESET=1
--with-system-libvpx \ --with-system-libvpx \
--with-system-nspr \ --with-system-nspr \
--with-system-nss \ --with-system-nss \
--enable-system-hunspell \
--enable-system-sqlite \ --enable-system-sqlite \
--enable-system-ffi \ --enable-system-ffi \
--enable-alsa \ --enable-alsa \
@ -243,11 +241,16 @@ export MOZ_SOURCE_CHANGESET=1
--enable-accessibility \ --enable-accessibility \
--enable-extensions=default \ --enable-extensions=default \
--disable-strip \ --disable-strip \
%ifarch %{ix86}
--disable-debug-symbols \
%endif
%if %{testing} %if %{testing}
--enable-image-decoders=all \ --enable-image-decoders=all \
--enable-image-encoders=all \ --enable-image-encoders=all \
%endif %endif
# --enable-pie \
# --disable-necko-wifi # --disable-necko-wifi
# --enable-chrome-format=omni # --enable-chrome-format=omni
@ -312,26 +315,26 @@ export MOZ_SOURCE_CHANGESET=1
#%define makeflags %{?_smp_mflags} #%define makeflags %{?_smp_mflags}
#%endif #%endif
../mach build ./mach build
../mach buildsymbols ./mach buildsymbols
#% make %{makeflags} MOZ_SERVICES_SYNC="1" #% make %{makeflags} MOZ_SERVICES_SYNC="1"
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd build #cd build
OBJDIR=../obj-%{_target_cpu}-pc-linux-gnu OBJDIR=obj-%{_target_cpu}-pc-linux-gnu
%ifarch %{ix86} %ifarch %{ix86}
OBJDIR=../obj-i686-pc-linux-gnu OBJDIR=obj-i686-pc-linux-gnu
%endif %endif
cat > ${OBJDIR}/dist/bin/browser/chrome/en-US/locale/branding/browserconfig.properties << EOF #cat > ${OBJDIR}/dist/bin/browser/chrome/en-US/locale/branding/browserconfig.properties << EOF
browser.startup.homepage=%{default_browser_homepage} #browser.startup.homepage=%{default_browser_homepage}
browser.startup.homepage_reset=%{default_browser_homepage} #browser.startup.homepage_reset=%{default_browser_homepage}
EOF #EOF
sed -i -e 's|@BINPATH@/browser/@PREF_DIR@/firefox.js|@BINPATH@/browser/@PREF_DIR@/all-openmamba.js\n&|' \ sed -i -e 's|@BINPATH@/browser/@PREF_DIR@/firefox.js|@BINPATH@/browser/@PREF_DIR@/all-openmamba.js\n&|' \
../browser/installer/package-manifest.in ./browser/installer/package-manifest.in
#cp -p %{SOURCE10} ${OBJDIR}/dist/bin/browser/defaults/profile/bookmarks.html #cp -p %{SOURCE10} ${OBJDIR}/dist/bin/browser/defaults/profile/bookmarks.html
@ -340,11 +343,12 @@ sed -i -e 's|@BINPATH@/browser/@PREF_DIR@/firefox.js|@BINPATH@/browser/@PREF_DIR
#_EOF #_EOF
export DESTDIR=%{buildroot} export DESTDIR=%{buildroot}
../mach install ./mach install
#% makeinstall libdir=%{_libdir} #% makeinstall libdir=%{_libdir}
cat > %{buildroot}%{firefoxappdir}/defaults/pref/local-prefs.js << _EOF install -d -m0755 %{buildroot}%{firefoxappdir}/browser/defaults/preferences
cat > %{buildroot}%{firefoxappdir}/browser/defaults/preferences/vendor.js << _EOF
// Use LANG environment variable to choose locale // Use LANG environment variable to choose locale
pref("intl.locale.requested", ""); pref("intl.locale.requested", "");
@ -370,6 +374,20 @@ pref("general.useragent.vendor", "openmamba");
pref("general.useragent.vendorSub", "%{version}-%{release}"); pref("general.useragent.vendorSub", "%{version}-%{release}");
_EOF _EOF
install -d -m0755 %{buildroot}%{firefoxappdir}/distribution
cat > %{buildroot}%{firefoxappdir}/distribution/distribution.ini << END
[Global]
id=openmamba
version=1.0
about=Mozilla Firefox for openmamba GNU/Linux
[Preferences]
app.distributor=openmamba
app.distributor.channel=firefox
app.partner.openmamba=openmamba
END
mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --vendor mozilla --dir %{buildroot}%{_datadir}/applications %{SOURCE2} desktop-file-install --vendor mozilla --dir %{buildroot}%{_datadir}/applications %{SOURCE2}
desktop-file-install --vendor mozilla --dir %{buildroot}%{_datadir}/applications %{SOURCE7} desktop-file-install --vendor mozilla --dir %{buildroot}%{_datadir}/applications %{SOURCE7}
@ -378,7 +396,7 @@ desktop-file-install --vendor mozilla --dir %{buildroot}%{_datadir}/applications
for i in 16 22 24 32 48 256; do for i in 16 22 24 32 48 256; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps
convert -geometry ${i}x${i} ../browser/branding/official/default${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/firefox.png convert -geometry ${i}x${i} ./browser/branding/official/default${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/firefox.png
done done
#rm -f %{buildroot}%{_bindir}/firefox #rm -f %{buildroot}%{_bindir}/firefox
@ -388,7 +406,7 @@ done
# #
#chmod 755 %{buildroot}%{_bindir}/firefox #chmod 755 %{buildroot}%{_bindir}/firefox
install -pm 644 ../LICENSE %{buildroot}%{firefoxappdir}/ #install -pm 644 ./LICENSE %{buildroot}%{firefoxappdir}/
rm -rf %{buildroot}%{firefoxappdir}/firefox rm -rf %{buildroot}%{firefoxappdir}/firefox
ln -s firefox-bin %{buildroot}%{firefoxappdir}/firefox ln -s firefox-bin %{buildroot}%{firefoxappdir}/firefox
@ -443,11 +461,16 @@ includedir=%{firefoxincludedir}
Name: Mozilla Plug-In API Name: Mozilla Plug-In API
Description: Mozilla Plug-In API Description: Mozilla Plug-In API
Version: 61.0.2 Version: 64.0
Cflags: -I\${includedir} -DXP_UNIX Cflags: -I\${includedir} -DXP_UNIX
_EOF _EOF
# 64.0: workaround
for f in libnspr4.so libnssutil3.so libplc4.so libplds4.so; do
ln -s ../$f %{buildroot}%{firefoxappdir}/$f
done
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -509,7 +532,8 @@ fi
#%{firefoxappdir}/run-mozilla.sh #%{firefoxappdir}/run-mozilla.sh
%{firefoxappdir}/browser/chrome.manifest %{firefoxappdir}/browser/chrome.manifest
%{firefoxappdir}/browser/omni.ja %{firefoxappdir}/browser/omni.ja
%{firefoxappdir}/LICENSE %dir %{firefoxappdir}/distribution
%{firefoxappdir}/distribution/distribution.ini
%attr(644, root, root) %{firefoxappdir}/browser/blocklist.xml %attr(644, root, root) %{firefoxappdir}/browser/blocklist.xml
%dir %{firefoxappdir}/browser %dir %{firefoxappdir}/browser
#%dir %{firefoxappdir}/browser/components #%dir %{firefoxappdir}/browser/components
@ -560,7 +584,7 @@ fi
#%{_libdir}/firefox-*/components/* #%{_libdir}/firefox-*/components/*
%{firefoxappdir}/crashreporter %{firefoxappdir}/crashreporter
%{firefoxappdir}/defaults/pref/channel-prefs.js %{firefoxappdir}/defaults/pref/channel-prefs.js
%{firefoxappdir}/defaults/pref/local-prefs.js %{firefoxappdir}/browser/defaults/preferences/vendor.js
%{firefoxappdir}/dependentlibs.list %{firefoxappdir}/dependentlibs.list
%{firefoxappdir}/dictionaries %{firefoxappdir}/dictionaries
%{firefoxappdir}/hyphenation %{firefoxappdir}/hyphenation
@ -582,9 +606,14 @@ fi
%{firefoxappdir}/libxul.so %{firefoxappdir}/libxul.so
%{firefoxappdir}/omni.ja %{firefoxappdir}/omni.ja
%{firefoxappdir}/plugin-container %{firefoxappdir}/plugin-container
%{_libdir}/firefox/libnspr4.so
%{_libdir}/firefox/libnssutil3.so
%{_libdir}/firefox/libplc4.so
%{_libdir}/firefox/libplds4.so
#%{firefoxappdir}/updater #%{firefoxappdir}/updater
#%dir %{_datadir}/idl/firefox-* #%dir %{_datadir}/idl/firefox-*
#%{_datadir}/idl/firefox-*/* #%{_datadir}/idl/firefox-*/*
%doc LICENSE
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -874,6 +903,19 @@ Greek language support for Firefox.
%defattr(-,root,root) %defattr(-,root,root)
%{firefoxappdir}/browser/extensions/langpack-el@firefox.mozilla.org.xpi %{firefoxappdir}/browser/extensions/langpack-el@firefox.mozilla.org.xpi
%package i18n-en-CA
Summary: English (Canada) language support for Firefox
Group: System/Internationalization
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
#Requires: hunspell-en
%description i18n-en-CA
English (British) language support for Firefox.
%files i18n-en-CA
%defattr(-,root,root)
%{firefoxappdir}/browser/extensions/langpack-en-CA@firefox.mozilla.org.xpi
%package i18n-en-GB %package i18n-en-GB
Summary: English (British) language support for Firefox Summary: English (British) language support for Firefox
Group: System/Internationalization Group: System/Internationalization
@ -1904,6 +1946,12 @@ Zulu language support for Firefox.
#%{firefoxappdir}/browser/extensions/langpack-zu@firefox.mozilla.org.xpi #%{firefoxappdir}/browser/extensions/langpack-zu@firefox.mozilla.org.xpi
%changelog %changelog
* Sun Jan 06 2019 Automatic Build System <autodist@mambasoft.it> 64.0-1mamba
- automatic version update by autodist
* Sun Sep 16 2018 Automatic Build System <autodist@mambasoft.it> 62.0-1mamba
- automatic version update by autodist
* Wed Aug 08 2018 Automatic Build System <autodist@mambasoft.it> 61.0.2-1mamba * Wed Aug 08 2018 Automatic Build System <autodist@mambasoft.it> 61.0.2-1mamba
- automatic version update by autodist - automatic version update by autodist