2006-12-19 00:17:38 +01:00
|
|
|
#
|
2007-05-25 00:42:28 +02:00
|
|
|
# spec file for package python-doc (Version 2.5.1)
|
2006-12-19 00:17:38 +01:00
|
|
|
#
|
2008-03-11 17:57:23 +01:00
|
|
|
# Copyright (c) 2008 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
|
2007-11-13 21:29:48 +01:00
|
|
|
Url: http://www.python.org/
|
2007-05-22 02:06:27 +02:00
|
|
|
License: Python Copyright
|
2006-12-19 00:17:38 +01:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-03-23 21:32:32 +01:00
|
|
|
Summary: Additional Package Documentation for Python.
|
2007-05-25 00:42:28 +02:00
|
|
|
Version: 2.5.1
|
2008-09-24 00:12:56 +02:00
|
|
|
Release: 109
|
|
|
|
%define pyver 2.6rc2
|
2007-11-13 21:29:48 +01:00
|
|
|
BuildArch: noarch
|
2006-12-19 00:17:38 +01:00
|
|
|
%define tarname Python-%{pyver}
|
|
|
|
%define pyname python
|
|
|
|
Enhances: %{pyname}=%{pyver}
|
|
|
|
Source0: %{tarname}.tar.bz2
|
|
|
|
Source1: html-%{version}.tar.bz2
|
|
|
|
Source2: pdf-a4-%{version}.tar.bz2
|
|
|
|
Source3: pdf-letter-%{version}.tar.bz2
|
|
|
|
Provides: pyth_doc pyth_ps
|
|
|
|
Obsoletes: pyth_doc pyth_ps
|
|
|
|
|
|
|
|
%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
|
2008-04-09 00:44:31 +02:00
|
|
|
License: Python Copyright
|
2006-12-19 00:17:38 +01:00
|
|
|
Provides: pyth_pdf
|
|
|
|
Obsoletes: pyth_pdf
|
|
|
|
Summary: Python PDF Documentation
|
|
|
|
Group: Development/Languages/Python
|
2007-11-13 21:29:48 +01:00
|
|
|
AutoReqProv: on
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Guido van Rossum <guido@python.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{tarname}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nothing to do (...whistles innocently)
|
|
|
|
|
|
|
|
%install
|
|
|
|
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{pyname}
|
|
|
|
install -d -m 755 $PDOCS/Misc
|
|
|
|
install -d -m 755 $PDOCS/paper-a4 $PDOCS/paper-letter $PDOCS/html
|
|
|
|
tar xfj %{S:1} -C $PDOCS/html
|
|
|
|
( cd $PDOCS/html; mv Python-Docs-%{version}/* . ; rmdir Python-Docs-%{version})
|
|
|
|
tar xfj %{S:2} -C $PDOCS/paper-a4
|
|
|
|
( cd $PDOCS/paper-a4; mv Python-Docs-%{version}/* . ; rmdir Python-Docs-%{version})
|
|
|
|
tar xfj %{S:3} -C $PDOCS/paper-letter
|
|
|
|
( cd $PDOCS/paper-letter; mv Python-Docs-%{version}/* . ; rmdir Python-Docs-%{version})
|
2008-09-08 01:36:49 +02:00
|
|
|
install -c -m 644 Doc/ACKS.txt $PDOCS/ACKS.txt
|
|
|
|
install -c -m 644 Doc/TODO.txt $PDOCS/TODO.txt
|
|
|
|
install -c -m 644 Doc/README.txt $PDOCS/README.txt
|
2006-12-19 00:17:38 +01:00
|
|
|
for i in Misc/* ; do
|
|
|
|
[ -f $i ] && install -c -m 644 $i $PDOCS/Misc/
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644, root, root, 755)
|
|
|
|
%dir %{_docdir}/%{pyname}
|
|
|
|
%doc %{_docdir}/%{pyname}/Misc
|
|
|
|
%doc %{_docdir}/%{pyname}/html
|
2008-09-08 01:36:49 +02:00
|
|
|
%doc %{_docdir}/%{pyname}/ACKS.txt
|
|
|
|
%doc %{_docdir}/%{pyname}/README.txt
|
|
|
|
%doc %{_docdir}/%{pyname}/TODO.txt
|
2006-12-19 00:17:38 +01:00
|
|
|
|
|
|
|
%files pdf
|
|
|
|
%defattr(644, root, root, 755)
|
|
|
|
%doc %{_docdir}/%{pyname}/paper-a4
|
|
|
|
%doc %{_docdir}/%{pyname}/paper-letter
|
2008-03-11 17:57:23 +01:00
|
|
|
|
2007-03-23 21:32:32 +01:00
|
|
|
%changelog
|
2008-09-24 00:12:56 +02:00
|
|
|
* Mon Sep 15 2008 matejcik@suse.cz
|
|
|
|
- updated to build against 2.6rc1
|
2008-09-08 01:36:49 +02:00
|
|
|
* Wed Jun 25 2008 matejcik@suse.cz
|
|
|
|
- updated to build against 2.6b1
|
|
|
|
- will update the docs when 2.6 final is out
|
2008-03-11 17:57:23 +01:00
|
|
|
* Thu May 24 2007 jmatejek@suse.cz
|
2007-05-25 00:42:28 +02:00
|
|
|
- updated to version 2.5.1
|
2008-03-11 17:57:23 +01:00
|
|
|
* Tue Sep 19 2006 jmatejek@suse.cz
|
2006-12-19 00:17:38 +01:00
|
|
|
- updated to version 2.5 final, going into STABLE dist
|
2008-03-11 17:57:23 +01:00
|
|
|
* Wed Sep 13 2006 jmatejek@suse.cz
|
2006-12-19 00:17:38 +01:00
|
|
|
- updated to build against 2.5c2
|
2008-03-11 17:57:23 +01:00
|
|
|
* Tue Sep 05 2006 jmatejek@suse.cz
|
2006-12-19 00:17:38 +01:00
|
|
|
- updated to build against 2.5c1
|
|
|
|
- will actually update the docs as soon as this goes into STABLE
|
2008-03-11 17:57:23 +01:00
|
|
|
* Mon Apr 24 2006 jmatejek@suse.cz
|
2006-12-19 00:17:38 +01:00
|
|
|
- update to 2.4.3
|
2008-03-11 17:57:23 +01:00
|
|
|
* Tue Mar 21 2006 jmatejek@suse.cz
|
2006-12-19 00:17:38 +01:00
|
|
|
- created separate noarch specfile
|