packages: php-simpletest/php-simpletest.spec (NEW) - new
glen
glen at pld-linux.org
Wed Mar 10 21:44:32 CET 2010
Author: glen Date: Wed Mar 10 20:44:32 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/php-simpletest:
php-simpletest.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-simpletest/php-simpletest.spec
diff -u /dev/null packages/php-simpletest/php-simpletest.spec:1.1
--- /dev/null Wed Mar 10 21:44:32 2010
+++ packages/php-simpletest/php-simpletest.spec Wed Mar 10 21:44:27 2010
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+%define php_min_version 4.0.0
+%define pkgname simpletest
+Summary: Unit testing for PHP
+Name: php-%{pkgname}
+Version: 1.0.1
+Release: 0.1
+License: LGPL v2.1
+Group: Development/Languages/PHP
+Source0: http://downloads.sourceforge.net/project/%{pkgname}/%{pkgname}/%{pkgname}_%{version}/%{pkgname}_%{version}.tar.gz
+# Source0-md5: ab70ef7617b37a933499a630890461da
+URL: http://www.simpletest.org/
+BuildRequires: rpmbuild(macros) >= 1.461
+Requires: php-common >= 3:%{php_min_version}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{php_data_dir}/%{pkgname}
+
+# _phpdocdir / php_docdir / phpdoc_dir ?
+%define _phpdocdir %{_docdir}/phpdoc
+
+# put it together for rpmbuild
+%define _noautoreq %{?_noautophp} %{?_noautopear}
+
+%description
+SimpleTest is an open source unit test framework for the PHP
+programming language and was created by Marcus Baker. The test
+structure is similar to JUnit/PHPUnit.
+
+SimpleTest supports mock objects and can be used to automate the
+regression testing of web applications with a scriptable HTTP Client
+that can parse HTML pages and simulate things like clicking on links
+and submitting forms.
+
+%package phpdoc
+Summary: Online manual for %{pkgname}
+Summary(pl.UTF-8): Dokumentacja online do %{pkgname}
+Group: Documentation
+Requires: php-dirs
+
+%description phpdoc
+Documentation for %{pkgname}.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do %{pkgname}.
+
+%prep
+%setup -qc
+mv %{pkgname}/docs .
+mv simpletest/[HLRV]* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -a %{pkgname}/* $RPM_BUILD_ROOT%{_appdir}
+
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{pkgname}
+cp -a docs/* $RPM_BUILD_ROOT%{_phpdocdir}/%{pkgname}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc HELP_MY_TESTS_DONT_WORK_ANYMORE README
+%{_appdir}
+
+%files phpdoc
+%defattr(644,root,root,755)
+%dir %{_phpdocdir}/%{pkgname}
+%lang(en) %{_phpdocdir}/%{pkgname}/en
+%lang(fr) %{_phpdocdir}/%{pkgname}/fr
+
+%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 2010/03/10 20:44:27 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list