packages: php-pear-Math_Vector/php-pear-Math_Vector.spec - up to 0.7.0, dro...

glen glen at pld-linux.org
Sat Oct 9 18:20:33 CEST 2010


Author: glen                         Date: Sat Oct  9 16:20:33 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.7.0, drop tests

---- Files affected:
packages/php-pear-Math_Vector:
   php-pear-Math_Vector.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: packages/php-pear-Math_Vector/php-pear-Math_Vector.spec
diff -u packages/php-pear-Math_Vector/php-pear-Math_Vector.spec:1.29 packages/php-pear-Math_Vector/php-pear-Math_Vector.spec:1.30
--- packages/php-pear-Math_Vector/php-pear-Math_Vector.spec:1.29	Sat Aug 21 21:09:23 2010
+++ packages/php-pear-Math_Vector/php-pear-Math_Vector.spec	Sat Oct  9 18:20:28 2010
@@ -7,24 +7,20 @@
 Summary:	%{_class}_%{_subclass} - vector and vector operation classes
 Summary(pl.UTF-8):	%{_class}_%{_subclass} - wektory i klasy operujące na wektorach
 Name:		php-pear-%{_pearname}
-Version:	0.6.2
-Release:	6
+Version:	0.7.0
+Release:	1
 License:	PHP 2.02
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5:	c1c70ace9f00bf96142f717c42988657
+# Source0-md5:	8a35077718ffa00e90b75bbd26419932
 URL:		http://pear.php.net/package/Math_Vector/
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	php-pear
-Suggests:	php-pear-PHPUnit <= 0.6.2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# exclude optional dependencies
-%define		_noautoreq	pear(PHPUnit.*)
-
 %description
 Classes to represent Tuples, general Vectors, and 2D-/3D-vectors, as
 well as a static class for vector operations.
@@ -37,48 +33,37 @@
 
 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
 
-install -d docs/%{_pearname}/examples
-mv ./%{php_pear_dir}/%{_class}/%{_subclass}/tests/examples/* docs/%{_pearname}/examples
-
-install -d ./%{php_pear_dir}/tests/%{_pearname}
-mv ./%{php_pear_dir}/{%{_class}/%{_subclass}/tests/*,tests/%{_pearname}}
+mv docs/%{_pearname}/examples .
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# tests should not be packaged
+rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc install.log optional-packages.txt
-%doc docs/%{_pearname}/*
+%doc install.log
 %{php_pear_dir}/.registry/*.reg
-%dir %{php_pear_dir}/%{_class}/%{_subclass}
-%{php_pear_dir}/%{_class}/%{_subclass}/*.php
+%{php_pear_dir}/Math/CompactedTuple.php
+%{php_pear_dir}/Math/Tuple.php
+%{php_pear_dir}/Math/Vector.php
+%{php_pear_dir}/Math/Vector2.php
+%{php_pear_dir}/Math/Vector3.php
+%{php_pear_dir}/Math/VectorOp.php
 
-%files tests
-%defattr(644,root,root,755)
-%{php_pear_dir}/tests/*
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -86,6 +71,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2010/10/09 16:20:28  glen
+- up to 0.7.0, drop tests
+
 Revision 1.29  2010/08/21 19:09:23  glen
 - updated deps with pearize.sh
 - release 6
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-Math_Vector/php-pear-Math_Vector.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list