%define desktop_file_utils_version 0.9 %define nspr_version 4.6 %define nss_version 3.10 %define cairo_version 1.0 %define official_branding 1 %define thunver 2.0.0.6 %define enigid \{847b3a00-7ab1-11d4-8f02-006008948af5\} Summary: Enigmail extension for Mozilla Thunderbird Name: thunderbird-enigmail Version: 0.95.4 Release: 1%{?dist} URL: http://enigmail.mozdev.org/ License: MPL Group: Applications/Internet Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{thunver}/source/thunderbird-%{thunver}-source.tar.bz2 Source9: thunderbird-mozconfig.fc4 Source10: thunderbird-mozconfig Source11: thunderbird-mozconfig-branded # ===== Enigmail files ===== Source100: http://www.mozilla-enigmail.org/downloads/src/enigmail-%{version}.tar.gz ## Langpacks are not in the main extension. # Build patches Patch1: firefox-2.0-link-layout.patch Patch2: firefox-1.0-prdtoa.patch Patch4: firefox-1.5.0.10-with-system-nss.patch Patch5: thunderbird-1.5-visibility.patch Patch6: firefox-1.5.0.10-nss-system-nspr.patch Patch10: thunderbird-0.7.3-psfonts.patch Patch11: thunderbird-0.7.3-gnome-uriloader.patch # customization patches Patch24: thunderbird-2.0-default-applications.patch Patch25: thunderbird-1.1-software-update.patch # local bugfixes Patch40: firefox-1.5-bullet-bill.patch Patch41: firefox-2.0.0.4-undo-uriloader.patch Patch42: firefox-1.1-uriloader.patch # font system fixes Patch81: firefox-1.5-nopangoxft.patch Patch82: firefox-1.5-pango-mathml.patch Patch83: firefox-1.5-pango-cursor-position.patch Patch84: firefox-2.0-pango-printing.patch Patch85: firefox-1.5-pango-cursor-position-more.patch Patch86: firefox-1.5-pango-justified-range.patch Patch87: firefox-1.5-pango-underline.patch Patch88: firefox-1.5-xft-rangewidth.patch Patch89: firefox-2.0-pango-ligatures.patch Patch102: firefox-1.5-theme-change.patch Patch103: thunderbird-1.5-profile-migrator.patch Patch104: firefox-1.5-dnd-nograb.patch # Remi Patch200: thunderbird-2.0.0.4-suse-visibility.patch %if %{official_branding} # Required by Mozilla Corporation %else # Not yet approved by Mozillla Corporation %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cairo-devel >= %{cairo_version} BuildRequires: libpng-devel, libjpeg-devel, gtk2-devel BuildRequires: zlib-devel, gzip, zip, unzip %if "%{?fedora}" > "4" BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} %endif BuildRequires: libIDL-devel BuildRequires: desktop-file-utils BuildRequires: tcsh BuildRequires: freetype-devel %if "%{?fedora}" > "4" BuildRequires: libXt-devel BuildRequires: libXrender-devel %endif Requires: gnupg, thunderbird = %{thunver} %define mozappdir %{_libdir}/thunderbird-%{thunver} %description Enigmail is an extension to the mail client Mozilla Thunderbird which allows users to access the authentication and encryption features provided by GnuPG #=============================================================================== %prep %setup -q -n mozilla %patch1 -p1 -b .link-layout %patch2 -p0 #%patch4 -p1 #%patch5 -p1 -b .visibility #%patch6 -p1 %ifnarch i386 %patch200 -p0 -b .visibility %endif %patch10 -p1 -b .psfonts %patch11 -p1 -b .gnome-uriloader %patch24 -p1 -b .default-applications #%patch25 -p0 -b .software-update %patch40 -p1 %patch41 -p1 %patch42 -p0 %if "%{?fedora}" > "4" # font system fixes %patch81 -p1 -b .nopangoxft #%patch82 -p1 -b .pango-mathml %patch83 -p1 -b .pango-cursor-position %patch84 -p0 -b .pango-printing %patch85 -p1 -b .pango-cursor-position-more %patch86 -p1 -b .pango-justified-range %patch87 -p1 -b .pango-underline %patch88 -p1 -b .nopangoxft2 %patch89 -p1 -b .pango-ligatures pushd gfx/src/ps # This sort of sucks, but it works for now. ln -s ../gtk/nsFontMetricsPango.h . ln -s ../gtk/nsFontMetricsPango.cpp . ln -s ../gtk/mozilla-decoder.h . ln -s ../gtk/mozilla-decoder.cpp . popd %endif %patch102 -p0 -b .theme-change %patch103 -p1 -b .profile-migrator #%patch104 -p1 -b .dnd-nograb %if %{official_branding} # Required by Mozilla Corporation %else # Not yet approved by Mozillla Corporation %endif %{__rm} -f .mozconfig %if "%{?fedora}" > "4" %{__cp} %{SOURCE10} .mozconfig %else %{__cp} %{SOURCE9} .mozconfig %endif %if %{official_branding} %{__cat} %{SOURCE11} >> .mozconfig %endif # ===== Enigmail work ===== tar xzf %{SOURCE100} mv enigmail mailnews/extensions/ #=============================================================================== %build # Build with -Os as it helps the browser; also, don't override mozilla's warning # level; they use -Wall but disable a few warnings that show up _everywhere_ MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-O2/-Os/' -e 's/-Wall//') export RPM_OPT_FLAGS=$MOZ_OPT_FLAGS export PREFIX='%{_prefix}' export LIBDIR='%{_libdir}' %ifarch ppc ppc64 s390 s390x %define moz_make_flags -j1 %else %define moz_make_flags %{?_smp_mflags} %endif export LDFLAGS="-Wl,-rpath,%{mozappdir}" export MAKE="gmake %{moz_make_flags}" make -f client.mk build # ===== Enigmail work ===== pushd mailnews/extensions/enigmail ./makemake -r make make xpi popd #=============================================================================== %install %{__rm} -rf $RPM_BUILD_ROOT %{name}.lang %{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/extensions unzip -q dist/bin/enigmail-%{version}-linux-*.xpi -d $RPM_BUILD_ROOT%{mozappdir}/extensions/%{enigid} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{mozappdir}/extensions/%{enigid} #=============================================================================== %changelog * Thu Oct 25 2007 Remi Collet 0.95.4-1 - update to 0.95.4 (thunderbird 2.0.0.6) * Sat Aug 11 2007 Remi Collet 0.95.3-1 - update to 0.95.3 - built against thunderbird 2.0.0.6 * Fri Jul 20 2007 Remi Collet - 0.95.2-2 - rebuilt against thunderbird 2.0.0.5 * Sun Jul 01 2007 Remi Collet - 0.95.2-1 - new version: This release contains a fixed Spanish (es-ES) language pack and adds the Czech language pack. * Fri Jun 15 2007 Remi Collet - 0.95.1-2 - rebuild with final 2.0.0.4 * Thu Jun 07 2007 Remi Collet - 0.95.1-1 - update to enigmail 0.95.1 - initial RPM for thunderbird 2.0.0.4 (rc1) - remove langpacks (now provided with enigmail) * Sun May 20 2007 Remi Collet - 0.95.0-1 - initial RPM for thunderbird 2.0.0.0, 16 langpacks