]> git.pld-linux.org Git - packages/php-pear-DB_NestedSet.git/commitdiff
- make tests package installable (not sure is it usable) (anyone care to check?)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Sep 2005 16:42:08 +0000 (16:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-DB_NestedSet.spec -> 1.22

php-pear-DB_NestedSet.spec

index c73c3017f739974ca416f3feb9e8941c10bc25fa..6d034bb1a76f16f609a5bdd1887586fa87c6f52c 100644 (file)
@@ -8,17 +8,21 @@ Summary:      %{_pearname} - API to build and query nested sets
 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:
@@ -61,6 +65,14 @@ Tests for PEAR::%{_pearname}.
 %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}
This page took 0.027275 seconds and 4 git commands to generate.