|
|
fe0338f |
Name: python3-docs
|
|
|
fe0338f |
Summary: Documentation for the Python 3 programming language
|
|
|
e7e60eb |
|
|
|
fe0338f |
# The Version should be in-sync with the python3 package:
|
|
|
f8b3978 |
%global pybasever 3.12
|
|
|
a565021 |
%global general_version %{pybasever}.2
|
|
|
6ece5f5 |
#global prerel ...
|
|
|
fe0338f |
%global upstream_version %{general_version}%{?prerel}
|
|
|
fe0338f |
Version: %{general_version}%{?prerel:~%{prerel}}
|
|
|
fe842bd |
Release: %autorelease
|
|
|
fcb5033 |
# The documentation is licensed as Python itself: Python-2.0.1
|
|
|
fcb5033 |
# Examples, recipes, and other code in the documentation are dual licensed under Python-2.0.1/0BSD
|
|
|
fcb5033 |
License: Python-2.0.1 AND (Python-2.0.1 OR 0BSD)
|
|
|
fe0338f |
URL: https://www.python.org/
|
|
|
5ce3d1a |
Source0: %{url}ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz
|
|
|
5ce3d1a |
Source1: %{url}ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz.asc
|
|
|
f8b3978 |
# The release manager for Python 3.12 is Thomas Wouters
|
|
|
f8b3978 |
Source2: https://github.com/Yhg1s.gpg
|
|
|
e7e60eb |
|
|
|
fe0338f |
BuildArch: noarch
|
|
|
e7e60eb |
|
|
|
fe0338f |
Recommends: python3 = %{version}
|
|
|
fe2e238 |
%{?python_provide:%python_provide %{name}}
|
|
|
fe2e238 |
|
|
|
398e7f0 |
BuildRequires: make
|
|
|
fe0338f |
BuildRequires: %{__python3}
|
|
|
0a9e2ca |
BuildRequires: python3-docs-theme >= 2022.1
|
|
|
7b1c53e |
BuildRequires: (python3-sphinx < 1:3 or python3-sphinx >= 1:3.2)
|
|
|
fe0338f |
BuildRequires: python3-docutils
|
|
|
fe0338f |
BuildRequires: python3-pygments
|
|
|
5ce3d1a |
BuildRequires: gnupg2
|
|
|
e7e60eb |
|
|
|
fe0338f |
%bcond_without linkchecker
|
|
|
fe0338f |
%if %{with linkchecker}
|
|
|
fe0338f |
BuildRequires: linkchecker
|
|
|
e7e60eb |
%endif
|
|
|
e7e60eb |
|
|
|
e7e60eb |
|
|
|
e7e60eb |
%description
|
|
|
e7e60eb |
The python3-docs package contains documentation on the Python 3
|
|
|
e7e60eb |
programming language and interpreter.
|
|
|
e7e60eb |
|
|
|
e7e60eb |
%prep
|
|
|
5ce3d1a |
%gpgverify -k2 -s1 -d0
|
|
|
fe0338f |
%autosetup -p1 -n Python-%{upstream_version}
|
|
|
fe0338f |
|
|
|
e7e60eb |
%build
|
|
|
074a861 |
make -C Doc html PYTHON=%{__python3}
|
|
|
e7e60eb |
rm Doc/build/html/.buildinfo
|
|
|
e7e60eb |
|
|
|
e7e60eb |
%install
|
|
|
fe0338f |
mkdir -p %{buildroot}
|
|
|
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)
|
|
|
fe0338f |
%if %{with linkchecker}
|
|
|
e7e60eb |
linkchecker \
|
|
|
e7e60eb |
--ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
|
|
|
14004de |
--ignore-url=.txt\$ --no-warnings \
|
|
|
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
|
|
|
fe842bd |
%autochangelog
|