|
|
|
@ -6,34 +6,30 @@
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global rhel_minor_version -1
|
|
|
|
|
%if 0%{?flatpak:1}
|
|
|
|
|
%global rhel_minor_version 4
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8"
|
|
|
|
|
%global rhel_minor_version 5
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8_4"
|
|
|
|
|
%global rhel_minor_version 4
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8_3"
|
|
|
|
|
%global rhel_minor_version 3
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8_2"
|
|
|
|
|
%global rhel_minor_version 2
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8_1"
|
|
|
|
|
%global rhel_minor_version 1
|
|
|
|
|
%endif
|
|
|
|
|
%if "%{?dist}" == ".el8_0"
|
|
|
|
|
%global rhel_minor_version 0
|
|
|
|
|
%endif
|
|
|
|
|
%{lua:
|
|
|
|
|
function dist_to_rhel_minor(str, start)
|
|
|
|
|
match = string.match(str, ".module%+el8.%d+")
|
|
|
|
|
if match then
|
|
|
|
|
return string.sub(match, 13)
|
|
|
|
|
end
|
|
|
|
|
match = string.match(str, ".el8_%d+")
|
|
|
|
|
if match then
|
|
|
|
|
return string.sub(match, 6)
|
|
|
|
|
end
|
|
|
|
|
match = string.match(str, ".el8")
|
|
|
|
|
if match then
|
|
|
|
|
return 5
|
|
|
|
|
end
|
|
|
|
|
return -1
|
|
|
|
|
end}
|
|
|
|
|
|
|
|
|
|
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
|
|
|
|
|
|
|
|
|
|
%global system_nss 1
|
|
|
|
|
%global bundle_nss 0
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
%if 0%{?rhel_minor_version} < 2
|
|
|
|
|
%if %{rhel_minor_version} < 2
|
|
|
|
|
%global bundle_nss 1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
@ -155,7 +151,7 @@
|
|
|
|
|
%define use_bundled_yasm 0
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
%if 0%{?rhel_minor_version} <= 2
|
|
|
|
|
%if %{rhel_minor_version} <= 2
|
|
|
|
|
%define use_bundled_nodejs 1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
@ -197,8 +193,8 @@
|
|
|
|
|
%global build_langpacks 1
|
|
|
|
|
Summary: Mozilla Thunderbird mail/newsgroup client
|
|
|
|
|
Name: thunderbird
|
|
|
|
|
Version: 78.11.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 78.12.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
URL: http://www.mozilla.org/projects/thunderbird/
|
|
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
@ -213,7 +209,7 @@ ExclusiveArch: i686 x86_64 ppc64 s390x
|
|
|
|
|
# From ftp://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?ext_version}/source
|
|
|
|
|
Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz
|
|
|
|
|
%if %{build_langpacks}
|
|
|
|
|
Source1: thunderbird-langpacks-%{version}%{?ext_version}-20210531.tar.xz
|
|
|
|
|
Source1: thunderbird-langpacks-%{version}%{?ext_version}-20210712.tar.xz
|
|
|
|
|
# Locales for lightning
|
|
|
|
|
%endif
|
|
|
|
|
Source2: cbindgen-vendor-0.14.3.tar.xz
|
|
|
|
@ -406,7 +402,7 @@ BuildRequires: openssl-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
%if 0%{?rhel_minor_version} >= 3
|
|
|
|
|
%if %{rhel_minor_version} >= 3
|
|
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3)
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: pipewire-devel
|
|
|
|
@ -535,7 +531,7 @@ Mozilla Thunderbird is a standalone mail and newsgroup client.
|
|
|
|
|
%prep
|
|
|
|
|
echo "Build environment"
|
|
|
|
|
echo "dist %{?dist}"
|
|
|
|
|
echo "RHEL 8 minor version: %{?rhel_minor_version}"
|
|
|
|
|
echo "RHEL 8 minor version: %{rhel_minor_version}"
|
|
|
|
|
echo "use_bundled_ffi %{?use_bundled_ffi}"
|
|
|
|
|
echo "use_bundled_python_2 %{?use_bundled_python_2}"
|
|
|
|
|
echo "use_bundled_python_3 %{?use_bundled_python_3}"
|
|
|
|
@ -573,8 +569,13 @@ echo "use_bundled_yasm %{?use_bundled_yasm}"
|
|
|
|
|
%patch215 -p1 -b .addons
|
|
|
|
|
%patch219 -p1 -b .rhbz-1173156
|
|
|
|
|
%patch224 -p1 -b .1170092
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
%if 0%{?rhel_minor_version} >= 3
|
|
|
|
|
%if %{rhel_minor_version} >= 3
|
|
|
|
|
# fixing /usr/include in the patch for the flatpak build
|
|
|
|
|
%if 0%{?flatpak}
|
|
|
|
|
sed -ie 's|/usr/include|/app/include|' %_sourcedir/firefox-pipewire-0-3.patch
|
|
|
|
|
%endif
|
|
|
|
|
%patch235 -p1 -b .pipewire-0-3
|
|
|
|
|
%else
|
|
|
|
|
%patch231 -p1 -b .pipewire
|
|
|
|
@ -1256,6 +1257,7 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
|
|
|
|
|
rm -rf %{buildroot}%{_bindir}/thunderbird
|
|
|
|
|
%{__rm} -rf %{buildroot}%{_bindir}/thunderbird
|
|
|
|
|
%{__cat} %{SOURCE21} > %{buildroot}%{_bindir}/thunderbird
|
|
|
|
|
sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{_bindir}/thunderbird
|
|
|
|
|
%if 0%{?bundle_gtk3}
|
|
|
|
|
sed -i -e 's|%RHEL_ENV_VARS%|export XDG_DATA_DIRS="$MOZ_LIB_DIR/thunderbird/bundled/share:/usr/share:$XDG_DATA_DIRS"\nexport FONTCONFIG_FILE="$MOZ_LIB_DIR/thunderbird/bundled/etc/fonts/fonts.conf"|' %{buildroot}%{_bindir}/thunderbird
|
|
|
|
|
%else
|
|
|
|
@ -1346,6 +1348,55 @@ test -f "%{buildroot}%{mozappdir}/distribution/extensions/unicode-width/scripts/
|
|
|
|
|
# Removing librnp.so - we cannot deliver that in RHELs
|
|
|
|
|
%{__rm} -rf %{buildroot}%{mozappdir}/librnp.so
|
|
|
|
|
|
|
|
|
|
# Register as an application to be visible in the software center
|
|
|
|
|
#
|
|
|
|
|
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
|
|
|
|
# project, translated and installed into the right place during `make install`.
|
|
|
|
|
#
|
|
|
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
|
|
|
#
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
|
|
|
|
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/mozilla-thunderbird.appdata.xml <<EOF
|
|
|
|
|
<?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>
|
|
|
|
|
<project_license>MPLv1.1 or GPLv2+ or LGPLv2+</project_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>
|
|
|
|
|
<releases>
|
|
|
|
|
<release version="%{version}" date="$(date '+%F')"/>
|
|
|
|
|
</releases>
|
|
|
|
|
<!-- FIXME: change this to an upstream email address for spec updates
|
|
|
|
|
<updatecontact>someone_who_cares@upstream_project.org</updatecontact>
|
|
|
|
|
-->
|
|
|
|
|
</application>
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
@ -1394,6 +1445,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%attr(755,root,root) %{_bindir}/thunderbird
|
|
|
|
|
%{_datadir}/appdata/*.appdata.xml
|
|
|
|
|
%attr(644,root,root) %{_datadir}/applications/thunderbird.desktop
|
|
|
|
|
%dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id}
|
|
|
|
|
%dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id}
|
|
|
|
@ -1460,6 +1512,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
#===============================================================================
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 16 2021 Jan Horak <jhorak@redhat.com> - 78.12.0-3
|
|
|
|
|
- Rebuild to pickup older nss
|
|
|
|
|
|
|
|
|
|
* Mon Jul 12 2021 Eike Rathke <erack@redhat.com> - 78.12.0-2
|
|
|
|
|
- Update to 78.12.0 build2
|
|
|
|
|
|
|
|
|
|
* Thu Jul 08 2021 Eike Rathke <erack@redhat.com> - 78.12.0-1
|
|
|
|
|
- Update to 78.12.0 build1
|
|
|
|
|
|
|
|
|
|
* Mon May 31 2021 Eike Rathke <erack@redhat.com> - 78.11.0-1
|
|
|
|
|
- Update to 78.11.0 build1
|
|
|
|
|
|
|
|
|
|