]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - php-pear.spec
Add .tar.xz deps
[projects/template-specs.git] / php-pear.spec
index d6bae1bce1aa83da227487eac1848d22be289ed2..9cda0d336ada4148b5a0d99ac69e087b17b2b5d4 100644 (file)
@@ -9,7 +9,6 @@
 #
 %define                status          stable
 %define                pearname        class_subclass
-%include       /usr/lib/rpm/macros.php
 Summary:       %{pearname} -
 Summary(pl.UTF-8):     %{pearname} -
 Name:          php-pear-%{pearname}
@@ -22,16 +21,16 @@ URL:                http://pear.php.net/package/Class_Subclass/
 BuildRequires: php-packagexml2cl
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.580
+BuildRequires: rpmbuild(macros) >= 1.745
 Requires:      php-pear
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # exclude optional dependencies
-%define                _noautoreq      pear(XML/Beautifier/.*)
+%define                _noautoreq_pear XML/Beautifier
 
 # included in tests
-%define                _noautoreq pear(HTML_TestListener.php) pear(TestUnit.php)
+%define                _noautoreq_pear HTML_TestListener.php TestUnit.php
 
 %description
 ...
@@ -43,20 +42,6 @@ In PEAR status of this package is: %{status}.
 
 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
-Requires:      %{name} = %{version}-%{release}
-AutoProv:      no
-AutoReq:       no
-
-%description tests
-Tests for PEAR::%{pearname}.
-
-%description tests -l pl.UTF-8
-Testy dla PEAR::%{pearname}.
-
 %prep
 %pear_package_setup
 
@@ -77,23 +62,6 @@ mv ./%{php_pear_dir}/docs/%{pearname}/* docs/%{pearname}
 install -d docs/%{pearname}
 mv ./%{php_pear_dir}/data/%{pearname}/docs/* docs/%{pearname}
 
-# tests fixups
-# class/test -> tests
-install -d ./%{php_pear_dir}/tests/%{pearname}
-mv ./%{php_pear_dir}/{%{_class}/test/*,tests/%{pearname}}
-
-# pear/tests/pearname/tests -> pear/tests/pearname
-mv ./%{php_pear_dir}/tests/%{pearname}/{tests/*,}
-rmdir ./%{php_pear_dir}/tests/%{pearname}/tests
-
-# docs/tests -> tests
-install -d ./%{php_pear_dir}/tests/%{pearname}
-mv docs/%{pearname}/tests/* ./%{php_pear_dir}/tests/%{pearname}
-
-# tests -> tests/%{pearname}
-install -d ./%{php_pear_dir}/tests/%{pearname}
-mv ./%{php_pear_dir}/tests/{*,%{pearname}}
-
 # examples fixups
 mv ./%{php_pear_dir}/examples .
 mv ./%{php_pear_dir}/%{_class}/examples .
@@ -134,7 +102,3 @@ rm -rf $RPM_BUILD_ROOT
 %{php_pear_dir}/data/%{pearname}
 
 %{_examplesdir}/%{name}-%{version}
-
-%files tests
-%defattr(644,root,root,755)
-%{php_pear_dir}/tests/%{pearname}
This page took 0.025934 seconds and 4 git commands to generate.