| |
@@ -1,63 +1,57 @@
|
| |
- %if 0%{?fedora}
|
| |
- %bcond_without check_links
|
| |
- %else
|
| |
- %bcond_with check_links
|
| |
- %endif
|
| |
-
|
| |
- %{!?__python_ver:%global __python_ver 3}
|
| |
+ Name: python3-docs
|
| |
+ Summary: Documentation for the Python 3 programming language
|
| |
|
| |
- %if "%{__python_ver}" != "EMPTY"
|
| |
- %global main_python 0
|
| |
- %global python python%{__python_ver}
|
| |
- %else
|
| |
- %global main_python 1
|
| |
- %global python python
|
| |
- %endif
|
| |
+ # The Version should be in-sync with the python3 package:
|
| |
+ %global pybasever 3.8
|
| |
+ %global general_version %{pybasever}.0
|
| |
+ %global prerel b4
|
| |
+ %global upstream_version %{general_version}%{?prerel}
|
| |
+ Version: %{general_version}%{?prerel:~%{prerel}}
|
| |
+ Release: 1%{?dist}
|
| |
+ License: Python
|
| |
+ URL: https://www.python.org/
|
| |
+ Source: https://www.python.org/ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz
|
| |
|
| |
- %global pybasever 3.7
|
| |
- %global prerel %{nil}
|
| |
+ %global theme_version 2018.7
|
| |
+ Source1: %{pypi_source python-docs-theme %{theme_version}}
|
| |
|
| |
- Summary: Documentation for the Python 3 programming language
|
| |
- Name: %{python}-docs
|
| |
- # The Version needs to be in-sync with the "python" package:
|
| |
- Version: %{pybasever}.4
|
| |
- Release: 2%{?dist}
|
| |
- License: Python
|
| |
- Source: https://www.python.org/ftp/python/%{version}/Python-%{version}%{?prerel}.tar.xz
|
| |
- BuildArch: noarch
|
| |
+ # Fix a dead link
|
| |
+ Patch0: https://github.com/python/cpython/pull/15700.patch
|
| |
|
| |
- Recommends: %{python} = %{version}
|
| |
+ BuildArch: noarch
|
| |
|
| |
+ Recommends: python3 = %{version}
|
| |
%{?python_provide:%python_provide %{name}}
|
| |
|
| |
- BuildRequires: python-rpm-macros
|
| |
- BuildRequires: %{python}
|
| |
- BuildRequires: %{python}-sphinx
|
| |
- BuildRequires: %{python}-docutils
|
| |
- BuildRequires: %{python}-pygments
|
| |
+ BuildRequires: %{__python3}
|
| |
+ BuildRequires: python3-sphinx
|
| |
+ BuildRequires: python3-docutils
|
| |
+ BuildRequires: python3-pygments
|
| |
|
| |
- %if %{with check_links}
|
| |
- BuildRequires: linkchecker
|
| |
+ %bcond_without linkchecker
|
| |
+ %if %{with linkchecker}
|
| |
+ BuildRequires: linkchecker
|
| |
%endif
|
| |
|
| |
- URL: https://www.python.org/
|
| |
|
| |
%description
|
| |
The python3-docs package contains documentation on the Python 3
|
| |
programming language and interpreter.
|
| |
|
| |
- Install the python3-docs package if you'd like to use the documentation
|
| |
- for the Python 3 language.
|
| |
-
|
| |
%prep
|
| |
- %setup -q -n Python-%{version}%{?prerel}
|
| |
+ %autosetup -p1 -n Python-%{upstream_version}
|
| |
+
|
| |
+ # unpack the Sphinx theme to the right location
|
| |
+ tar -xf %{SOURCE1} python-docs-theme-%{theme_version}/python_docs_theme
|
| |
+ mv python-docs-theme-%{theme_version}/python_docs_theme Doc/tools
|
| |
+ rmdir python-docs-theme-%{theme_version}
|
| |
|
| |
%build
|
| |
- make -C Doc html SPHINXBUILD=sphinx-build-3 PYTHON=%{python}
|
| |
+ make -C Doc html PYTHON=%{__python3}
|
| |
rm Doc/build/html/.buildinfo
|
| |
|
| |
%install
|
| |
- mkdir -p $RPM_BUILD_ROOT
|
| |
+ mkdir -p %{buildroot}
|
| |
|
| |
%check
|
| |
# Verify that all of the local links work (see rhbz#670493 - doesn't apply
|
| |
@@ -66,7 +60,7 @@
|
| |
# (we can't check network links, as we shouldn't be making network connections
|
| |
# within a build. Also, don't bother checking the .txt source files; some
|
| |
# contain example URLs, which don't work)
|
| |
- %if %{with check_links}
|
| |
+ %if %{with linkchecker}
|
| |
linkchecker \
|
| |
--ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
|
| |
--ignore-url=.txt\$ --no-warnings \
|
| |
@@ -77,6 +71,9 @@
|
| |
%doc Misc/NEWS Misc/HISTORY Misc/README Doc/build/html
|
| |
|
| |
%changelog
|
| |
+ * Thu Sep 05 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b4-1
|
| |
+ - Update to 3.8.0b4
|
| |
+
|
| |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
Why was that requirement removed? Or why was it needed in the first place?