Blame python3-docs.spec

e7e60eb
%if 0%{?fedora}
9299ab9
%bcond_without check_links
e7e60eb
%else
9299ab9
%bcond_with check_links
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
7ffd1c3
%global pybasever 3.7
9299ab9
%global prerel %{nil}
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:
25cc002
Version: %{pybasever}.2
e83f79d
Release: 2%{?dist}
e7e60eb
License: Python
9299ab9
Source: https://www.python.org/ftp/python/%{version}/Python-%{version}%{?prerel}.tar.xz
e7e60eb
BuildArch: noarch
e7e60eb
aaa90c9
Recommends: %{python} = %{version}
e7e60eb
e7e60eb
BuildRequires: %{python}
e7e60eb
BuildRequires: %{python}-sphinx
e7e60eb
BuildRequires: %{python}-docutils
e7e60eb
BuildRequires: %{python}-pygments
e7e60eb
9299ab9
%if %{with check_links}
e7e60eb
BuildRequires: linkchecker
e7e60eb
%endif
e7e60eb
b8a4ae7
URL: https://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
9299ab9
%setup -q -n Python-%{version}%{?prerel}
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)
9299ab9
%if %{with check_links}
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
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.