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:
fe0338f
%global         pybasever 3.8
f4aeabb
%global         general_version %{pybasever}.10
616b713
#global         prerel ...
fe0338f
%global         upstream_version %{general_version}%{?prerel}
fe0338f
Version:        %{general_version}%{?prerel:~%{prerel}}
5ce3d1a
Release:        1%{?dist}
fe0338f
License:        Python
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
5ce3d1a
Source2:        %{url}static/files/pubkeys.txt
e7e60eb
fe0338f
%global         theme_version 2018.7
5ce3d1a
Source3:        %{pypi_source python-docs-theme %{theme_version}}
e7e60eb
fe0338f
BuildArch:      noarch
e7e60eb
fe0338f
Recommends:     python3 = %{version}
fe2e238
%{?python_provide:%python_provide %{name}}
fe2e238
fe0338f
BuildRequires:  %{__python3}
fe0338f
BuildRequires:  python3-sphinx
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
fe0338f
# unpack the Sphinx theme to the right location
5ce3d1a
tar -xf %{SOURCE3} python-docs-theme-%{theme_version}/python_docs_theme
fe0338f
mv python-docs-theme-%{theme_version}/python_docs_theme Doc/tools
fe0338f
rmdir python-docs-theme-%{theme_version}
e7e60eb
e7e60eb
%build
fe0338f
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
f4aeabb
* Wed May 05 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.8.10-1
f4aeabb
- Update to 3.8.10
f4aeabb
a22c29a
* Tue Apr 06 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.8.9-1
a22c29a
- Update to 3.8.9
a22c29a
5560aa0
* Tue Dec 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.7-1
5560aa0
- Update to 3.8.7
5560aa0
a3ee956
* Fri Sep 25 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.8.6-1
a3ee956
- Update to 3.8.6
a3ee956
8360765
* Tue Jul 21 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.5-1
8360765
- Update to 3.8.5
8360765
79ff098
* Wed Jul 15 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.8.2-2
79ff098
- Update to 3.8.4
79ff098
5ce3d1a
* Wed Mar 25 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.8.2-1
5ce3d1a
- Update to 3.8.2
5ce3d1a
5cfcbf5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
5cfcbf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5cfcbf5
616b713
* Tue Oct 29 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0-1
616b713
- Update to 3.8.0
616b713
d4aeac9
* Fri Oct 04 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~rc1-1
d4aeac9
- Update to 3.8.0rc1
d4aeac9
fe0338f
* Thu Sep 05 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b4-1
fe0338f
- Update to 3.8.0b4
fe0338f
639294d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-2
639294d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
639294d
e7517b0
* Tue Jul 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-1
e7517b0
- Update to 3.7.4
e7517b0
ba320ad
* Thu Apr 25 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.3-1
ba320ad
- Update to 3.7.3
ba320ad
e83f79d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-2
e83f79d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e83f79d
25cc002
* Tue Dec 25 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-1
25cc002
- Update to 3.7.2
25cc002
9299ab9
* Thu Dec 06 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-1
9299ab9
- Update to 3.7.1
9299ab9
577aec9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-0.2.rc1
577aec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
577aec9
7ffd1c3
* Wed Jun 20 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.1.rc1
7ffd1c3
- Update to 3.7.0rc1
7ffd1c3
aaa90c9
* Thu Apr 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-2
aaa90c9
- Only recommend the python3 package
aaa90c9
0f89eec
* Thu Apr 05 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.5-1
0f89eec
- Update to 3.6.5
0f89eec
a187cc5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.4-2
a187cc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a187cc5
14004de
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-1
14004de
- Update to version 3.6.4
14004de
e319186
* Mon Oct 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-1
e319186
- Update to version 3.6.3
e319186
ec02a6f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-2
ec02a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ec02a6f
d5a2407
* Mon Jul 24 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-1
d5a2407
- Update to version 3.6.2
d5a2407
Iryna Shcherbina 8eb336d
* Wed Mar 22 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.1-1
Iryna Shcherbina 8eb336d
- Update to version 3.6.1 final
Iryna Shcherbina 8eb336d
Iryna Shcherbina dd39662
* Fri Mar 17 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.1-0.1.rc1
Iryna Shcherbina dd39662
- Update to 3.6.1 release candidate 1
Iryna Shcherbina dd39662
c6624a0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
c6624a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c6624a0
3ad630a
* Mon Jan 02 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-1
b8a4ae7
- Update to current version
b8a4ae7
47fc7ee
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.2-2
47fc7ee
- Rebuild for Python 3.6
47fc7ee
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.