Blame python2-docs.spec

Roman Rakus 1dfaab5
%define pybasever 2.7
Mihai Ibanescu c35677e
c4c3a49
Name:			python2-docs
5b1909a
# The Version needs to be in-sync with the "python2" package:
b933431
Version:		2.7.16
b933431
Release:		1%{?dist}
c4c3a49
Summary:		Documentation for the Python 2 programming language
c4c3a49
License:		Python
c4c3a49
URL:			https://www.python.org/
c4c3a49
c4c3a49
Source:			https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
Suvayu Ali c6b12b2
# this changes the makefile so that build requires are used instead of
Suvayu Ali c6b12b2
# hard coded svn checkout to get sphinx
Suvayu Ali c6b12b2
Patch19: python-2.7-texinfomakefile.patch
Suvayu Ali c6b12b2
# this enables the texinfo builder
Suvayu Ali c6b12b2
Patch20: python-2.7-texinfobuilder.patch
ae9c033
c4c3a49
BuildArch:		noarch
ae9c033
c4c3a49
BuildRequires:	python2
6778ad7
BuildRequires:	python2-docutils
6778ad7
BuildRequires:	python2-pygments
c4c3a49
BuildRequires:	python2-sphinx
c4c3a49
BuildRequires:	linkchecker
Mihai Ibanescu c35677e
0f63c9d
Recommends:		python2 = %{version}
83f10ee
5b1909a
Provides:		python-docs = %{version}-%{release}
c51ea59
Mihai Ibanescu c35677e
%description
5b1909a
The python2-docs package contains documentation on the Python 2
19d932d
programming language and interpreter.
Mihai Ibanescu c35677e
5b1909a
Install the python2-docs package if you'd like to use the documentation
5b1909a
for the Python 2 language.
Mihai Ibanescu c35677e
852a91e
%package info
c4c3a49
Summary:		Documentation for the Python 2 programming language as info pages
c4c3a49
BuildRequires:	texinfo
852a91e
5b1909a
Provides:		python-docs-info = %{version}-%{release}
5b1909a
852a91e
%description info
5b1909a
The python2-docs-info package contains documentation on the Python 2
Suvayu Ali c6b12b2
programming language and interpreter as info pages.
Suvayu Ali c6b12b2
5b1909a
Install the python2-docs-info package if you'd like to read the
5b1909a
documentation for the Python 2 language using the info command or Emacs.
Suvayu Ali c6b12b2
Mihai Ibanescu c35677e
%prep
Mihai Ibanescu c35677e
%setup -q -n Python-%{version}
Mihai Ibanescu c35677e
Suvayu Ali c6b12b2
%patch19 -p1 -b .texinfomakefile
Suvayu Ali c6b12b2
%patch20 -p1 -b .texinfobuilder
Mihai Ibanescu c35677e
Mihai Ibanescu c35677e
%build
Roman Rakus c02ad80
make -C Doc html
d465f36
Suvayu Ali c6b12b2
# build info docs
Suvayu Ali c6b12b2
make -C Doc texinfo
Suvayu Ali c6b12b2
make -C Doc/build/texinfo info
c4c3a49
 # Remove the sphinx-build leftovers
c4c3a49
 rm -fr Doc/build/html/.{doctrees,buildinfo}
Suvayu Ali c6b12b2
d465f36
# Work around rhbz#670493:
d465f36
cd Doc/build/html
d465f36
ln -s py-modindex.html modindex.html
Mihai Ibanescu c35677e
Suvayu Ali c6b12b2
%install
Suvayu Ali c6b12b2
# install info files
Suvayu Ali c6b12b2
mkdir -p %{buildroot}%{_infodir}
Suvayu Ali 5a68b4e
cp -v Doc/build/texinfo/python.info %{buildroot}%{_infodir}
Suvayu Ali 5a68b4e
Suvayu Ali 5a68b4e
# edit path to image file in info page
2996af0
sed -i -e 's,logging_flow\.png,%{_pkgdocdir}/html/_images/&,' \
Suvayu Ali 5a68b4e
    %{buildroot}%{_infodir}/python.info
Suvayu Ali c6b12b2
Suvayu Ali c6b12b2
d465f36
%check
d465f36
# Verify that all of the local links work (see rhbz#670493)
d465f36
#
d465f36
# (we can't check network links, as we shouldn't be making network connections
d465f36
# within a build.  Also, don't bother checking the .txt source files; some
d465f36
# contain example URLs, which don't work)
d465f36
linkchecker \
d465f36
  --ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
507ee2c
  --ignore-url=.txt\$ --no-warnings \
d465f36
  Doc/build/html/index.html
