Blame python-docs.spec

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
Roman Rakus c02ad80
Summary: Documentation for the Python programming language
Mihai Ibanescu c35677e
Name: %{python}-docs
83f10ee
# The Version needs to be in-sync with the "python" package:
b814647
Version: 2.7.5
abdb011
Release: 2%{?dist}
06adbe9
License: Python
Mihai Ibanescu c35677e
Group: Documentation
Mihai Ibanescu c35677e
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
Mihai Ibanescu d707ef1
BuildArch: noarch
Mihai Ibanescu c35677e
71395cc
Patch4: python-2.6-nowhatsnew.patch
71395cc
Patch18: python-2.6-extdocmodules.patch
Mihai Ibanescu c35677e
Mihai Ibanescu c35677e
Requires: %{python} = %{version}
Mihai Ibanescu c35677e
%if %{main_python}
Mihai Ibanescu c35677e
Obsoletes: python2-docs
Mihai Ibanescu c35677e
Provides: python2-docs = %{version}
Mihai Ibanescu c35677e
%endif
Mihai Ibanescu c35677e
Roman Rakus c02ad80
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Roman Rakus c02ad80
a36ffcb
BuildRequires: %{python} python-sphinx python-docutils
71395cc
BuildRequires: python-pygments
83f10ee
83f10ee
%if %{check_links}
d465f36
BuildRequires: linkchecker
83f10ee
%endif
d465f36
Mihai Ibanescu c35677e
URL: http://www.python.org/
Mihai Ibanescu c35677e
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
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
Mihai Ibanescu c35677e
Mihai Ibanescu c35677e
%build
Roman Rakus c02ad80
make -C Doc html
d465f36
d465f36
# Work around rhbz#670493:
d465f36
cd Doc/build/html
d465f36
ln -s py-modindex.html modindex.html
Mihai Ibanescu c35677e
Mihai Ibanescu c35677e
%install
Roman Rakus c02ad80
rm -fr $RPM_BUILD_ROOT
Mihai Ibanescu c35677e
Roman Rakus 19c7556
mkdir -p $RPM_BUILD_ROOT
fa3ce8d
Mihai Ibanescu c35677e
%clean
Mihai Ibanescu c35677e
rm -fr $RPM_BUILD_ROOT
Mihai Ibanescu c35677e
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
Roman Rakus c02ad80
%defattr(-,root,root,-)
Mihai Ibanescu c35677e
%doc Misc/NEWS  Misc/README Misc/cheatsheet 
71395cc
%doc Misc/HISTORY Doc/build/html
Mihai Ibanescu c35677e
Mihai Ibanescu c35677e
%changelog
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