Author: glen Date: Sun Jul 1 20:15:52 2012 GMT Module: packages Tag: HEAD ---- Log message: - new, based on fc package
---- Files affected: packages/python-testtools: python-testtools.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/python-testtools/python-testtools.spec diff -u /dev/null packages/python-testtools/python-testtools.spec:1.1 --- /dev/null Sun Jul 1 22:15:52 2012 +++ packages/python-testtools/python-testtools.spec Sun Jul 1 22:15:47 2012 @@ -0,0 +1,77 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" + +Summary: Extensions to the Python unit testing framework +Name: python-testtools +Version: 0.9.15 +Release: 1 +License: MIT +Group: Development/Tools +URL: https://launchpad.net/testtools +Source0: http://pypi.python.org/packages/source/t/testtools/testtools-%{version}.tar.gz +# Source0-md5: 01a30afb126de49de4998c255259d312 +BuildRequires: python-Sphinx +BuildRequires: python-devel +BuildRequires: rpmbuild(macros) >= 1.219 +BuildRequires: sphinx-pdg +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +testtools is a set of extensions to the Python standard library's unit +testing framework. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains HTML documentation for %{name}. + +%prep +%setup -q -n testtools-%{version} + +%build +%{__python} setup.py build +%{__make} -C doc html + +%if %{with tests} +%{__python} setup.py test +%endif + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install \ + -O2 \ + --skip-build \ + --root $RPM_BUILD_ROOT + +%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/testtools/testresult +%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/testtools/tests + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE NEWS README +%{py_sitescriptdir}/testtools/*.py[co] +%{py_sitescriptdir}/testtools-*.egg-info + +%files doc +%defattr(644,root,root,755) +%doc doc/_build/html/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2012/07/01 20:15:47 glen +- new, based on fc package ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
