2006-12-19 00:17:38 +01:00
|
|
|
#
|
2011-02-17 18:32:10 +01:00
|
|
|
# spec file for package python-doc
|
2006-12-19 00:17:38 +01:00
|
|
|
#
|
2011-02-17 18:32:10 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:38 +01:00
|
|
|
#
|
2008-08-08 02:47:35 +02: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-19 00:17:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-11 17:57:23 +01:00
|
|
|
|
2006-12-19 00:17:38 +01:00
|
|
|
Name: python-doc
|
2011-12-08 14:04:48 +01:00
|
|
|
Version: 2.7
|
|
|
|
Release: 0
|
|
|
|
License: Python-2.0
|
|
|
|
Summary: Additional Package Documentation for Python
|
2007-11-13 21:29:48 +01:00
|
|
|
Url: http://www.python.org/
|
2006-12-19 00:17:38 +01:00
|
|
|
Group: Development/Languages/Python
|
2012-03-28 20:27:24 +02:00
|
|
|
%define pyver 2.7.2.99rc2
|
|
|
|
#%%define tarname Python-%{pyver}
|
|
|
|
%define tarname Python-2.7.3rc2
|
2006-12-19 00:17:38 +01:00
|
|
|
Source0: %{tarname}.tar.bz2
|
2010-09-03 17:55:49 +02:00
|
|
|
Source1: python-%{version}-docs-html.tar.bz2
|
|
|
|
Source2: python-%{version}-docs-pdf-a4.tar.bz2
|
|
|
|
Source3: python-%{version}-docs-pdf-letter.tar.bz2
|
2011-12-08 14:04:48 +01:00
|
|
|
Provides: pyth_doc
|
|
|
|
Provides: pyth_ps
|
|
|
|
Obsoletes: pyth_doc
|
|
|
|
Obsoletes: pyth_ps
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
Enhances: python = %{pyver}
|
2006-12-19 00:17:38 +01: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 14:04:48 +01:00
|
|
|
Provides: pyth_pdf
|
|
|
|
Obsoletes: pyth_pdf
|
2006-12-19 00:17:38 +01: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}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nothing to do (...whistles innocently)
|
|
|
|
|
|
|
|
%install
|
2011-12-08 14:04:48 +01:00
|
|
|
export PDOCS=%{buildroot}%{_docdir}/python
|
2006-12-19 00:17:38 +01:00
|
|
|
install -d -m 755 $PDOCS/Misc
|
|
|
|
install -d -m 755 $PDOCS/paper-a4 $PDOCS/paper-letter $PDOCS/html
|
2011-12-08 14:04:48 +01:00
|
|
|
tar xfj %{SOURCE1} -C $PDOCS/
|
2010-09-03 17:55:49 +02:00
|
|
|
mv $PDOCS/python-%{version}-docs-html $PDOCS/html
|
2011-12-08 14:04:48 +01:00
|
|
|
tar xfj %{SOURCE2} -C $PDOCS
|
2009-03-11 16:45:20 +01:00
|
|
|
mv $PDOCS/docs-pdf $PDOCS/paper-a4
|
2011-12-08 14:04:48 +01:00
|
|
|
tar xfj %{SOURCE3} -C $PDOCS
|
2009-03-11 16:45:20 +01:00
|
|
|
mv $PDOCS/docs-pdf $PDOCS/paper-letter
|
2011-12-08 14:04:48 +01:00
|
|
|
install -c -m 644 Doc/ACKS.txt $PDOCS/ACKS.txt
|
|
|
|
install -c -m 644 README $PDOCS/README
|
2006-12-19 00:17:38 +01:00
|
|
|
for i in Misc/* ; do
|
2011-12-08 14:04:48 +01:00
|
|
|
[ -f $i ] && install -c -m 644 $i $PDOCS/Misc/
|
2006-12-19 00:17:38 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%files
|
2011-12-08 14:04:48 +01:00
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%dir %{_docdir}/python
|
|
|
|
%doc %{_docdir}/python/Misc
|
|
|
|
%doc %{_docdir}/python/html
|
|
|
|
%doc %{_docdir}/python/ACKS.txt
|
|
|
|
%doc %{_docdir}/python/README
|
2006-12-19 00:17:38 +01:00
|
|
|
|
|
|
|
%files pdf
|
2011-12-08 14:04:48 +01:00
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc %{_docdir}/python/paper-a4
|
|
|
|
%doc %{_docdir}/python/paper-letter
|
2008-03-11 17:57:23 +01:00
|
|
|
|
2007-03-23 21:32:32 +01:00
|
|
|
%changelog
|