SPECS: php-pear-Image_Text.spec - tests subpackage; rel 3

glen glen at pld-linux.org
Mon Feb 4 21:14:54 CET 2008


Author: glen                         Date: Mon Feb  4 20:14:54 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- tests subpackage; rel 3

---- Files affected:
SPECS:
   php-pear-Image_Text.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/php-pear-Image_Text.spec
diff -u SPECS/php-pear-Image_Text.spec:1.26 SPECS/php-pear-Image_Text.spec:1.27
--- SPECS/php-pear-Image_Text.spec:1.26	Thu Jan 31 13:16:07 2008
+++ SPECS/php-pear-Image_Text.spec	Mon Feb  4 21:14:49 2008
@@ -5,16 +5,16 @@
 %define		_status		beta
 %define		_pearname	%{_class}_%{_subclass}
 
-%define	_beta beta
-%define	_rel 2
+%define		subver	beta
+%define		rel		3
 Summary:	%{_pearname} - comfortable processing of texts in images
 Summary(pl.UTF-8):	%{_pearname} - komfortowe przetwarzanie tekstu w obrazkach
 Name:		php-pear-%{_pearname}
 Version:	0.6.0
-Release:	0.%{_beta}.%{_rel}
+Release:	0.%{subver}.%{rel}
 License:	PHP 2.02
 Group:		Development/Languages/PHP
-Source0:	http://pear.php.net/get/%{_pearname}-%{version}%{_beta}.tgz
+Source0:	http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz
 # Source0-md5:	11ef956fc2a93fd359a80bde7fc0e8e8
 URL:		http://pear.php.net/package/Image_Text/
 BuildRequires:	php-pear-PEAR
@@ -49,9 +49,28 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package tests
+Summary:	Tests for PEAR::%{_pearname}
+Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
+Group:		Development/Languages/PHP
+AutoReq:	no
+Requires:	%{name} = %{version}-%{release}
+AutoProv:	no
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl.UTF-8
+Testy dla PEAR::%{_pearname}.
+
 %prep
 %pear_package_setup
 
+# tests -> tests/%{_pearname}
+install -d ./%{php_pear_dir}/tests/.tmp
+mv ./%{php_pear_dir}/tests/{*,.tmp}
+mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
@@ -67,12 +86,20 @@
 %{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/%{_class}/*.php
 
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/%{_pearname}
+%{php_pear_dir}/data/Image_Text/tests/Vera.ttf
+
 %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.27  2008-02-04 20:14:49  glen
+- tests subpackage; rel 3
+
 Revision 1.26  2008-01-31 12:16:07  glen
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pear-Image_Text.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list