[packages/php-phpunit-PHPUnit_SkeletonGenerator] up to 1.2.0

glen glen at pld-linux.org
Wed Oct 17 20:33:54 CEST 2012


commit e478d438b1f5bbbeb5c4829503005c766f18d38d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 17 21:33:38 2012 +0300

    up to 1.2.0
    
    requires php5.3 due namespaces

 php-phpunit-PHPUnit_SkeletonGenerator.spec | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/php-phpunit-PHPUnit_SkeletonGenerator.spec b/php-phpunit-PHPUnit_SkeletonGenerator.spec
index 3df2dd0..cfb2894 100644
--- a/php-phpunit-PHPUnit_SkeletonGenerator.spec
+++ b/php-phpunit-PHPUnit_SkeletonGenerator.spec
@@ -1,20 +1,22 @@
 %define		status		stable
 %define		pearname	PHPUnit_SkeletonGenerator
+%define		php_min_version 5.3.0
 %include	/usr/lib/rpm/macros.php
 Summary:	%{pearname} - Tool that can generate skeleton test classes from production code classes and vice versa
 Name:		php-phpunit-PHPUnit_SkeletonGenerator
-Version:	1.1.0
-Release:	2
+Version:	1.2.0
+Release:	1
 License:	BSD License
 Group:		Development/Languages/PHP
 Source0:	http://pear.phpunit.de/get/%{pearname}-%{version}.tgz
-# Source0-md5:	ef27a64ced03907608716a44397003ac
+# Source0-md5:	c752da8f8b0c604b65eb5457f965640a
 URL:		http://pear.phpunit.de/package/PHPUnit_SkeletonGenerator/
 BuildRequires:	php-channel(pear.phpunit.de)
 BuildRequires:	php-packagexml2cl
 BuildRequires:	php-pear-PEAR >= 1:1.9.4
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.610
+Requires:	php(core) >= %{php_min_version}
 Requires:	php(pcre)
 Requires:	php-channel(pear.phpunit.de)
 Requires:	php-ezc-ConsoleTools >= 1.6
@@ -35,6 +37,12 @@ In PEAR status of this package is: %{status}.
 
 mv docs/PHPUnit_SkeletonGenerator/* .
 
+# some mess?
+#mv .%{php_pear_dir}/SebastianBergmann/PHPUnit .%{php_pear_dir}/
+for a in .%{php_pear_dir}/SebastianBergmann/PHPUnit/SkeletonGenerator/template/*.tpl.dist; do
+	mv $a ${a%.dist}
+done
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
@@ -51,5 +59,6 @@ rm -rf $RPM_BUILD_ROOT
 %doc ChangeLog.markdown LICENSE README.markdown
 %{php_pear_dir}/.registry/.channel.*/*.reg
 %attr(755,root,root) %{_bindir}/phpunit-skelgen
-%{php_pear_dir}/PHPUnit/SkeletonGenerator.php
-%{php_pear_dir}/PHPUnit/SkeletonGenerator
+%dir %{php_pear_dir}/SebastianBergmann
+%dir %{php_pear_dir}/SebastianBergmann/PHPUnit
+%{php_pear_dir}/SebastianBergmann/PHPUnit/SkeletonGenerator
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-phpunit-PHPUnit_SkeletonGenerator.git/commitdiff/e478d438b1f5bbbeb5c4829503005c766f18d38d



More information about the pld-cvs-commit mailing list