|
|
83f10ee |
%if 0%{?fedora}
|
|
|
83f10ee |
%global check_links 1
|
|
|
83f10ee |
%else
|
|
|
83f10ee |
%global check_links 0
|
|
|
83f10ee |
%endif
|
|
|
83f10ee |
|
|
Mihai Ibanescu |
c35677e |
%{!?__python_ver:%define __python_ver EMPTY}
|
|
Mihai Ibanescu |
c35677e |
|
|
Mihai Ibanescu |
c35677e |
%if "%{__python_ver}" != "EMPTY"
|
|
Mihai Ibanescu |
c35677e |
%define main_python 0
|
|
Mihai Ibanescu |
c35677e |
%define python python%{__python_ver}
|
|
Mihai Ibanescu |
c35677e |
%else
|
|
Mihai Ibanescu |
c35677e |
%define main_python 1
|
|
Mihai Ibanescu |
c35677e |
%define python python
|
|
Mihai Ibanescu |
c35677e |
%endif
|
|
Mihai Ibanescu |
c35677e |
|
|
Roman Rakus |
1dfaab5 |
%define pybasever 2.7
|
|
Mihai Ibanescu |
c35677e |
|
|
|
ae9c033 |
Name: %{python}-docs
|
|
|
83f10ee |
# The Version needs to be in-sync with the "python" package:
|
|
|
ae9c033 |
Version: 2.7.5
|
|
|
ae9c033 |
Release: 3%{?dist}
|
|
|
ae9c033 |
Summary: Documentation for the Python programming language
|
|
|
ae9c033 |
Group: Documentation
|
|
|
ae9c033 |
License: Python
|
|
|
ae9c033 |
URL: http://www.python.org/
|
|
|
ae9c033 |
|
|
|
ae9c033 |
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
|
|
|
ae9c033 |
Patch4: python-2.6-nowhatsnew.patch
|
|
|
ae9c033 |
Patch18: python-2.6-extdocmodules.patch
|
|
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 |
|
|
|
ae9c033 |
BuildArch: noarch
|
|
|
ae9c033 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
ae9c033 |
|
|
|
ae9c033 |
BuildRequires: %{python}
|
|
|
ae9c033 |
BuildRequires: python-docutils
|
|
|
ae9c033 |
BuildRequires: python-pygments
|
|
|
ae9c033 |
BuildRequires: python-sphinx
|
|
|
ae9c033 |
%if %{check_links}
|
|
|
ae9c033 |
BuildRequires: linkchecker
|
|
Mihai Ibanescu |
c35677e |
%endif
|
|
Mihai Ibanescu |
c35677e |
|
|
|
ae9c033 |
Requires: %{python} = %{version}
|
|
|
83f10ee |
|
|
|
ae9c033 |
%if %{main_python}
|
|
|
ae9c033 |
Obsoletes: python2-docs
|
|
|
ae9c033 |
Provides: python2-docs = %{version}
|
|
|
83f10ee |
%endif
|
|
|
d465f36 |
|
|
Mihai Ibanescu |
c35677e |
%description
|
|
Mihai Ibanescu |
c35677e |
The python-docs package contains documentation on the Python
|
|
|
19d932d |
programming language and interpreter.
|
|
Mihai Ibanescu |
c35677e |
|
|
Mihai Ibanescu |
c35677e |
Install the python-docs package if you'd like to use the documentation
|
|
Mihai Ibanescu |
c35677e |
for the Python language.
|
|
Mihai Ibanescu |
c35677e |
|
|
Suvayu Ali |
c6b12b2 |
%package -n python-docs-info
|
|
Suvayu Ali |
c6b12b2 |
Summary: Documentation for the Python programming language as info pages
|
|
Suvayu Ali |
c6b12b2 |
Group: Documentation
|
|
Suvayu Ali |
c6b12b2 |
Requires(post): info
|
|
Suvayu Ali |
c6b12b2 |
Requires(preun): info
|
|
Suvayu Ali |
c6b12b2 |
BuildRequires: texinfo
|
|
Suvayu Ali |
c6b12b2 |
%description -n python-docs-info
|
|
Suvayu Ali |
c6b12b2 |
The python-docs-info package contains documentation on the Python
|
|
Suvayu Ali |
c6b12b2 |
programming language and interpreter as info pages.
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
Install the python-docs-info package if you'd like to read the
|
|
Suvayu Ali |
c6b12b2 |
documentation for the Python 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 |
|
|
|
b0a3abf |
#patch4 -p1 -b .nowhatsnew
|
|
|
71395cc |
%patch18 -p1 -b .extdocmodules
|
|
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
|
|
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 |
rm -fr $RPM_BUILD_ROOT
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
mkdir -p $RPM_BUILD_ROOT
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
# install info files
|
|
Suvayu Ali |
c6b12b2 |
mkdir -p %{buildroot}%{_infodir}
|
|
Suvayu Ali |
c6b12b2 |
cp -v Doc/build/texinfo/python.info Doc/build/texinfo/logging_flow.png \
|
|
Suvayu Ali |
c6b12b2 |
%{buildroot}%{_infodir}
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
%clean
|
|
Suvayu Ali |
c6b12b2 |
rm -fr $RPM_BUILD_ROOT
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
%post -n python-docs-info
|
|
Suvayu Ali |
c6b12b2 |
/sbin/install-info %{_infodir}/python.info %{_infodir}/dir || :
|
|
Suvayu Ali |
c6b12b2 |
|
|
Suvayu Ali |
c6b12b2 |
%preun -n python-docs-info
|
|
Suvayu Ali |
c6b12b2 |
if [ $1 = 0 ]; then
|
|
Suvayu Ali |
c6b12b2 |
/sbin/install-info --delete %{_infodir}/python.info.gz %{_infodir}/dir || :
|
|
Suvayu Ali |
c6b12b2 |
fi
|
|
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)
|
|
|
83f10ee |
%if %{check_links}
|
|
|
d465f36 |
linkchecker \
|
|
|
d465f36 |
--ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
|
|
|
d465f36 |
--ignore-url=.txt\$ \
|
|
|
d465f36 |
Doc/build/html/index.html
|
|
|
83f10ee |
%endif
|
|
|
d465f36 |
|
|
Mihai Ibanescu |
c35677e |
%files
|
|
|
ae9c033 |
%doc Misc/NEWS Misc/README Misc/cheatsheet
|
|
|
71395cc |
%doc Misc/HISTORY Doc/build/html
|
|
Mihai Ibanescu |
c35677e |
|
|
Suvayu Ali |
c6b12b2 |
%files -n python-docs-info
|
|
Suvayu Ali |
c6b12b2 |
%defattr(-,root,root,-)
|
|
Suvayu Ali |
c6b12b2 |
%{_infodir}/python.info.gz
|
|
Suvayu Ali |
c6b12b2 |
%{_infodir}/logging_flow.png.gz
|
|
Suvayu Ali |
c6b12b2 |
|
|
Mihai Ibanescu |
c35677e |
%changelog
|
|
Suvayu Ali |
c6b12b2 |
* Sun Nov 24 2013 Suvayu Ali <fatkasuvayu+linux@gmail.com> - 2.7.5-2
|
|
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
|