2006-12-18 23:17:38 +00:00
#
2011-02-17 17:32:10 +00:00
# spec file for package python-doc
2006-12-18 23:17:38 +00:00
#
2014-03-17 16:14:14 +00:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2006-12-18 23:17:38 +00:00
#
2008-08-08 00:47:35 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2006-12-18 23:17:38 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : python-doc
2014-09-30 15:34:42 +00:00
Version : 2.7.8
2011-12-08 13:04:48 +00:00
Release : 0
Summary : Additional Package Documentation for Python
2013-07-08 13:12:23 +00:00
License : Python-2.0
2006-12-18 23:17:38 +00:00
Group : Development/Languages/Python
2013-07-08 13:12:23 +00:00
Url : http://www.python.org/
2013-11-21 15:55:48 +00:00
%define tarname Python-%{version}
2013-06-03 15:40:08 +00:00
Source0 : %{tarname} .tar.xz
2013-06-04 13:31:26 +00:00
# docs for current version are regenerated every day
# this messes with autobuild "file changed" checks
#Source1: http://docs.python.org/%{version}/archives/python-%{pyver}-docs-html.tar.bz2
#Source2: http://docs.python.org/%{version}/archives/python-%{pyver}-docs-pdf-a4.tar.bz2
#Source3: http://docs.python.org/%{version}/archives/python-%{pyver}-docs-pdf-letter.tar.bz2
2013-11-21 15:55:48 +00:00
Source1 : python-%{version} -docs-html.tar.bz2
Source2 : python-%{version} -docs-pdf-a4.tar.bz2
Source3 : python-%{version} -docs-pdf-letter.tar.bz2
2013-06-03 15:40:08 +00:00
%if 0%{suse_version} <= 1210
BuildRequires : xz
%endif
2012-04-17 14:57:13 +00:00
# COMMON-PATCH-BEGIN
Patch1 : python-2.7-dirs.patch
Patch2 : python-distutils-rpm-8.patch
2013-06-03 15:40:08 +00:00
Patch3 : python-2.7.5-multilib.patch
2012-04-17 14:57:13 +00:00
Patch4 : python-2.5.1-sqlite.patch
2013-05-09 16:15:40 +00:00
Patch5 : python-2.7.4-canonicalize2.patch
2012-04-17 14:57:13 +00:00
Patch7 : python-2.6-gettext-plurals.patch
Patch8 : python-2.6b3-curses-panel.patch
Patch10 : sparc_longdouble.patch
Patch13 : python-2.7.2-fix_date_time_compiler.patch
Patch17 : remove-static-libpython.diff
2012-05-18 12:22:20 +00:00
# PATCH-FIX-OPENSUSE python-2.7.3-ssl_ca_path.patch [bnc#761501] -- Support directory-based certificate stores with the ca_certs parameter of SSL functions
Patch18 : python-2.7.3-ssl_ca_path.patch
2012-08-06 16:21:50 +00:00
# PATCH-FEATURE-OPENSUSE python-bundle-lang.patch bnc#617751 dimstar@opensuse.org -- gettext: when looking in default_localedir also check in locale-bundle.
Patch20 : python-bundle-lang.patch
2013-06-03 15:40:08 +00:00
# PATCH-FIX-OPENSUSE Properly support aarch64 in _ctypes module
Patch22 : python-2.7.4-aarch64.patch
2013-07-15 08:03:24 +00:00
Patch24 : python-bsddb6.diff
2013-12-06 10:30:57 +00:00
# PATCH-FIX-OPENSUSE Properly support ppc64le in _ctypes module
Patch25 : libffi-ppc64le.diff
2014-02-10 14:35:47 +00:00
# CVE-2013-1753 [bnc#856835] unbounded gzip decompression in xmlrpc client
Patch26 : xmlrpc_gzip_27.patch
# CVE-2013-1752 patches missing in 2.7.6: imaplib, poplib, smtplib
Patch28 : smtplib_maxline-2.7.patch
Patch29 : python-2.7.6-poplib.patch
2014-07-24 14:33:34 +00:00
# remove link count optimization that breaks mhlib on btrfs (and possibly elsewhere)
Patch31 : python-2.7.7-mhlib-linkcount.patch
2012-04-17 14:57:13 +00:00
# COMMON-PATCH-END
2011-12-08 13:04:48 +00:00
Provides : pyth_doc
Provides : pyth_ps
Obsoletes : pyth_doc
Obsoletes : pyth_ps
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildArch : noarch
2013-11-21 15:55:48 +00:00
Enhances: python = %{version}
2006-12-18 23:17:38 +00:00
%description
Tutorial, Global Module Index, Language Reference, Library Reference,
Extending and Embedding Reference, Python/C API Reference, Documenting
Python, and Macintosh Module Reference in HTML format.
%package pdf
Summary : Python PDF Documentation
Group : Development/Languages/Python
2011-12-08 13:04:48 +00:00
Provides : pyth_pdf
Obsoletes : pyth_pdf
2006-12-18 23:17:38 +00:00
%description pdf
Tutorial, Global Module Index, Language Reference, Library Reference,
Extending and Embedding Reference, Python/C API Reference, Documenting
Python, and Macintosh Module Reference in PDF format.
%prep
%setup -q -n %{tarname}
2012-04-17 14:57:13 +00:00
# COMMON-PREP-BEGIN
%patch1 -p1
%patch2 -p1
2013-06-03 10:24:54 +00:00
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch7 -p1
%patch8 -p1
2012-04-17 14:57:13 +00:00
%patch10 -p1
2013-06-03 10:24:54 +00:00
%patch13 -p1
%patch17 -p1
%patch18 -p1
2012-08-06 16:21:50 +00:00
%patch20 -p1
2013-06-03 15:40:08 +00:00
%patch22 -p1
2013-08-16 11:26:52 +00:00
%patch24 -p1
2013-12-06 10:30:57 +00:00
%patch25 -p0
2014-02-10 14:35:47 +00:00
%patch26 -p1
%patch28 -p1
%patch29 -p1
2014-07-24 14:33:34 +00:00
%patch31 -p1
2013-05-09 16:15:40 +00:00
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.ac
2012-04-17 14:57:13 +00:00
# COMMON-PREP-END
2006-12-18 23:17:38 +00:00
%build
# nothing to do (...whistles innocently)
%install
2011-12-08 13:04:48 +00:00
export PDOCS=%{buildroot} %{_docdir} /python
2006-12-18 23:17:38 +00:00
install -d -m 755 $PDOCS/Misc
2011-12-08 13:04:48 +00:00
tar xfj %{SOURCE1} -C $PDOCS/
2013-11-22 16:53:15 +00:00
mv $PDOCS/python-%{version} -docs-html $PDOCS/html
2011-12-08 13:04:48 +00:00
tar xfj %{SOURCE2} -C $PDOCS
2009-03-11 15:45:20 +00:00
mv $PDOCS/docs-pdf $PDOCS/paper-a4
2011-12-08 13:04:48 +00:00
tar xfj %{SOURCE3} -C $PDOCS
2009-03-11 15:45:20 +00:00
mv $PDOCS/docs-pdf $PDOCS/paper-letter
2013-05-09 16:15:40 +00:00
# this is part of main package
#install -c -m 644 README $PDOCS/README
2006-12-18 23:17:38 +00:00
for i in Misc/* ; do
2011-12-08 13:04:48 +00:00
[ -f $i ] && install -c -m 644 $i $PDOCS/Misc/
2006-12-18 23:17:38 +00:00
done
%files
2011-12-08 13:04:48 +00:00
%defattr (644,root,root,755)
%dir %{_docdir} /python
%doc %{_docdir} /python/Misc
%doc %{_docdir} /python/html
2013-05-09 16:15:40 +00:00
#%doc %{_docdir}/python/README
2006-12-18 23:17:38 +00:00
%files pdf
2011-12-08 13:04:48 +00:00
%defattr (644,root,root,755)
%doc %{_docdir} /python/paper-a4
%doc %{_docdir} /python/paper-letter
2008-03-11 16:57:23 +00:00
2007-03-23 20:32:32 +00:00
%changelog