]> git.pld-linux.org Git - packages/php-pear-DB_NestedSet.git/blobdiff - php-pear-DB_NestedSet.spec
- BR rpm-build macros >= 1.300 for %pear_ macros
[packages/php-pear-DB_NestedSet.git] / php-pear-DB_NestedSet.spec
index 7d7606fc9f370173963da59974b265a1a45db76a..cdfe0e5fea4b6f4bc19e0148df8b6bcdd5af11c4 100644 (file)
@@ -1,24 +1,30 @@
 %include       /usr/lib/rpm/macros.php
-%define         _class          DB
-%define         _subclass       NestedSet
-%define                _status         stable
+%define                _class          DB
+%define                _subclass       NestedSet
+%define                _status         beta
 %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.2
-Release:       1
+Version:       1.3.6
+Release:       4
+Epoch:         0
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: fd15348a64d85faedffc20fd087d6f48
+# 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
+BuildRequires: rpmbuild(macros) >= 1.300
 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 +38,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 +56,48 @@ 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
+AutoProv:      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.078163 seconds and 4 git commands to generate.