3 %bcond_with thunderbird # Mozilla Thunderbird addon
4 %bcond_with seamonkey # Mozilla SeaMonkey addon
5 %bcond_without icedove # Icedove addon
6 %bcond_without iceape # Iceape addon
8 %bcond_with mozilla # build both Mozilla packages
9 %bcond_without iceapps # don't build any Ice* packages
12 %define with_thunderbird 1
13 %define with_seamonkey 1
15 %if %{without iceapps}
16 %undefine with_icedove
19 Summary: Mozilla mail clients extension for the GnuPG authentication and encryption features
20 Summary(pl.UTF-8): Rozszerzenie klientów pocztowych Mozilla do uwierzytelniania i szyfrowania w oparciu o GnuPG
25 License: MPL v1.1 or GPL v2+ or LGPL v2.1+
26 Group: X11/Applications/Mail
27 Source0: http://www.mozilla-enigmail.org/download/source/%{name}-%{version}.tar.gz
28 # Source0-md5: d506093139dbeed51c70f00dfe308bc2
29 URL: http://www.mozilla-enigmail.org/
30 BuildRequires: make >= 3.81
31 BuildRequires: perl-base >= 5
32 BuildRequires: python >= 1:2.7
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Enigmail is an extension to the Mozilla-based mail clients (like
38 Mozilla Thunderbird, Mozilla Seamonkey, Icedove or Iceape) which
39 allows users to access the authentication and encryption features
43 - Encrypt/sign mail when sending, decrypt/authenticate received mail
44 - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
45 - Per-Account based encryption and signing defaults
46 - Per-Recipient rules for automated key selection, and
47 enabling/disabling encryption and signing
48 - OpenPGP key management interface
50 %description -l pl.UTF-8
51 Enigmail to rozszerzenie klientów pocztowych opartych na Mozilli (jak
52 Mozilla Thunderbird, Mozilla Seamonkey, Icedove i Iceape), pozwalające
53 użytkownikom na dostęp do uwierzytelniania i szyfrowania zapewnianego
57 - szyfrowanie/podpisywanie poczty przy wysyłaniu,
58 odszyfrowywanie/uwierzytelnianie poczty odebranej
59 - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
60 - ustawienia domyślne szyfrowania i podpisywania dla każdego konta
61 - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
62 podpisywania dla każdego adresata
63 - interfejs do zarządzania kluczami OpenPGP
65 %package -n mozilla-thunderbird-addon-enigmail
66 Summary: Thunderbird extension for the authentication and encryption features provided by GnuPG
67 Summary(pl.UTF-8): Rozszerzenie Thunderbirda do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
68 Group: X11/Applications/Mail
70 Requires: mozilla-thunderbird >= 24
72 %description -n mozilla-thunderbird-addon-enigmail
73 Enigmail is an extension to the Mozilla Thunderbird mail client of
74 which allows users to access the authentication and encryption
75 features provided by GnuPG.
78 - Encrypt/sign mail when sending, decrypt/authenticate received mail
79 - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
80 - Per-Account based encryption and signing defaults
81 - Per-Recipient rules for automated key selection, and
82 enabling/disabling encryption and signing
83 - OpenPGP key management interface
85 %description -n mozilla-thunderbird-addon-enigmail -l pl.UTF-8
86 Enigmail to rozszerzenie klienta pocztowego Mozilla Thunderbird,
87 pozwalające użytkownikom na dostęp do uwierzytelniania i szyfrowania
88 zapewnianego przez GnuPG.
91 - szyfrowanie/podpisywanie poczty przy wysyłaniu,
92 odszyfrowywanie/uwierzytelnianie poczty odebranej
93 - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
94 - ustawienia domyślne szyfrowania i podpisywania dla każdego konta
95 - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
96 podpisywania dla każdego adresata
97 - interfejs do zarządzania kluczami OpenPGP
99 %package -n seamonkey-addon-enigmail
100 Summary: SeaMonkey extension for the authentication and encryption features provided by GnuPG
101 Summary(pl.UTF-8): Rozszerzenie SeaMonkeya do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
102 Group: X11/Applications/Mail
104 Requires: seamonkey >= 2.26
106 %description -n seamonkey-addon-enigmail
107 Enigmail is an extension to the mail client of Mozilla SeaMonkey which
108 allows users to access the authentication and encryption features
112 - Encrypt/sign mail when sending, decrypt/authenticate received mail
113 - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
114 - Per-Account based encryption and signing defaults
115 - Per-Recipient rules for automated key selection, and
116 enabling/disabling encryption and signing
117 - OpenPGP key management interface
119 %description -n seamonkey-addon-enigmail -l pl.UTF-8
120 Enigmail to rozszerzenie klienta pocztowego programu Mozilla
121 SeaMonkey, pozwalające użytkownikom na dostęp do uwierzytelniania i
122 szyfrowania zapewnianego przez GnuPG.
125 - szyfrowanie/podpisywanie poczty przy wysyłaniu,
126 odszyfrowywanie/uwierzytelnianie poczty odebranej
127 - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
128 - ustawienia domyślne szyfrowania i podpisywania dla każdego konta
129 - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
130 podpisywania dla każdego adresata
131 - interfejs do zarządzania kluczami OpenPGP
133 %package -n icedove-addon-enigmail
134 Summary: Icedove extension for the authentication and encryption features provided by GnuPG
135 Summary(pl.UTF-8): Rozszerzenie Icedove'a do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
136 Group: X11/Applications/Mail
138 Requires: icedove >= 24
139 Obsoletes: mozilla-thunderbird-addon-enigmail
141 %description -n icedove-addon-enigmail
142 Enigmail is an extension to the Icedove mail client of which allows
143 users to access the authentication and encryption features provided by
147 - Encrypt/sign mail when sending, decrypt/authenticate received mail
148 - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
149 - Per-Account based encryption and signing defaults
150 - Per-Recipient rules for automated key selection, and
151 enabling/disabling encryption and signing
152 - OpenPGP key management interface
154 %description -n icedove-addon-enigmail -l pl.UTF-8
155 Enigmail to rozszerzenie klienta pocztowego Icedove, pozwalające
156 użytkownikom na dostęp do uwierzytelniania i szyfrowania zapewnianego
160 - szyfrowanie/podpisywanie poczty przy wysyłaniu,
161 odszyfrowywanie/uwierzytelnianie poczty odebranej
162 - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
163 - ustawienia domyślne szyfrowania i podpisywania dla każdego konta
164 - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
165 podpisywania dla każdego adresata
166 - interfejs do zarządzania kluczami OpenPGP
168 %package -n iceape-addon-enigmail
169 Summary: Iceape extension for the authentication and encryption features provided by GnuPG
170 Summary(pl.UTF-8): Rozszerzenie Iceape'a do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
171 Group: X11/Applications/Mail
173 Requires: icedove >= 2.26
174 Obsoletes: seamonkey-addon-enigmail
176 %description -n iceape-addon-enigmail
177 Enigmail is an extension to the mail client of Iceape which allows
178 users to access the authentication and encryption features provided by
182 - Encrypt/sign mail when sending, decrypt/authenticate received mail
183 - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
184 - Per-Account based encryption and signing defaults
185 - Per-Recipient rules for automated key selection, and
186 enabling/disabling encryption and signing
187 - OpenPGP key management interface
189 %description -n iceape-addon-enigmail -l pl.UTF-8
190 Enigmail to rozszerzenie klienta pocztowego programu Iceape,
191 pozwalające użytkownikom na dostęp do uwierzytelniania i szyfrowania
192 zapewnianego przez GnuPG.
195 - szyfrowanie/podpisywanie poczty przy wysyłaniu,
196 odszyfrowywanie/uwierzytelnianie poczty odebranej
197 - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
198 - ustawienia domyślne szyfrowania i podpisywania dla każdego konta
199 - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
200 podpisywania dla każdego adresata
201 - interfejs do zarządzania kluczami OpenPGP
212 for prog in %{?with_thunderbird:mozilla-thunderbird} %{?with_seamonkey:seamonkey} %{?with_icedove:icedove} %{?with_iceape:iceape} ; do
213 ext_dir=$RPM_BUILD_ROOT%{_libdir}/$prog/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
214 install -d $ext_dir/{chrome,components,defaults/preferences,modules,wrappers}
215 cp -p build/dist/chrome/enigmail.jar $ext_dir/chrome
216 cp -p build/dist/components/*.{js,xpt} $ext_dir/components
217 cp -p build/dist/defaults/preferences/enigmail.js $ext_dir/defaults/preferences
218 cp -p build/dist/modules/*.js* $ext_dir/modules
220 cp -a build/dist/platform $ext_dir/platform
221 cp -p build/dist/wrappers/*.sh $ext_dir/wrappers
222 cp -p build/dist/install.rdf $ext_dir
223 cp -p build/dist/chrome.manifest $ext_dir
227 rm -rf $RPM_BUILD_ROOT
230 %files -n %{1}-addon-enigmail\
231 %defattr(644,root,root,755)\
232 %dir %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}\
233 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome\
234 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components\
235 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults\
236 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules\
237 %dir %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform\
238 %dir %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/Linux_*-gcc3\
239 %dir %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/Linux_*-gcc3/lib\
240 %attr(755,root,root) %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/Linux_*-gcc3/lib/libsubprocess-*-gcc3.so\
241 %dir %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers\
242 %attr(755,root,root) %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh\
243 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest\
244 %{_libdir}/%{1}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf\
247 %{?with_thunderbird:%{expand:%genfiles mozilla-thunderbird}}
248 %{?with_seamonkey:%{expand:%genfiles seamonkey}}
249 %{?with_icedove:%{expand:%genfiles icedove}}
250 %{?with_iceape:%{expand:%genfiles iceape}}