SPECS: php-PHPUnit.spec (NEW) - new, based on php-pear-PHPUnit.spec

glen glen at pld-linux.org
Tue Aug 12 19:55:02 CEST 2008


Author: glen                         Date: Tue Aug 12 17:55:02 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, based on php-pear-PHPUnit.spec

---- Files affected:
SPECS:
   php-PHPUnit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php-PHPUnit.spec
diff -u /dev/null SPECS/php-PHPUnit.spec:1.1
--- /dev/null	Tue Aug 12 19:55:02 2008
+++ SPECS/php-PHPUnit.spec	Tue Aug 12 19:54:57 2008
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.php
+%define		_class		PHPUnit
+%define		_status		stable
+%define		_pearname	%{_class}
+Summary:	%{_pearname} - regression testing framework for unit tests
+Summary(pl.UTF-8):	%{_pearname} - zestaw testów regresyjnych
+Name:		php-%{_pearname}
+Version:	3.2.21
+Release:	0.5
+License:	BSD
+Group:		Development/Languages/PHP
+Source0:	http://pear.phpunit.de/get/PHPUnit-%{version}.tgz
+# Source0-md5:	183b09907e341006e549476efaa18442
+Source1:	http://pear.phpunit.de/channel.xml
+# Source1-md5:	b8ccb5f4727e7e6d4ee0c0e690f5423b
+URL:		http://www.phpunit.de/
+BuildRequires:	php-pear-PEAR
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.472
+Requires:	php-common >= 3:4.1.0
+Requires:	php-pear
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# exclude optional dependencies
+%define		_noautoreq	'pear(Image/GraphViz.*)' 'pear(Log.*)'
+
+%description
+PHPUnit is a regression testing framework used by the developer who
+implements unit tests in PHP. It is based upon JUnit, which can be
+found at <http://www.junit.org/>.
+
+In PEAR status of this package is: %{_status}.
+
+%description -l pl.UTF-8
+PHPUnit jest zestawem testów regresyjnych używanych przez developerów,
+którzy implementują jednostki testowe w PHP. Jest bazowane na JUnit,
+który można znaleźć pod adresem <http://www.junit.org/>.
+
+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 -c %{SOURCE1}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
+
+# also copy channel information
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/.channels
+cp -a .%{php_pear_dir}/.channels/pear.phpunit.de.reg $RPM_BUILD_ROOT%{php_pear_dir}/.channels
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc install.log optional-packages.txt
+%{php_pear_dir}/.registry/.channel.pear.phpunit.de/*.reg
+# these should not be in this package
+%dir %{php_pear_dir}/.registry/.channel.pear.phpunit.de
+%{php_pear_dir}/.channels/pear.phpunit.de.reg
+
+%{php_pear_dir}/%{_class}
+
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/%{_pearname}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/08/12 17:54:57  glen
+- new, based on php-pear-PHPUnit.spec
================================================================


More information about the pld-cvs-commit mailing list