[python-testtools] Update to 0.9.11 Enable documentation generation
Michel Alexandre Salim
salimma at fedoraproject.org
Fri Jul 15 09:21:25 UTC 2011
commit ae2856e9d1615fd7d3707e90db6ef816579710b0
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Fri Jul 15 11:21:10 2011 +0200
Update to 0.9.11
Enable documentation generation
.gitignore | 2 +-
python-testtools.spec | 27 +++++++++++++++++++++++----
sources | 2 +-
3 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 05bf7d1..3f1312f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/testtools-0.9.8.tar.gz
+/testtools-0.9.11.tar.gz
diff --git a/python-testtools.spec b/python-testtools.spec
index 1b95307..92edaf2 100644
--- a/python-testtools.spec
+++ b/python-testtools.spec
@@ -1,22 +1,32 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-testtools
-Version: 0.9.8
-Release: 2%{?dist}
+Version: 0.9.11
+Release: 1%{?dist}
Summary: Extensions to the Python unit testing framework
Group: Development/Tools
License: MIT
URL: https://launchpad.net/testtools
-Source0: http://pypi.python.org/packages/source/t/testtools/testtools-0.9.8.tar.gz
+Source0: http://pypi.python.org/packages/source/t/testtools/testtools-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
+BuildRequires: python-sphinx
%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}
@@ -24,6 +34,7 @@ framework.
%build
%{__python} setup.py build
+make -C doc html
%install
@@ -37,11 +48,19 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc LICENSE HACKING MANUAL NEWS README
+%doc LICENSE NEWS README
%{python_sitelib}/*
+%files doc
+%defattr(-,root,root,-)
+%doc doc/_build/html/*
+
%changelog
+* Fri Jul 15 2011 Michel Salim <salimma at fedoraproject.org> - 0.9.11-1
+- Update to 0.9.11
+- Enable documentation generation
+
* Thu Apr 7 2011 Michel Salim <salimma at fedoraproject.org> - 0.9.8-2
- Add definitions needed by older RPM versions
diff --git a/sources b/sources
index c12555d..eb433b5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9709864277dd8a58b83e94de43aa2ab2 testtools-0.9.8.tar.gz
+89616849d247f120bb3984cd871b161f testtools-0.9.11.tar.gz
More information about the scm-commits
mailing list