d465f36
Mihai Ibanescu c35677e
%files
c4c3a49
%doc		Misc/NEWS  Misc/README Misc/cheatsheet
c4c3a49
%doc		Misc/HISTORY Doc/build/html
c4c3a49
%license	LICENSE
Mihai Ibanescu c35677e
852a91e
%files info
Suvayu Ali c6b12b2
%{_infodir}/python.info.gz
c4c3a49
%license	LICENSE
Suvayu Ali c6b12b2
Mihai Ibanescu c35677e
%changelog
b933431
* Mon Mar 11 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.16-1
b933431
- Update to 2.7.16
b933431
825db5d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.15-4
825db5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
825db5d
a7f1376
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.15-3
a7f1376
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a7f1376
983bd31
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.15-2
983bd31
- Remove info scriptlets (not needed on F28+)
983bd31
99959c3
* Sat May 12 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.15-1
99959c3
- Update to 2.7.15
99959c3
0f63c9d
* Thu Apr 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-5
0f63c9d
- Only recommend the python2 package
0f63c9d
8feb3c6
* Fri Apr 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-4
8feb3c6
- Remove Obsoletes tag from when python was renamed to python2 (Fedora 25 was last)
8feb3c6
1391cb8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.14-3
1391cb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1391cb8
6778ad7
* Mon Dec 04 2017 Iryna Shcherbina <ishcherb@redhat.com> - 2.7.14-2
6778ad7
- Fix ambiguous Python 2 dependencies declarations
6778ad7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6778ad7
9d59fe8
* Thu Nov 02 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.14-1
9d59fe8
- Update to 2.7.14
9d59fe8
a89ec46
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.13-4
a89ec46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a89ec46
c51ea59
* Thu Jun 01 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.13-3
c51ea59
- Change fixed Obsoletes version with a dynamic one (rhbz#1457336)
c51ea59
17f2055
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.13-2
17f2055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
17f2055
5b1909a
* Wed Jan 11 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.13-1
5b1909a
- Update to 2.7.13
5b1909a
- Rename package to python2-docs
5b1909a
9bd9de2
* Mon Sep 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-2
9bd9de2
- Remove unversioned Obsoletes.
9bd9de2
2c6729b
* Wed Jul 20 2016 Jon Ciesla <limburgher@gmail.com> - 2.7.12-1
2c6729b
- Update to 2.7.12.
2c6729b
6c0bd55
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.11-2
6c0bd55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6c0bd55
Robert Kuska a029da3
* Thu Dec 24 2015 Robet Kuska <rkuska@redhat.com> - 2.7.11-1
Robert Kuska a029da3
- Update to 2.7.11
Robert Kuska a029da3
92d2e94
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.10-2
92d2e94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
92d2e94
Matej Stuchlik 5be7056
* Wed May 27 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.7.10-1
Matej Stuchlik 5be7056
- Update to 2.7.10
Matej Stuchlik 5be7056
Matej Stuchlik 42a43a7
* Fri Dec 12 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.9-1
Matej Stuchlik 42a43a7
- Update to 2.7.9
Matej Stuchlik 42a43a7
Robert Kuska 3bdbc55
* Fri Aug 01 2014 Robert Kuska <rkuska@redhat.com> - 2.7.8-1
Robert Kuska 3bdbc55
- Update to 2.7.8
Robert Kuska 3bdbc55
Matej Stuchlik a802226
* Tue Jun 10 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.7-1
Matej Stuchlik a802226
- Update to 2.7.7
Matej Stuchlik a802226
2fdaebf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.6-2
2fdaebf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2fdaebf
edacf14
* Wed Feb 05 2014 Tomas Radej <tradej@redhat.com> - 2.7.6-1
edacf14
- Updated to v2.7.6
edacf14
2996af0
* Mon Dec 02 2013 Tomas Radej <tradej@redhat.com> - 2.7.5-6
2996af0
- Used _pkgdocdir instead of _docdir
2996af0
852a91e
* Tue Nov 26 2013 Tomas Radej <tradej@redhat.com> - 2.7.5-5
852a91e
- Small tweaks of Suvayu's patch
852a91e
852a91e
* Sun Nov 24 2013 Suvayu Ali <fatkasuvayu+linux@gmail.com> - 2.7.5-4
Suvayu Ali c6b12b2
- Enable Texinfo builder, add subpackage with python info pages
Suvayu Ali c6b12b2
ae9c033
* Fri Nov 22 2013 Tomas Radej <tradej@redhat.com> - 2.7.5-3
ae9c033
- Spec cleanup
ae9c033
abdb011
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.5-2
abdb011
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
abdb011
b814647
* Fri May 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-1
b814647
- Version 2.7.5.
b814647
b3c0641
* Thu Apr 11 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.4-1
b3c0641
- Version 2.7.4.
b3c0641
853d1be
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-4
853d1be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
853d1be
2fe51c3
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-3
2fe51c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2fe51c3
83f10ee
* Wed May 23 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-2
83f10ee
- make link checking optional, to avoid needing to pull in linkchecker and
83f10ee
its dependencies (rbhz#823930)
83f10ee
0edf70e
* Fri Apr 13 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-1
0edf70e
- 2.7.3
0edf70e
f1fb84d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-3
f1fb84d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f1fb84d
d465f36
* Thu Aug 11 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-2
d465f36
- fix broken link to "Global Module Index", and add a %%check, verifying the
d465f36
absence of broken links (rhbz#670493)
d465f36
a9fba28
* Wed Jun 22 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-1
a9fba28
- 2.7.2
a9fba28
21b185b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-2
21b185b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
21b185b
40536d5
* Thu Dec 30 2010 David Malcolm <dmalcolm@redhat.com> - 2.7.1-1
40536d5
- 2.7.1
40536d5
Roman Rakus 1dfaab5
* Mon Aug 02 2010 Roman Rakus <rrakus@redhat.com> - 2.7-1
Roman Rakus 1dfaab5
- Update to 2.7
Roman Rakus 1dfaab5
9007a3f
* Sat Mar 20 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-1
9007a3f
- move to 2.6.5: http://www.python.org/download/releases/2.6.5/
9007a3f
19d932d
* Fri Jan 29 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-3
19d932d
- fix %%description (bug #559710)
19d932d
857190e
* Fri Oct 30 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-2
857190e
- update sources for 2.6.4
857190e
a36ffcb
* Fri Oct 30 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-1
a36ffcb
- move to 2.6.4
a36ffcb
- drop build requirement on python-jinja; python-sphinx requires python-jinja2
a36ffcb
(bug 532135)
a36ffcb
b0a3abf
* Fri Jul 31 2009 Jame Antill <james.antill@redhat.com> - 2.6.2-1
b0a3abf
- Move to 2.6.2 like python itself.
b0a3abf
d836236
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-5
d836236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d836236
Roman Rakus 58b9b36
* Wed Jul 22 2009 Roman Rakus <rrakus@redhat.com> - 2.6-4
Roman Rakus 58b9b36
- Fix import error (#511647)
Roman Rakus 58b9b36
Roman Rakus c02ad80
* Wed May 06 2009 Roman Rakus <rrakus@redhat.com> - 2.6-3
Roman Rakus c02ad80
- Spec file cleanup (#226341)
Roman Rakus c02ad80
aeccd84
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-2
aeccd84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
aeccd84
71395cc
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.6-1
71395cc
- Update to 2.6
71395cc
0b4d680
* Wed Oct  1 2008 Jame Antill <james.antill@redhat.com> - 2.5.2-1
0b4d680
- Move to 2.5.2 like python itself.
0b4d680
06adbe9
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.5.1-3
06adbe9
- fix license tag
06adbe9
fa3ce8d
* Mon Feb 11 2008 Jame Antill <james.antill@redhat.com> - 2.5.1-2
fa3ce8d
- mkdir a build root to keep recent rpm/mock happy.
fa3ce8d
Florian La Roche d569483
* Sun Jun 03 2007 Florian La Roche <laroche@redhat.com> - 2.5.1-1
Florian La Roche d569483
- update to 2.5.1
Florian La Roche d569483
1269b9f
* Tue Dec 12 2006 Jeremy Katz <katzj@redhat.com> - 2.5-1
1269b9f
- update to 2.5
1269b9f
59a0d6a
* Tue Oct 24 2006 Jeremy Katz <katzj@redhat.com> - 2.4.4-1
59a0d6a
- update to 2.4.4
59a0d6a
b4f3c88
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.4.3-1.1
b4f3c88
- rebuild
b4f3c88
Mihai Ibanescu 1441a40
* Sat Apr  8 2006 Mihai Ibanescu <misa@redhat.com> 2.4.3-1
Mihai Ibanescu 1441a40
- updated to 2.4.3
Mihai Ibanescu 1441a40
ec8773a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ec8773a
- rebuilt
ec8773a
Mihai Ibanescu f775628
* Wed Nov 16 2005 Mihai Ibanescu <misa@redhat.com> 2.4.2-1
Mihai Ibanescu f775628
- updated to 2.4.2
Mihai Ibanescu f775628
Mihai Ibanescu 6872b61
* Fri Apr  8 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-1
Mihai Ibanescu 6872b61
- updated to 2.4.1
Mihai Ibanescu 6872b61
Mihai Ibanescu 904fb37
* Thu Mar 17 2005 Mihai Ibanescu <misa@redhat.com> 2.4-102
Mihai Ibanescu 694ae7c
- changed package to noarch
Mihai Ibanescu 694ae7c
Mihai Ibanescu c35677e
* Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 2.4-100
Mihai Ibanescu c35677e
- split the doc building step into a separate source rpm