From 5a2a572b13b30f6f1462c75ee72632fe52a1f85d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 15 Sep 2019 10:09:24 +0200 Subject: [PATCH] - up to 2.1.2 - drop deprecated packages --- enigmail.spec | 126 +++++++++++++------------------------------------- 1 file changed, 33 insertions(+), 93 deletions(-) diff --git a/enigmail.spec b/enigmail.spec index 8ef6ceb..8a43ca9 100644 --- a/enigmail.spec +++ b/enigmail.spec @@ -2,33 +2,23 @@ # Conditional build: %bcond_without thunderbird # Mozilla Thunderbird addon %bcond_without seamonkey # Mozilla SeaMonkey addon -%bcond_with iceape # Iceape addon -# aliases: -%bcond_without mozilla # build both Mozilla packages -%bcond_with iceapps # build Ice* packages - -%if %{with mozilla} -%define with_thunderbird 1 -%define with_seamonkey 1 -%endif -%if %{without iceapps} -%undefine with_iceape -%endif + Summary: Mozilla mail clients extension for the GnuPG authentication and encryption features Summary(pl.UTF-8): Rozszerzenie klientów pocztowych Mozilla do uwierzytelniania i szyfrowania w oparciu o GnuPG Name: enigmail -Version: 1.9.5 -Release: 4 +Version: 2.1.2 +Release: 1 Epoch: 1 License: MPL v1.1 or GPL v2+ or LGPL v2.1+ Group: X11/Applications/Mail -Source0: http://www.mozilla-enigmail.org/download/source/%{name}-%{version}.tar.gz -# Source0-md5: 15eca51a6e7b3ff62b76e2dbea716305 -URL: http://www.mozilla-enigmail.org/ +Source0: https://enigmail.net/download/source/%{name}-%{version}.tar.gz +# Source0-md5: 50ace3f61a9c937d59b6a15bb9b260fa +URL: http://enigmail.net/ BuildRequires: make >= 3.81 BuildRequires: perl-base >= 5 BuildRequires: python >= 1:2.7 BuildRequires: zip +BuildRequires: unzip BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -135,42 +125,6 @@ Główne możliwości: podpisywania dla każdego adresata - interfejs do zarządzania kluczami OpenPGP -%package -n iceape-addon-enigmail -Summary: Iceape extension for the authentication and encryption features provided by GnuPG -Summary(pl.UTF-8): Rozszerzenie Iceape'a do uwierzytelniania i szyfrowania zapewnianego przez GnuPG -Group: X11/Applications/Mail -Requires: gnupg2 >= 2.0.7 -Requires: gnupg-agent >= 2.0.7 -Requires: iceape >= 2.35 -Obsoletes: seamonkey-addon-enigmail - -%description -n iceape-addon-enigmail -Enigmail is an extension to the mail client of Iceape which allows -users to access the authentication and encryption features provided by -GnuPG. - -Main Features: -- Encrypt/sign mail when sending, decrypt/authenticate received mail -- Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156) -- Per-Account based encryption and signing defaults -- Per-Recipient rules for automated key selection, and - enabling/disabling encryption and signing -- OpenPGP key management interface - -%description -n iceape-addon-enigmail -l pl.UTF-8 -Enigmail to rozszerzenie klienta pocztowego programu Iceape, -pozwalające użytkownikom na dostęp do uwierzytelniania i szyfrowania -zapewnianego przez GnuPG. - -Główne możliwości: -- szyfrowanie/podpisywanie poczty przy wysyłaniu, - odszyfrowywanie/uwierzytelnianie poczty odebranej -- obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156) -- ustawienia domyślne szyfrowania i podpisywania dla każdego konta -- reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz - podpisywania dla każdego adresata -- interfejs do zarządzania kluczami OpenPGP - %prep %setup -q -n %{name} @@ -180,47 +134,33 @@ Główne możliwości: %{__make} -j1 %install -for prog in %{?with_iceape:iceape} ; do -ext_dir=$RPM_BUILD_ROOT%{_libdir}/$prog/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} -install -d $ext_dir/{chrome,components,defaults/preferences,modules,wrappers} -cp -p build/dist/chrome/enigmail.jar $ext_dir/chrome -cp -p build/dist/components/*.{js,xpt} $ext_dir/components -cp -p build/dist/defaults/preferences/enigmail.js $ext_dir/defaults/preferences -cp -p build/dist/modules/*.js* $ext_dir/modules -cp -p build/dist/wrappers/*.sh $ext_dir/wrappers -cp -p build/dist/chrome.manifest $ext_dir -cp -p build/dist/install.rdf $ext_dir -done - -for prog in %{?with_thunderbird:thunderbird} %{?with_seamonkey:seamonkey} ; do -ext_dir=$RPM_BUILD_ROOT%{_datadir}/$prog/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} -install -d $ext_dir/{chrome,components,defaults/preferences,modules,wrappers} -cp -p build/dist/chrome/enigmail.jar $ext_dir/chrome -cp -p build/dist/components/*.{js,xpt} $ext_dir/components -cp -p build/dist/defaults/preferences/enigmail.js $ext_dir/defaults/preferences -cp -p build/dist/modules/*.js* $ext_dir/modules -cp -p build/dist/wrappers/*.sh $ext_dir/wrappers -cp -p build/dist/chrome.manifest $ext_dir -cp -p build/dist/install.rdf $ext_dir -done +install -d $RPM_BUILD_ROOT%{_datadir}/thunderbird/distribution/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} +unzip build/%{name}-%{version}.xpi -d $RPM_BUILD_ROOT%{_datadir}/thunderbird/distribution/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}/ + +install -d $RPM_BUILD_ROOT%{_datadir}/seamonkey/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} +unzip build/%{name}-%{version}.xpi -d $RPM_BUILD_ROOT%{_datadir}/seamonkey/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} %clean rm -rf $RPM_BUILD_ROOT -%define genfiles()\ -%files -n %{1}-addon-enigmail\ -%defattr(644,root,root,755)\ -%dir %{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules\ -%dir %{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers\ -%attr(755,root,root) %{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest\ -%{2}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf\ -%{nil} - -%{?with_thunderbird:%{expand:%genfiles thunderbird %{_datadir}}} -%{?with_seamonkey:%{expand:%genfiles seamonkey %{_datadir}}} -%{?with_iceape:%{expand:%genfiles iceape %{_libdir}}} +%if %{with thunderbird} +%files -n thunderbird-addon-enigmail +%defattr(644,root,root,755) +%dir %{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5} +%{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome +%{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/bootstrap.js +%{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest +%{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf +%{_datadir}/thunderbird/distribution/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/manifest.json +%endif + +%if %{with seamonkey} +%files -n seamonkey-addon-enigmail +%defattr(644,root,root,755) +%dir %{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5} +%{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome +%{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/bootstrap.js +%{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest +%{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf +%{_datadir}/seamonkey/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/manifest.json +%endif -- 2.44.0