packages: php/php.spec - build enchant extension

glen glen at pld-linux.org
Sat Nov 5 19:35:49 CET 2011


Author: glen                         Date: Sat Nov  5 18:35:49 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build enchant extension

---- Files affected:
packages/php:
   php.spec (1.964 -> 1.965) 

---- Diffs:

================================================================
Index: packages/php/php.spec
diff -u packages/php/php.spec:1.964 packages/php/php.spec:1.965
--- packages/php/php.spec:1.964	Sat Nov  5 18:06:06 2011
+++ packages/php/php.spec	Sat Nov  5 19:35:43 2011
@@ -2,7 +2,6 @@
 # NOTE: mysqlnd does not support ssl or compression (see FAQ at http://dev.mysql.com/downloads/connector/php-mysqlnd/)
 # UNPACKAGED EXTENSION NOTES:
 # - com_dotnet is Win32-only
-# - enchant is packaged separately (php-pecl-enchant). why it's not packaged here?
 # TODO:
 # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
 # - wddx: restore session support (not compiled in due DL extension check)
@@ -36,6 +35,7 @@
 %bcond_with	system_libzip	# with system libzip (reported broken currently)
 %bcond_without	curl		# without CURL extension module
 %bcond_without	filter		# without filter extension module
+%bcond_without	enchant		# without Enchant extension module
 %bcond_without	imap		# without IMAP extension module
 %bcond_without	interbase	# without InterBase extension module
 %bcond_without	kerberos5	# without Kerberos5 support
@@ -209,6 +209,7 @@
 BuildRequires:	cyrus-sasl-devel
 BuildRequires:	db-devel >= 4.0
 BuildRequires:	elfutils-devel
+%{?with_enchant:BuildRequires:	enchant-devel >= 1.1.3}
 #BuildRequires:	fcgi-devel
 #BuildRequires:	flex
 %{?with_kerberos5:BuildRequires:	heimdal-devel}
@@ -702,6 +703,35 @@
 %description dom -l pl.UTF-8
 Moduł PHP dodający nową obsługę DOM.
 
+%package enchant
+Summary:	libenchant binder
+Summary(pl.UTF-8):	dowiązania biblioteki libenchant
+Group:		Libraries
+URL:		http://www.php.net/manual/en/book.exif.php
+Requires:	%{name}-common = %{epoch}:%{version}-%{release}
+Provides:	php(enchant) = %{enchantver}
+Obsoletes:	php-pecl-enchant < %{enchantver}
+
+%description enchant
+Enchant is a binder for libenchant. Libenchant provides a common API
+for many spell libraries:
+- aspell/pspell (intended to replace ispell)
+- hspell (hebrew)
+- ispell
+- myspell (OpenOffice.org project, mozilla)
+- uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
+  plugin system allows to add custom spell support.
+
+%description enchant -l pl.UTF-8
+Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
+ujednolicone API dla wielu narzędzi sprawdzających pisownię:
+- aspell/pspell (w zamierzeniu ma zastąpić ispell)
+- hspell (hebrajski)
+- ispell
+- myspell (projekt OpenOffice.org, mozilla)
+- uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
+  System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
+
 %package exif
 Summary:	exif extension module for PHP
 Summary(pl.UTF-8):	Moduł exif dla PHP
@@ -2172,6 +2202,7 @@
 	%{__with_without curl curl shared} \
 	--with-db4 \
 	--with-iconv=shared \
+	%{?with_enchant:--with-enchant=shared,/usr} \
 	--with-freetype-dir=shared \
 	--with-gettext=shared \
 	--with-gd=shared%{?with_system_gd:,/usr} \
@@ -2563,6 +2594,7 @@
 %extension_scripts curl
 %extension_scripts dba
 %extension_scripts dom
+%extension_scripts enchant
 %extension_scripts exif
 %extension_scripts fileinfo
 %extension_scripts filter
@@ -2898,6 +2930,12 @@
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
 %attr(755,root,root) %{php_extensiondir}/dom.so
 
+%files enchant
+%defattr(644,root,root,755)
+%doc ext/enchant/{CREDITS,docs/examples}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
+%attr(755,root,root) %{php_extensiondir}/enchant.so
+
 %files exif
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
@@ -3290,6 +3328,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.965  2011/11/05 18:35:43  glen
+- build enchant extension
+
 Revision 1.964  2011/11/05 17:06:06  glen
 - versions for bz2,enchant,hash,intl,sqlite extensions
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/php.spec?r1=1.964&r2=1.965&f=u



More information about the pld-cvs-commit mailing list