Author: glen                         Date: Tue Sep 20 16:42:13 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- make tests package installable (not sure is it usable) (anyone care to check?)

---- Files affected:
SPECS:
   php-pear-DB_NestedSet.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/php-pear-DB_NestedSet.spec
diff -u SPECS/php-pear-DB_NestedSet.spec:1.21 
SPECS/php-pear-DB_NestedSet.spec:1.22
--- SPECS/php-pear-DB_NestedSet.spec:1.21       Mon Sep 19 23:43:39 2005
+++ SPECS/php-pear-DB_NestedSet.spec    Tue Sep 20 18:42:08 2005
@@ -9,17 +9,21 @@
 Summary(pl):   %{_pearname} - API to tworzenia i wykonywania zagnieżdżonych 
zapytań
 Name:          php-pear-%{_pearname}
 Version:       1.3.6
-Release:       2.1
+Release:       2.2
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
 # Source0-md5: 556e7afbf740c0f18b35bfd820fd75b9
 URL:           http://pear.php.net/package/DB_NestedSet/
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: sed >= 4.0
 Requires:      php-pear
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# included in tests
+%define                _noautoreq 'pear(TestBase.php)' 'pear(UnitTest.php)'
+
 %description
 DB_NestedSet lets you create trees with infinite depth inside a
 relational database. The package provides a way to:
@@ -62,6 +66,14 @@
 %prep
 %pear_package_setup
 
+# fix tests
+cd ./%{php_pear_dir}/tests/%{_pearname}/tests
+# mac line endings!
+sed -i -e 's,\r,\n,g' index.php
+
+# make it suitable after install
+sed -i -e 's,NestedSet.php,DB/NestedSet.php,' *.php
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
@@ -89,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2005/09/20 16:42:08  glen
+- make tests package installable (not sure is it usable) (anyone care to 
check?)
+
 Revision 1.21  2005/09/19 21:43:39  glen
 - integer BR
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/SPECS/php-pear-DB_NestedSet.spec?r1=1.21&r2=1.22&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to