]> git.pld-linux.org Git - packages/python-testtools.git/commitdiff
- new, based on fc package auto/th/python-testtools-0_9_15-1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 Jul 2012 20:15:47 +0000 (20:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-testtools.spec -> 1.1

python-testtools.spec [new file with mode: 0644]

diff --git a/python-testtools.spec b/python-testtools.spec
new file mode 100644 (file)
index 0000000..91b8918
--- /dev/null
@@ -0,0 +1,67 @@
+#
+# 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/*
This page took 0.13545 seconds and 4 git commands to generate.