]> git.pld-linux.org Git - packages/php-pear-DB_NestedSet.git/blobdiff - php-pear-DB_NestedSet.spec
- BR php-pear-PEAR
[packages/php-pear-DB_NestedSet.git] / php-pear-DB_NestedSet.spec
index 4788b0986c35a1cc79fff9c31ee1a0a5b51593d7..8f511b05228862c3ebee7e73b8a9bbb480394181 100644 (file)
@@ -5,20 +5,25 @@
 %define                _pearname       %{_class}_%{_subclass}
 
 Summary:       %{_pearname} - API to build and query nested sets
-Summary(pl):   %{_pearname} - API to tworzenia i wykonywania zagnie¿dzonych zapytañ
+Summary(pl):   %{_pearname} - API to tworzenia i wykonywania zagnie¿d¿onych zapytañ
 Name:          php-pear-%{_pearname}
-Version:       1.3.3
-Release:       1
+Version:       1.3.6
+Release:       3
+Epoch:         0
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: 1e63acd2bcbc1a09a56f319784e8648d
+# Source0-md5: 556e7afbf740c0f18b35bfd820fd75b9
 URL:           http://pear.php.net/package/DB_NestedSet/
-BuildRequires: rpm-php-pearprov >= 4.0.2-98
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-12
 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:
@@ -32,7 +37,7 @@ relational database. The package provides a way to:
   - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
 - It also features caching of SQL queries using PEAR::Cache.
 
-This class has in PEAR status: %{_status}.
+In PEAR status of this package is: %{_status}.
 
 %description -l pl
 DB_NestedSet pozwala na tworzenie drzew nieskoñczonej d³ugo¶ci
@@ -50,22 +55,47 @@ wewn
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package tests
+Summary:       Tests for PEAR::%{_pearname}
+Summary(pl):   Testy dla PEAR::%{_pearname}
+Group:         Development/Languages/PHP
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+AutoReq:       no
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl
+Testy dla PEAR::%{_pearname}.
+
 %prep
-%setup -q -c
+%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}/%{_class}/%{_subclass}
-
-install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{_pearname}-%{version}/{docs,tests}
+%doc install.log
+%doc docs/%{_pearname}/docs/*
+%{php_pear_dir}/.registry/*.reg
 %dir %{php_pear_dir}/%{_class}/%{_subclass}
 %{php_pear_dir}/%{_class}/*.php
 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
+
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/*
This page took 0.088715 seconds and 4 git commands to generate.