split off librnp and make it possible to use a different OpenPGP backend

This commit is contained in:
Fabio Valentini 2021-04-08 23:20:28 +02:00
parent 1dcf282298
commit edf3b30dbe
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

View File

@ -90,7 +90,7 @@ ExcludeArch: s390x
Summary: Mozilla Thunderbird mail/newsgroup client Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird Name: thunderbird
Version: 78.10.1 Version: 78.10.1
Release: 2%{?dist} Release: 3%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/ URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz
@ -204,11 +204,28 @@ BuildRequires: nasm >= 1.13
BuildRequires: icu BuildRequires: icu
%endif %endif
# require any OpenPGP backend with the librnp interface
Requires: thunderbird-librnp%{?_isa}
# prefer the librnp implementation bundled with thunderbird
Suggests: thunderbird-librnp-rnp%{?_isa}
Suggests: u2f-hidraw-policy Suggests: u2f-hidraw-policy
%description %description
Mozilla Thunderbird is a standalone mail and newsgroup client. Mozilla Thunderbird is a standalone mail and newsgroup client.
%package librnp-rnp
Summary: OpenPGP implementation for Thunderbird based on RNP
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: thunderbird-librnp
Provides: thunderbird-librnp%{?_isa}
Conflicts: thunderbird-librnp%{?_isa}
%description librnp-rnp
The thunderbird-librnp-rnp package contains an OpenPGP implementation
based on RNP.
%files librnp-rnp
%{mozappdir}/librnp.so
%package wayland %package wayland
Summary: Thunderbird Wayland launcher. Summary: Thunderbird Wayland launcher.
Requires: %{name} Requires: %{name}
@ -719,6 +736,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{mozappdir}/thunderbird-bin %{mozappdir}/thunderbird-bin
%{mozappdir}/thunderbird %{mozappdir}/thunderbird
%{mozappdir}/*.so %{mozappdir}/*.so
%exclude %{mozappdir}/librnp.so
%{mozappdir}/platform.ini %{mozappdir}/platform.ini
%{mozappdir}/application.ini %{mozappdir}/application.ini
%{mozappdir}/features/*.xpi %{mozappdir}/features/*.xpi
@ -749,6 +767,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#=============================================================================== #===============================================================================
%changelog %changelog
* Sat May 15 2021 Fabio Valentini <decathorpe@gmail.com> - 78.10.1-3
- Split off librnp and make it possible to use a different OpenPGP backend.
* Wed May 05 2021 Jan Horak <jhorak@redhat.com> - 78.10.1-2 * Wed May 05 2021 Jan Horak <jhorak@redhat.com> - 78.10.1-2
- Fixed source0 - Fixed source0