[python-dateutil] Build docs
Zbigniew Jędrzejewski-Szmek
zbyszek at fedoraproject.org
Sat Feb 21 23:34:13 UTC 2015
commit 6954608b1caa8632c18d623d4cce59e4e6cf783b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 21 12:21:17 2015 -0500
Build docs
python-dateutil.spec | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/python-dateutil.spec b/python-dateutil.spec
index 1474121..e89252d 100644
--- a/python-dateutil.spec
+++ b/python-dateutil.spec
@@ -14,13 +14,23 @@ Patch0: python-dateutil-system-zoneinfo.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
+BuildRequires: python-sphinx
+BuildRequires: python-six
Requires: tzdata
Requires: python-six
+# Use the same directory of the main package for subpackage licence and docs
+%global _docdir_fmt %{name}
+
%description
The dateutil module provides powerful extensions to the standard datetime
module available in Python 2.3+.
+%package doc
+Summary: API documentation for python-dateutil
+%description doc
+This package contains %{summary}.
+
%prep
%setup -q -n dateutil-%{version}
%patch0 -p0
@@ -29,6 +39,7 @@ mv NEWS.new NEWS
%build
%{__python2} setup.py build
+make -C docs html
%install
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
@@ -39,9 +50,14 @@ mv NEWS.new NEWS
%{python2_sitelib}/dateutil/
%{python2_sitelib}/*.egg-info
+%files doc
+%license LICENSE
+%doc docs/_build/html
+
%changelog
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> - 1:2.4.0-1
- Change to new upstream, update to 2.4 (#1126521)
+- Build documentation.
* Tue Aug 05 2014 Jon Ciesla <limburgher at gmail.com> - 1:1.5-9
- Reverting to 1.5 pre user feedback and upstream.
More information about the scm-commits
mailing list