Blame python3-docs.spec

e7e60eb
%if 0%{?fedora}
Matej Stuchlik 4f85913
%global check_links 1
e7e60eb
%else
e7e60eb
%global check_links 0
e7e60eb
%endif
e7e60eb
e7e60eb
%{!?__python_ver:%global __python_ver 3}
e7e60eb
e7e60eb
%if "%{__python_ver}" != "EMPTY"
e7e60eb
%global main_python 0
e7e60eb
%global python python%{__python_ver}
e7e60eb
%else
e7e60eb
%global main_python 1
e7e60eb
%global python python
e7e60eb
%endif
e7e60eb
7e22738
%define pybasever 3.5
e7e60eb
e7e60eb
Summary: Documentation for the Python 3 programming language
e7e60eb
Name: %{python}-docs
e7e60eb
# The Version needs to be in-sync with the "python" package:
a2c3a32
Version: %{pybasever}.2
a2c3a32
Release: 1%{?dist}
e7e60eb
License: Python
e7e60eb
Group: Documentation
7e22738
Source: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
e7e60eb
BuildArch: noarch
e7e60eb
e7e60eb
Requires: %{python} = %{version}
e7e60eb
e7e60eb
BuildRequires: %{python}
e7e60eb
BuildRequires: %{python}-sphinx
e7e60eb
BuildRequires: %{python}-docutils
e7e60eb
BuildRequires: %{python}-pygments
e7e60eb
e7e60eb
%if %{check_links}
e7e60eb
BuildRequires: linkchecker
e7e60eb
%endif
e7e60eb
e7e60eb
URL: http://www.python.org/
e7e60eb
e7e60eb
%description
e7e60eb
The python3-docs package contains documentation on the Python 3
e7e60eb
programming language and interpreter.
e7e60eb
e7e60eb
Install the python3-docs package if you'd like to use the documentation
e7e60eb
for the Python 3 language.
e7e60eb
e7e60eb
%prep
e7e60eb
%setup -q -n Python-%{version}
e7e60eb
e7e60eb
%build
2adbfac
make -C Doc html SPHINXBUILD=sphinx-build-3 PYTHON=%{python}
e7e60eb
rm Doc/build/html/.buildinfo
e7e60eb
e7e60eb
%install
e7e60eb
mkdir -p $RPM_BUILD_ROOT
e7e60eb
e7e60eb
%check
e7e60eb
# Verify that all of the local links work (see rhbz#670493 - doesn't apply
e7e60eb
# to python3-docs, but only to older python-docs)
e7e60eb
#
e7e60eb
# (we can't check network links, as we shouldn't be making network connections
e7e60eb
# within a build.  Also, don't bother checking the .txt source files; some
e7e60eb
# contain example URLs, which don't work)
e7e60eb
%if %{check_links}
e7e60eb
linkchecker \
e7e60eb
  --ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
e7e60eb
  --ignore-url=.txt\$ \
e7e60eb
  Doc/build/html/index.html
e7e60eb
%endif
e7e60eb
e7e60eb
%files
e7e60eb
%doc Misc/NEWS Misc/HISTORY Misc/README Doc/build/html
e7e60eb
e7e60eb
%changelog
a2c3a32
* Mon Aug 22 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-1
a2c3a32
- Update to current version
a2c3a32
- Removed use-classic-theme.patch as it was no longer necessary
a2c3a32
8a8232f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-2
8a8232f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a8232f
Robert Kuska 5ab4cb4
* Mon Dec 14 2015 Robert Kuska <rkuska@redhat.com> - 3.5.1-1
Robert Kuska 5ab4cb4
- Update to current version
Robert Kuska 5ab4cb4
7e22738
* Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.0-1
7e22738
- Update to current version
7e22738
dfe85e5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.3-2
dfe85e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dfe85e5
Matej Stuchlik 23982b7
* Wed Apr 15 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-1
Matej Stuchlik 23982b7
- Rebuild for Python 3.4.3
Matej Stuchlik 23982b7
Matej Stuchlik 4f85913
* Tue Nov 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-1
Matej Stuchlik 4f85913
- Rebuilt for Python 3.4.2
Matej Stuchlik 4f85913
d041acf
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
d041acf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d041acf
2adbfac
* Thu May 29 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.1-1
2adbfac
- Rebuilt for Python 3.4.1
2adbfac
e7e60eb
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-2
e7e60eb
- Patch docs build to use locally installed python3-sphinx.
e7e60eb
e7e60eb
* Wed Sep 04 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-1
e7e60eb
- Initial package, spec adapted from python-docs.