SPECS: mozilla-thunderbird.spec - added spellcheck extension - mad...

czarny czarny at pld-linux.org
Fri Sep 2 16:41:56 CEST 2005


Author: czarny                       Date: Fri Sep  2 14:41:56 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added spellcheck extension
- made subpackage with en-US dictionary

---- Files affected:
SPECS:
   mozilla-thunderbird.spec (1.43 -> 1.44) 

---- Diffs:

================================================================
Index: SPECS/mozilla-thunderbird.spec
diff -u SPECS/mozilla-thunderbird.spec:1.43 SPECS/mozilla-thunderbird.spec:1.44
--- SPECS/mozilla-thunderbird.spec:1.43	Wed Jul 20 20:30:36 2005
+++ SPECS/mozilla-thunderbird.spec	Fri Sep  2 16:41:51 2005
@@ -3,19 +3,20 @@
 # Conditional builds
 %bcond_without	ft218	    # compile with freetype < 2.1.8
 %bcond_without	enigmail    # enigmail - GPG/PGP support
+%bcond_without	spellcheck  # spellcheck fucntion
 #
 Summary:	Mozilla Thunderbird - email client
 Summary(pl):	Mozilla Thunderbird - klient poczty
 Name:		mozilla-thunderbird
 Version:	1.0.6
-Release:	1
+Release:	2
 License:	MPL/LGPL
 Group:		Applications/Networking
 Source0:	http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2
 # Source0-md5:	a0ddcc8bd5ee2c9be724b6963ad27111
 Source1:	%{name}.desktop
 Source2:	%{name}.sh
-%if %{with enigmail} 
+%if %{with enigmail}
 Source3:	http://www.mozilla-enigmail.org/downloads/src/ipc-1.1.3.tar.gz
 # Source3-md5:	64ba4c6e3b52568468c4f6680ec7e679
 Source4:	http://www.mozilla-enigmail.org/downloads/src/enigmail-0.92.0.tar.gz
@@ -59,6 +60,9 @@
 %endif
 Requires:	nspr >= 1:4.6-0.20041030.1
 Requires:	nss >= 3.8
+%if %{with spellcheck}
+Provides:	mozilla-thunderbird-spellcheck
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_thunderbirddir		%{_libdir}/%{name}
@@ -73,6 +77,24 @@
 Mozilla Thunderbird jest open sourcowym, szybkim i przenośnym klientem
 poczty.
 
+%if %{with spellcheck}
+%package dictionary-en-US
+Summary:	English(US) dictionary for spellchecking
+Summary(pl):	Angielski(USA) słownik do sprawdzania pisowni
+Group:		Applications/Dictionaries
+Requires:	mozilla-thunderbird-spellcheck
+
+%description dictionary-en-US
+This package contains english(US) myspell-compatibile dictionary used for
+spellcheck function of mozilla-thunderbird. An alternative for this
+can be the OpenOffices dictionary.
+
+%description dictionary-en-US -l pl
+Ta paczka zawiera angielski(USA) słownik kompatybilny z myspell, używany
+przez funkcję sprawdzania pisowni mozilli-thunderbird. Alternatywą dla
+niego może być słownik OpenOffice'a.
+%endif
+
 %prep
 %setup -q -n mozilla
 %if %{with enigmail}
@@ -105,6 +127,7 @@
 cp -f %{_datadir}/automake/config.* build/autoconf
 cp -f %{_datadir}/automake/config.* nsprpub/build/autoconf
 cp -f %{_datadir}/automake/config.* directory/c-sdk/config/autoconf
+
 %configure2_13 \
 %if %{?debug:1}0
 	--enable-debug \
@@ -124,7 +147,7 @@
 	--disable-xprint \
 	--enable-crypto \
 	--enable-default-toolkit="gtk2" \
-	--enable-extensions="pref,cookie,wallet" \
+	--enable-extensions="pref,cookie,wallet%{?with_spellcheck:,spellcheck}" \
 	--enable-freetype2 \
 	--enable-mathml \
 	--enable-optimize="%{rpmcflags}" \
@@ -153,7 +176,6 @@
 %endif
 
 %install
-
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}}
 
@@ -163,7 +185,7 @@
 	EXCLUDE_NSPR_LIBS=1
 
 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
-%{__sed} -i 's@/usr/lib/@%{_libdir}/@g' $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird 
+%{__sed} -i 's@%{_prefix}/lib/@%{_libdir}/@g' $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
 
 tar -xvz -C $RPM_BUILD_ROOT%{_libdir} -f dist/mozilla-thunderbird-*-linux-gnu.tar.gz
 
@@ -182,6 +204,9 @@
 %attr(755,root,root) %{_thunderbirddir}/components/*.so
 %{_thunderbirddir}/components/*.js
 %{_thunderbirddir}/components/*.xpt
+%if %{with spellcheck}
+%dir %{_thunderbirddir}/components/myspell
+%endif
 %{_thunderbirddir}/defaults
 %{_thunderbirddir}/greprefs
 %{_thunderbirddir}/icons
@@ -226,12 +251,23 @@
 %{_pixmapsdir}/*
 %{_desktopdir}/*
 
+%if %{with spellcheck}
+%files dictionary-en-US
+%defattr(644,root,root,755)
+%{_thunderbirddir}/components/myspell/en-US.dic
+%{_thunderbirddir}/components/myspell/en-US.aff
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.44  2005/09/02 14:41:51  czarny
+- added spellcheck extension
+- made subpackage with en-US dictionary
+
 Revision 1.43  2005/07/20 18:30:36  arekm
 - up to 1.0.6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mozilla-thunderbird.spec?r1=1.43&r2=1.44&f=u




More information about the pld-cvs-commit mailing list