]> git.pld-linux.org Git - packages/thunderbird.git/blame - icedove.spec
- release 4
[packages/thunderbird.git] / icedove.spec
CommitLineData
cd056caa 1#
44be9ed4 2# Conditional builds
3%bcond_without enigmail # don't build enigmail - GPG/PGP support
4%bcond_without gnomeui # disable gnomeui support
5%bcond_without gnomevfs # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext.
6%bcond_without gnome # disable all GNOME components (gnome+gnomeui+gnomevfs)
7%bcond_without ldap # disable e-mail address lookups in LDAP directories
8#
9%if %{without gnome}
10%undefine with_gnomeui
11%undefine with_gnomevfs
12%endif
ad050239 13%define enigmail_ver 0.96.0
44be9ed4 14
15Summary: Icedove - email client
16Summary(pl.UTF-8): Icedove - klient poczty
17Name: icedove
d6f0dc4d 18Version: 2.0.0.23
5a965a39 19Release: 4
44be9ed4 20License: MPL 1.1 or GPL v2+ or LGPL v2.1+
21Group: Applications/Networking
22Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2
d6f0dc4d 23# Source0-md5: 2e118fcf752ee60ce994f1471f9632d1
44be9ed4 24Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
ad050239 25# Source1-md5: cf8c38e8d33965706df383ab33b3923c
44be9ed4 26Source2: %{name}-branding.tar.bz2
27# Source2-md5: e775b8cb658de32f30b403bc9b7950bf
28Source3: %{name}-rm_nonfree.sh
29Source4: %{name}.desktop
30Source5: %{name}.sh
2f151de0 31Source6: %{name}-enigmail.manifest
44be9ed4 32Patch0: %{name}-branding.patch
33Patch1: %{name}-lib_path.patch
34Patch2: %{name}-enigmail-shared.patch
35Patch3: %{name}-gcc.patch
36Patch4: %{name}-fonts.patch
37Patch5: %{name}-install.patch
38Patch6: %{name}-myspell.patch
39Patch7: %{name}-regionNames.patch
82476960 40Patch8: %{name}-prefs.patch
60319d5b 41Patch9: %{name}-gcc44.patch
4922c320 42URL: http://www.pld-linux.org/Packages/Icedove
44be9ed4 43%{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1}
44BuildRequires: automake
45BuildRequires: freetype-devel >= 1:2.1.8
46%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0}
47BuildRequires: gtk+2-devel >= 1:2.0.0
48BuildRequires: libIDL-devel >= 0.8.0
49%{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0}
50%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
51BuildRequires: libjpeg-devel >= 6b
52BuildRequires: libpng-devel >= 1.2.0
53BuildRequires: libstdc++-devel
54BuildRequires: myspell-devel
55BuildRequires: nspr-devel >= 1:4.6.1
56BuildRequires: nss-devel >= 1:3.11.3
57BuildRequires: pango-devel >= 1:1.1.0
58BuildRequires: sed >= 4.0
59BuildRequires: xorg-lib-libXext-devel
60BuildRequires: xorg-lib-libXft-devel >= 2.1
61BuildRequires: xorg-lib-libXinerama-devel
62BuildRequires: xorg-lib-libXp-devel
63BuildRequires: xorg-lib-libXt-devel
64Requires: myspell-common
65Requires: nspr >= 1:4.6.1
66Requires: nss >= 1:3.11.3
67Obsoletes: mozilla-thunderbird
68Obsoletes: mozilla-thunderbird-dictionary-en-US
69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
9e366f18
AM
71%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
72
44be9ed4 73# iceweasel/icedove/iceape provide their own versions
74%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpcom_core.so libxpistub.so
75%define _noautoprovfiles %{_libdir}/%{name}/components
76# we don't want these to satisfy xulrunner-devel
77%define _noautoprov libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so
78# and as we don't provide them, don't require either
79%define _noautoreq libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so
80
81%description
82Icedove is an open-source,fast and portable email client.
83
84%description -l pl.UTF-8
85Icedove jest open sourcowym, szybkim i przenośnym klientem poczty.
86
87%package addon-enigmail
88Summary: Extension for the authentication and encryption features provided by GnuPG
89Summary(pl.UTF-8): Rozszerzenie do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
90License: MPL/LGPL
91Group: Applications/Networking
92URL: http://enigmail.mozdev.org/
cd056caa 93Requires: %{name} = %{version}-%{release}
75991bbb 94Obsoletes: mozilla-thunderbird-addon-enigmail
44be9ed4 95
96%description addon-enigmail
c5e06599 97Enigmail is an extension to the Icedove mail client which allows users
98to access the authentication and encryption features provided by
99GnuPG.
44be9ed4 100
101Main Features:
102- Encrypt/sign mail when sending, decrypt/authenticate received mail
103- Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
104- Per-Account based encryption and signing defaults
105- Per-Recipient rules for automated key selection, and
106 enabling/disabling encryption and signing
107- OpenPGP key management interface
108
109%description addon-enigmail -l pl.UTF-8
c5e06599 110Enigmail to rozszerzenie klienta pocztowego Icedove pozwalające
111użytkownikom na dostęp do uwierzytelniania i szyfrowania
44be9ed4 112zapewnianego przez GnuPG.
113
114Główne możliwości:
115- szyfrowanie/podpisywanie poczty przy wysyłaniu,
116 odszyfrowywanie/uwierzytelnianie poczty odebranej
117- obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
118- ustawienia domyślne szyfrowania i podpisywania dla każdego konta
119- reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
120 podpisywania dla każdego adresata
121- interfejs do zarządzania kluczami OpenPGP
122
123%prep
5c67740b 124%setup -q -c -a2
44be9ed4 125cd mozilla
126%{?with_enigmail:tar xvfz %{SOURCE1} -C mailnews/extensions}
127/bin/sh %{SOURCE3}
128%patch0 -p1
129%patch1 -p1
130%{?with_enigmail:%patch2 -p1}
131%patch3 -p1
132%patch4 -p1
133%patch5 -p1
134%patch6 -p1
135%patch7 -p1
82476960 136%patch8 -p1
60319d5b 137%patch9 -p1
44be9ed4 138
139:> config/gcc_hidden.h
140
141%build
142cd mozilla
143export CFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`"
144export CXXFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`"
145
146cp -f %{_datadir}/automake/config.* build/autoconf
147cp -f %{_datadir}/automake/config.* nsprpub/build/autoconf
148cp -f %{_datadir}/automake/config.* directory/c-sdk/config/autoconf
149
150cat << 'EOF' > .mozconfig
151. $topsrcdir/mail/config/mozconfig
152
153ac_add_options --prefix=%{_prefix}
154ac_add_options --exec-prefix=%{_exec_prefix}
155ac_add_options --bindir=%{_bindir}
156ac_add_options --sbindir=%{_sbindir}
157ac_add_options --sysconfdir=%{_sysconfdir}
158ac_add_options --datadir=%{_datadir}
159ac_add_options --includedir=%{_includedir}
160ac_add_options --libdir=%{_libdir}
161ac_add_options --libexecdir=%{_libexecdir}
162ac_add_options --localstatedir=%{_localstatedir}
163ac_add_options --sharedstatedir=%{_sharedstatedir}
164ac_add_options --mandir=%{_mandir}
165ac_add_options --infodir=%{_infodir}
166%if %{?debug:1}0
167ac_add_options --enable-debug
168ac_add_options --enable-debug-modules
169%else
170ac_add_options --disable-debug
171ac_add_options --disable-debug-modules
172%endif
173%if %{with tests}
174ac_add_options --enable-tests
175%else
176ac_add_options --disable-tests
177%endif
178%if %{with gnomeui}
179ac_add_options --enable-gnomeui
180%else
181ac_add_options --disable-gnomeui
182%endif
183%if %{with gnomevfs}
184ac_add_options --enable-gnomevfs
185%else
186ac_add_options --disable-gnomevfs
187%endif
188%if %{with ldap}
189ac_add_options --enable-ldap
190%else
191ac_add_options --disable-ldap
192%endif
193ac_add_options --disable-installer
194ac_add_options --disable-jsd
195ac_add_options --disable-xprint
196ac_add_options --enable-canvas
197ac_add_options --enable-crypto
198ac_add_options --enable-default-toolkit="gtk2"
199ac_add_options --enable-extensions="pref,cookie,wallet,spellcheck"
200ac_add_options --enable-mathml
201ac_add_options --enable-optimize="%{rpmcflags}"
202ac_add_options --enable-pango
203ac_add_options --enable-reorder
204ac_add_options --disable-strip
205ac_add_options --disable-strip-libs
206ac_add_options --enable-system-cairo
207ac_add_options --enable-system-myspell
208ac_add_options --enable-svg
209ac_add_options --enable-xft
210ac_add_options --enable-xinerama
211ac_add_options --with-system-jpeg
212ac_add_options --with-system-nspr
213ac_add_options --with-system-nss
214ac_add_options --with-system-png
215ac_add_options --with-system-zlib
216ac_add_options --with-pthreads
217ac_add_options --enable-single-profile
218ac_add_options --disable-profilesharing
219ac_add_options --with-branding=icedove/branding
220ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
221EOF
222
223%{__make} -j1 -f client.mk build_all \
224 CC="%{__cc}" \
225 CXX="%{__cxx}"
226
227%if %{with enigmail}
228 cd mailnews/extensions/enigmail
229 ./makemake -r
230 %{__make}
231%endif
232
233%install
234rm -rf $RPM_BUILD_ROOT
235install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \
236 $RPM_BUILD_ROOT%{_datadir}/%{name}
237
238cd mozilla
239%{__make} -C xpinstall/packager stage-package \
240 DESTDIR=$RPM_BUILD_ROOT \
241 MOZ_PKG_APPDIR=%{_libdir}/%{name} \
242 PKG_SKIP_STRIP=1
243
244# move arch independant ones to datadir
245mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
246mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
247mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs
248mv $RPM_BUILD_ROOT%{_libdir}/%{name}/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
249mv $RPM_BUILD_ROOT%{_libdir}/%{name}/init.d $RPM_BUILD_ROOT%{_datadir}/%{name}/init.d
250mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
251mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
252ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
253ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
254ln -s ../../share/%{name}/greprefs $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs
255ln -s ../../share/%{name}/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/icons
256ln -s ../../share/%{name}/init.d $RPM_BUILD_ROOT%{_libdir}/%{name}/init.d
257ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
258ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
259
260rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
261ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
262
263%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove
264ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird
265ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
266
267install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
268
269%if %{with enigmail}
270_enig_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
271install -d $_enig_dir/chrome
272install -d $_enig_dir/components
273install -d $_enig_dir/defaults/preferences
274mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail.jar $_enig_dir/chrome
508585a4 275mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-skin-seamonkey.jar $_enig_dir/chrome
44be9ed4 276mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig* $_enig_dir/components
277mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so $_enig_dir/components
508585a4 278mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libipc.so $_enig_dir/components
44be9ed4 279mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt $_enig_dir/components
280mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences/enigmail.js $_enig_dir/defaults/preferences
281cp -f mailnews/extensions/enigmail/package/install.rdf $_enig_dir
282rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences
283rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-en-US.jar
284rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-skin.jar
285rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmime.jar
286rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig*
287rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so
288rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt
2f151de0 289cp -f %{SOURCE6} $_enig_dir/chrome.manifest
44be9ed4 290cp -f icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/icedove.png
291%endif
292
293# win32 stuff
294rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/dirver
295
296%clean
297rm -rf $RPM_BUILD_ROOT
298
299%pretrans
300if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
301 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
302fi
303for d in chrome defaults greprefs icons init.d isp res; do
304 if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
305 install -d %{_datadir}/%{name}
306 mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d
307 fi
308done
309exit 0
310
311%files
312%defattr(644,root,root,755)
313%attr(755,root,root) %{_bindir}/icedove
314%attr(755,root,root) %{_bindir}/mozilla-thunderbird
315%attr(755,root,root) %{_bindir}/thunderbird
316%dir %{_libdir}/%{name}
317%dir %{_libdir}/%{name}/components
318%attr(755,root,root) %{_libdir}/%{name}/components/*.so
319%{_libdir}/%{name}/components/*.js
320%{_libdir}/%{name}/components/*.xpt
321%attr(755,root,root) %{_libdir}/%{name}/*.so
322%attr(755,root,root) %{_libdir}/%{name}/*.sh
323%attr(755,root,root) %{_libdir}/%{name}/*-bin
324%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
325%attr(755,root,root) %{_libdir}/%{name}/reg*
7be5b7c0 326%attr(755,root,root) %{_libdir}/%{name}/icedove
44be9ed4 327%{_libdir}/%{name}/*.txt
328%attr(755,root,root) %{_libdir}/%{name}/x*
329
330# symlinks
331%{_libdir}/%{name}/chrome
332%{_libdir}/%{name}/defaults
333%{_libdir}/%{name}/dictionaries
334%{_libdir}/%{name}/greprefs
335%{_libdir}/%{name}/icons
336%{_libdir}/%{name}/init.d
337%{_libdir}/%{name}/isp
338%{_libdir}/%{name}/res
339
340%{_libdir}/%{name}/dependentlibs.list
341%{_libdir}/%{name}/updater
342%{_libdir}/%{name}/updater.ini
343%{_pixmapsdir}/*.png
344%{_desktopdir}/*.desktop
345
346%dir %{_datadir}/%{name}
347%{_datadir}/%{name}/chrome
348%{_datadir}/%{name}/defaults
349%{_datadir}/%{name}/greprefs
350%{_datadir}/%{name}/icons
351%{_datadir}/%{name}/init.d
352%{_datadir}/%{name}/isp
353%{_datadir}/%{name}/res
354
355%dir %{_libdir}/%{name}/extensions
356%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
357
358%if %{with enigmail}
359%files addon-enigmail
360%defattr(644,root,root,755)
361%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
362%endif
This page took 0.187112 seconds and 4 git commands to generate.