packages: php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec - ...

glen glen at pld-linux.org
Thu Aug 19 19:59:29 CEST 2010


Author: glen                         Date: Thu Aug 19 17:59:29 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package examples, suggests mbstring ext

---- Files affected:
packages/php-pear-Text_LanguageDetect:
   php-pear-Text_LanguageDetect.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: packages/php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec
diff -u packages/php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec:1.15 packages/php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec:1.16
--- packages/php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec:1.15	Tue Aug  5 16:39:13 2008
+++ packages/php-pear-Text_LanguageDetect/php-pear-Text_LanguageDetect.spec	Thu Aug 19 19:59:23 2010
@@ -4,13 +4,11 @@
 %define		_subclass	LanguageDetect
 %define		_status		alpha
 %define		_pearname	Text_LanguageDetect
-
 Summary:	%{_pearname} - language detection class
 Summary(pl.UTF-8):	%{_pearname} - klasa do określania języka
 Name:		php-pear-%{_pearname}
 Version:	0.2.3
-Release:	1
-Epoch:		0
+Release:	2
 License:	BSD
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
@@ -21,6 +19,7 @@
 BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	php-common >= 3:4.0.3
 Requires:	php-pear
+Suggests:	php-mbstring
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,9 +39,9 @@
 Summary:	Tests for PEAR::%{_pearname}
 Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
 Group:		Development/Languages/PHP
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-AutoReq:	no
+Requires:	%{name} = %{version}-%{release}
 AutoProv:	no
+AutoReq:	no
 
 %description tests
 Tests for PEAR::%{_pearname}.
@@ -56,23 +55,20 @@
 mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,}
 rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests
 
+install -d examples
+mv docs/%{_pearname}/docs/example_* examples
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}
+install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_examplesdir}/%{name}-%{version}}
 %pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
-	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
-fi
-
 %files
 %defattr(644,root,root,755)
-%doc install.log optional-packages.txt
-%doc docs/%{_pearname}/{docs/example_clui.php,docs/example_web.php}
+%doc install.log
 %{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/Text/LanguageDetect.php
 %dir %{php_pear_dir}/Text/LanguageDetect
@@ -80,6 +76,8 @@
 
 %{php_pear_dir}/data/Text_LanguageDetect
 
+%{_examplesdir}/%{name}-%{version}
+
 %files tests
 %defattr(644,root,root,755)
 %{php_pear_dir}/tests/*
@@ -90,6 +88,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2010/08/19 17:59:23  glen
+- package examples, suggests mbstring ext
+
 Revision 1.15  2008/08/05 14:39:13  adamg
 - updated to 0.2.3
 
================================================================

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



More information about the pld-cvs-commit mailing list