Build docs
This commit is contained in:
parent
58e0ca4060
commit
6954608b1c
@ -14,13 +14,23 @@ Patch0: python-dateutil-system-zoneinfo.patch
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-sphinx
|
||||||
|
BuildRequires: python-six
|
||||||
Requires: tzdata
|
Requires: tzdata
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
|
|
||||||
|
# Use the same directory of the main package for subpackage licence and docs
|
||||||
|
%global _docdir_fmt %{name}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The dateutil module provides powerful extensions to the standard datetime
|
The dateutil module provides powerful extensions to the standard datetime
|
||||||
module available in Python 2.3+.
|
module available in Python 2.3+.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: API documentation for python-dateutil
|
||||||
|
%description doc
|
||||||
|
This package contains %{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n dateutil-%{version}
|
%setup -q -n dateutil-%{version}
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
@ -29,6 +39,7 @@ mv NEWS.new NEWS
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python2} setup.py build
|
%{__python2} setup.py build
|
||||||
|
make -C docs html
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
@ -39,9 +50,14 @@ mv NEWS.new NEWS
|
|||||||
%{python2_sitelib}/dateutil/
|
%{python2_sitelib}/dateutil/
|
||||||
%{python2_sitelib}/*.egg-info
|
%{python2_sitelib}/*.egg-info
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%license LICENSE
|
||||||
|
%doc docs/_build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.4.0-1
|
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.4.0-1
|
||||||
- Change to new upstream, update to 2.4 (#1126521)
|
- Change to new upstream, update to 2.4 (#1126521)
|
||||||
|
- Build documentation.
|
||||||
|
|
||||||
* Tue Aug 05 2014 Jon Ciesla <limburgher@gmail.com> - 1:1.5-9
|
* Tue Aug 05 2014 Jon Ciesla <limburgher@gmail.com> - 1:1.5-9
|
||||||
- Reverting to 1.5 pre user feedback and upstream.
|
- Reverting to 1.5 pre user feedback and upstream.
|
||||||
|
Loading…
Reference in New Issue
Block a user