|
@@ -1,10 +1,6 @@
|
|
-%bcond_without clang
|
|
+%bcond_with clang
|
|
|
|
|
|
-# do not include minor version number in MOZILLA_FIVE_HOME
|
|
+%global disable_elfhack 1
|
|
-%define tbmajor 60.3.3
|
|
|
|
-#%define tbversion %{tbmajor}.10
|
|
|
|
-%define tbversion %{tbmajor}
|
|
|
|
-%define tbrelease 1%{?_dist_release}
|
|
|
|
|
|
|
|
# The tarball is pretty inconsistent with directory structure.
|
|
# The tarball is pretty inconsistent with directory structure.
|
|
# Sometimes there is a top level directory. That goes here.
|
|
# Sometimes there is a top level directory. That goes here.
|
|
@@ -16,7 +12,6 @@
|
|
|
|
|
|
%define objdir objdir
|
|
%define objdir objdir
|
|
%define mozappdir %{_libdir}/%{name}
|
|
%define mozappdir %{_libdir}/%{name}
|
|
-%define version_internal %{tbmajor}
|
|
|
|
%define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
|
|
%define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
|
|
%global langpackdir %{mozappdir}/distribution/extensions
|
|
%global langpackdir %{mozappdir}/distribution/extensions
|
|
|
|
|
|
@@ -41,14 +36,14 @@
|
|
Summary: Thunderbird Community Edition, Mail/newsgroup client
|
|
Summary: Thunderbird Community Edition, Mail/newsgroup client
|
|
Summary(ja): Thunderbirdコミュニティエディション, メール・ニュースクライアント
|
|
Summary(ja): Thunderbirdコミュニティエディション, メール・ニュースクライアント
|
|
Name: thunderbird
|
|
Name: thunderbird
|
|
-Version: %{tbversion}
|
|
+Version: 68.1.2
|
|
-Release: %{tbrelease}
|
|
+Release: 1%{?_dist_release}
|
|
URL: http://www.mozilla.org/projects/thunderbird/
|
|
URL: http://www.mozilla.org/projects/thunderbird/
|
|
License: MPL
|
|
License: MPL
|
|
Group: Applications/Internet
|
|
Group: Applications/Internet
|
|
|
|
|
|
-Source0: ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{tbversion}/source/thunderbird-%{version}.source.tar.xz
|
|
+Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{tbversion}/source/thunderbird-%{version}.source.tar.xz
|
|
-Source1: thunderbird-langpacks-%{version}-20181205.tar.xz
|
|
+Source1: thunderbird-langpacks-%{version}.tar.xz
|
|
Source2: lightning-langpacks-%{version}.tar.xz
|
|
Source2: lightning-langpacks-%{version}.tar.xz
|
|
Source3: get-calendar-langpacks.sh
|
|
Source3: get-calendar-langpacks.sh
|
|
Source4: thunderbird-legacy-aurora.tar.xz
|
|
Source4: thunderbird-legacy-aurora.tar.xz
|
|
@@ -61,27 +56,45 @@ Source41: thunderbird-unofficial-branding-tb-brand.dtd
|
|
Source42: thunderbird-unofficial-branding-tb-ja-brand.properties
|
|
Source42: thunderbird-unofficial-branding-tb-ja-brand.properties
|
|
Source43: thunderbird-unofficial-branding-tb-ja-brand.dtd
|
|
Source43: thunderbird-unofficial-branding-tb-ja-brand.dtd
|
|
Source44: tb-about-wordmark.svg
|
|
Source44: tb-about-wordmark.svg
|
|
|
|
+Source99: cbindgen-vendor.tar.xz
|
|
Source100: find-external-requires
|
|
Source100: find-external-requires
|
|
-Source1010: mozconfig-thunderbird-vine6
|
|
|
|
-Source1020: mozconfig-thunderbird-vine7
|
|
|
|
|
|
|
|
-# upstream patch
|
|
+# for newer rust
|
|
|
|
+Source900: https://raw.githubusercontent.com/servo/rust-cssparser/master/src/parser.rs
|
|
|
|
|
|
-# Mozilla (XULRunner) patches
|
|
+Source1010: mozconfig-thunderbird-vine6
|
|
-Patch37: build-jit-atomic-always-lucky.patch
|
|
+Source1020: mozconfig-thunderbird-vine7
|
|
|
|
+Source1030: thunderbird.metainfo.xml
|
|
|
|
+
|
|
|
|
+%define tbversion %{version}
|
|
|
|
+%define version_internal %{version}
|
|
|
|
+
|
|
|
|
+# Build patches
|
|
|
|
+Patch9: mozilla-build-arm.patch
|
|
|
|
+Patch226: rhbz-1354671.patch
|
|
|
|
+Patch416: firefox-SIOCGSTAMP.patch
|
|
|
|
+Patch417: build-aarch64-user_vfp.patch
|
|
|
|
+Patch418: mozilla-1512162.patch
|
|
|
|
+Patch105: thunderbird-debug.patch
|
|
|
|
+
|
|
|
|
+# PPC fix
|
|
|
|
+Patch304: mozilla-1245783.patch
|
|
|
|
+Patch306: mozilla-1353817.patch
|
|
Patch307: build-disable-elfhack.patch
|
|
Patch307: build-disable-elfhack.patch
|
|
-Patch417: bug1375074-save-restore-x28.patch
|
|
|
|
|
|
|
|
# Fedora specific patches
|
|
# Fedora specific patches
|
|
-Patch310: disable-dbus-remote.patch
|
|
+
|
|
-Patch312: thunderbird-dbus-remote.patch
|
|
+# Upstream patches
|
|
|
|
+Patch402: mozilla-526293.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
%if %{with clang}
|
|
%if %{with clang}
|
|
-BuildRequires: clang-devel, lld, llvm-devel
|
|
+BuildRequires: lld
|
|
%endif
|
|
%endif
|
|
BuildRequires: rust, cargo
|
|
BuildRequires: rust, cargo
|
|
|
|
+BuildRequires: clang-devel
|
|
|
|
+BuildRequires: llvm-devel
|
|
BuildRequires: pango-devel
|
|
BuildRequires: pango-devel
|
|
BuildRequires: cairo-devel >= %{cairo_version}
|
|
BuildRequires: cairo-devel >= %{cairo_version}
|
|
%if %{build_vine7}
|
|
%if %{build_vine7}
|
|
@@ -123,7 +136,9 @@ BuildRequires: startup-notification-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: yasm
|
|
BuildRequires: yasm
|
|
-BuildRequires: autoconf213
|
|
+BuildRequires: nodejs
|
|
|
|
+BuildRequires: nasm
|
|
|
|
+BuildRequires: autoconf213
|
|
%if %{build_vine7}
|
|
%if %{build_vine7}
|
|
Requires: sqlite3 >= %{sqlite_version}
|
|
Requires: sqlite3 >= %{sqlite_version}
|
|
%endif
|
|
%endif
|
|
@@ -135,7 +150,7 @@ Provides: MozillaThunderbird = %{version}
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
-Packager: daisuke, ryoichi, kazutaka, Takemikaduchi
|
|
+Packager: daisuke, ryoichi, kazutaka
|
|
|
|
|
|
AutoProv: 0
|
|
AutoProv: 0
|
|
%define _use_internal_dependency_generator 0
|
|
%define _use_internal_dependency_generator 0
|
|
@@ -156,15 +171,27 @@ cd %{tarballdir}
|
|
# Mozilla (XULRunner) patches
|
|
# Mozilla (XULRunner) patches
|
|
#cd mozilla
|
|
#cd mozilla
|
|
|
|
|
|
-%patch310 -p1 -b .disable-dbus-remote
|
|
+# Build patches
|
|
|
|
+%patch9 -p2 -b .arm
|
|
|
|
+%patch105 -p1 -b .debug
|
|
|
|
+
|
|
|
|
+%patch304 -p1 -b .1245783
|
|
|
|
|
|
-%patch37 -p1 -b .jit-atomic-lucky
|
|
+#ARM run-time patch
|
|
-%patch417 -p1 -b .bug1375074-save-restore-x28
|
|
+%patch416 -p1 -b .SIOCGSTAMP
|
|
|
|
+%patch417 -p1 -b .aarch64-user_vfp
|
|
|
|
+%patch418 -p1 -b .mozbz-1512162
|
|
|
|
|
|
|
|
+%patch306 -p1 -b .1353817
|
|
|
|
+%if 0%{?disable_elfhack}
|
|
%patch307 -p1 -b .elfhack
|
|
%patch307 -p1 -b .elfhack
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+%patch402 -p1 -b .526293
|
|
|
|
|
|
-# TODO - needs fixes
|
|
+# replace source for newer rust
|
|
-%patch312 -p1 -b .thunderbird-dbus-remote
|
|
+cp -f %{SOURCE900} ./third_party/rust/cssparser/src/
|
|
|
|
+sed -i -e 's/"files":{[^}]*}/"files":{ }/' ./third_party/rust/cssparser/.cargo-checksum.json
|
|
|
|
|
|
%{__rm} -f .mozconfig
|
|
%{__rm} -f .mozconfig
|
|
%if %{build_vine6}
|
|
%if %{build_vine6}
|
|
@@ -195,7 +222,24 @@ echo "ac_add_options --enable-linker=lld" >> .mozconfig
|
|
|
|
|
|
%build
|
|
%build
|
|
cd %{tarballdir}
|
|
cd %{tarballdir}
|
|
-autoconf-2.13
|
|
+
|
|
|
|
+# install bundled cbindgen
|
|
|
|
+mkdir -p my_rust_vendor
|
|
|
|
+cd my_rust_vendor
|
|
|
|
+%{__tar} xf %{SOURCE99}
|
|
|
|
+cd -
|
|
|
|
+mkdir -p .cargo
|
|
|
|
+cat > .cargo/config <<EOL
|
|
|
|
+[source.crates-io]
|
|
|
|
+replace-with = "vendored-sources"
|
|
|
|
+
|
|
|
|
+[source.vendored-sources]
|
|
|
|
+directory = "`pwd`/my_rust_vendor"
|
|
|
|
+EOL
|
|
|
|
+
|
|
|
|
+env CARGO_HOME=.cargo cargo install cbindgen
|
|
|
|
+export PATH=`pwd`/.cargo/bin:$PATH
|
|
|
|
+
|
|
|
|
|
|
INTERNAL_GECKO=%{version_internal}
|
|
INTERNAL_GECKO=%{version_internal}
|
|
MOZ_APP_DIR=%{mozappdir}
|
|
MOZ_APP_DIR=%{mozappdir}
|
|
@@ -203,14 +247,13 @@ MOZ_APP_DIR=%{mozappdir}
|
|
# Update the various config.guess to upstream release for aarch64 support
|
|
# Update the various config.guess to upstream release for aarch64 support
|
|
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
|
|
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
|
|
|
|
|
|
-MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | \
|
|
+MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | \
|
|
- %{__sed} -e 's/-Wall//')
|
|
+ %{__sed} -e 's/-Wall//')
|
|
-#rhbz#1037353
|
|
+MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
|
|
-MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
|
|
+MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fpermissive"
|
|
|
|
+MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
|
|
|
|
+MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/')
|
|
|
|
|
|
-export CFLAGS=`echo $MOZ_OPT_FLAGS |sed -e 's/-fpermissive//g'`
|
|
|
|
-export CXXFLAGS=$MOZ_OPT_FLAGS
|
|
|
|
-export LDFLAGS=$MOZ_LINK_FLAGS
|
|
|
|
|
|
|
|
export PREFIX='%{_prefix}'
|
|
export PREFIX='%{_prefix}'
|
|
export LIBDIR='%{_libdir}'
|
|
export LIBDIR='%{_libdir}'
|
|
@@ -222,8 +265,20 @@ export LLVM_PROFDATA="llvm-profdata"
|
|
export AR="llvm-ar"
|
|
export AR="llvm-ar"
|
|
export NM="llvm-nm"
|
|
export NM="llvm-nm"
|
|
export RANLIB="llvm-ranlib"
|
|
export RANLIB="llvm-ranlib"
|
|
|
|
+MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wno-ignored-optimization-argument"
|
|
|
|
+%else
|
|
|
|
+export CC=gcc
|
|
|
|
+export CXX=g++
|
|
|
|
+export AR="gcc-ar"
|
|
|
|
+export NM="gcc-nm"
|
|
|
|
+export RANLIB="gcc-ranlib"
|
|
|
|
+MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+export CFLAGS=`echo $MOZ_OPT_FLAGS |sed -e 's/-fpermissive//g'`
|
|
|
|
+export CXXFLAGS=$MOZ_OPT_FLAGS
|
|
|
|
+export LDFLAGS=$MOZ_LINK_FLAGS
|
|
|
|
+
|
|
MOZ_SMP_FLAGS=-j1
|
|
MOZ_SMP_FLAGS=-j1
|
|
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
|
|
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
|
|
# however builds tend to fail on other arches when building in parallel.
|
|
# however builds tend to fail on other arches when building in parallel.
|
|
@@ -341,44 +396,8 @@ touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat
|
|
#
|
|
#
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
#
|
|
#
|
|
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
|
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
|
|
-cat > $RPM_BUILD_ROOT%{_datadir}/appdata/mozilla-thunderbird.appdata.xml <<EOF
|
|
+install -m644 %{SOURCE1030} $RPM_BUILD_ROOT%{_datadir}/metainfo/mozilla-thunderbird.metainfo.xml
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
-<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
|
|
-<!--
|
|
|
|
-BugReportURL: https://bugzilla.mozilla.org/show_bug.cgi?id=1071065
|
|
|
|
-SentUpstream: 2014-09-22
|
|
|
|
--->
|
|
|
|
-<application>
|
|
|
|
- <id type="desktop">mozilla-thunderbird.desktop</id>
|
|
|
|
- <metadata_license>CC0-1.0</metadata_license>
|
|
|
|
- <description>
|
|
|
|
- <p>
|
|
|
|
- Thunderbird is an email client that allows you to read, write and organise all
|
|
|
|
- of your email messages. It is compatible with most email accounts, including the
|
|
|
|
- most popular webmail services.
|
|
|
|
- </p>
|
|
|
|
- <p>
|
|
|
|
- Thunderbird is designed by Mozilla, a global community working together to make
|
|
|
|
- the Internet better. Mozilla believe that the Internet should be open, public,
|
|
|
|
- and accessible to everyone without any restrictions.
|
|
|
|
- </p>
|
|
|
|
- <ul>
|
|
|
|
- <li>Easier than ever to set up a new e-mail account</li>
|
|
|
|
- <li>Awesome search allows you to find your messages fast</li>
|
|
|
|
- <li>Thousands of add-ons give you the freedom to make Thunderbird your own</li>
|
|
|
|
- </ul>
|
|
|
|
- </description>
|
|
|
|
- <url type="homepage">http://www.mozilla.org/thunderbird/</url>
|
|
|
|
- <screenshots>
|
|
|
|
- <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mozilla-thunderbird/a.png</screenshot>
|
|
|
|
- </screenshots>
|
|
|
|
- <!-- FIXME: change this to an upstream email address for spec updates
|
|
|
|
- <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
|
|
|
|
- -->
|
|
|
|
-</application>
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
|
|
|
|
#install -Dm755 %{SOURCE30} $RPM_BUILD_ROOT/%{mozappdir}/open-browser.sh
|
|
#install -Dm755 %{SOURCE30} $RPM_BUILD_ROOT/%{mozappdir}/open-browser.sh
|
|
#%{__sed} -i -e 's|LIBDIR|%{_libdir}|g' $RPM_BUILD_ROOT/%{mozappdir}/open-browser.sh
|
|
#%{__sed} -i -e 's|LIBDIR|%{_libdir}|g' $RPM_BUILD_ROOT/%{mozappdir}/open-browser.sh
|
|
@@ -411,7 +430,7 @@ fi
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%attr(755,root,root) %{_bindir}/thunderbird
|
|
%attr(755,root,root) %{_bindir}/thunderbird
|
|
%attr(644,root,root) %{_datadir}/applications/vine-thunderbird.desktop
|
|
%attr(644,root,root) %{_datadir}/applications/vine-thunderbird.desktop
|
|
-%{_datadir}/appdata/*.appdata.xml
|
|
+%{_datadir}/metainfo/*.xml
|
|
%dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id}
|
|
%dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id}
|
|
%dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id}
|
|
%dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id}
|
|
%{_datadir}/icons/hicolor/16x16/apps/thunderbird.png
|
|
%{_datadir}/icons/hicolor/16x16/apps/thunderbird.png
|
|
@@ -427,6 +446,13 @@ fi
|
|
#===============================================================================
|
|
#===============================================================================
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Oct 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 68.1.2-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
|
|
+* Thu Oct 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 68.1.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- replaced all patches.
|
|
|
|
+
|
|
* Sun Dec 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3.3-1
|
|
* Sun Dec 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3.3-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- replaced all patches.
|
|
- replaced all patches.
|