114 lines
3.4 KiB
RPMSpec
114 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package python-doc (Version 2.5.1)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: python-doc
|
|
Url: http://www.python.org/
|
|
License: Python Copyright
|
|
Group: Development/Languages/Python
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: Additional Package Documentation for Python.
|
|
Version: 2.5.1
|
|
Release: 65
|
|
%define pyver 2.5.2
|
|
BuildArch: noarch
|
|
%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
|
|
License: Python Copyright
|
|
Provides: pyth_pdf
|
|
Obsoletes: pyth_pdf
|
|
Summary: Python PDF Documentation
|
|
Group: Development/Languages/Python
|
|
AutoReqProv: on
|
|
|
|
%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})
|
|
install -c -m 644 Doc/ACKS $PDOCS/ACKS.Doc
|
|
install -c -m 644 Doc/TODO $PDOCS/TODO.Doc
|
|
install -c -m 644 Doc/README $PDOCS/README.Doc
|
|
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
|
|
%doc %{_docdir}/%{pyname}/ACKS.Doc
|
|
%doc %{_docdir}/%{pyname}/README.Doc
|
|
%doc %{_docdir}/%{pyname}/TODO.Doc
|
|
|
|
%files pdf
|
|
%defattr(644, root, root, 755)
|
|
%doc %{_docdir}/%{pyname}/paper-a4
|
|
%doc %{_docdir}/%{pyname}/paper-letter
|
|
|
|
%changelog
|
|
* Thu May 24 2007 jmatejek@suse.cz
|
|
- updated to version 2.5.1
|
|
* Tue Sep 19 2006 jmatejek@suse.cz
|
|
- updated to version 2.5 final, going into STABLE dist
|
|
* Wed Sep 13 2006 jmatejek@suse.cz
|
|
- updated to build against 2.5c2
|
|
* Tue Sep 05 2006 jmatejek@suse.cz
|
|
- updated to build against 2.5c1
|
|
- will actually update the docs as soon as this goes into STABLE
|
|
* Mon Apr 24 2006 jmatejek@suse.cz
|
|
- update to 2.4.3
|
|
* Tue Mar 21 2006 jmatejek@suse.cz
|
|
- created separate noarch specfile
|