18861N/A#
18861N/A# spec file for package SUNWdiveintopython
18861N/A#
18861N/A# Copyright 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner dermot
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 10597:5.4
18861N/A
18861N/AName: SUNWdiveintopython
18861N/AIPS_package_name: documentation/diveintopython
18861N/AMeta(info.classification): %{classification_prefix}:Development/Python
18861N/ALicense: GNU Free Documentation License, v1.1
18861N/ASummary: A book on Python programming
18861N/AVersion: 5.4
18861N/ASource: http://www.diveintopython.org/download/diveintopython-html-%{version}.zip
18861N/ASource1: diveintopython.desktop
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/APatch1: diveintopython-01-py26.diff
18861N/A%include default-depend.inc
18861N/A# SUNWgnome-libs needed for gnome-open command
18861N/ARequires: SUNWgnome-libs
18861N/A# SUNWgnome-themes needed for gnome-devel icon
18861N/ARequires: SUNWgnome-themes-only
19142N/ABuildRequires: SUNWunzip
19142N/ABuildRequires: SUNWzip
18861N/A
20857N/A%include desktop-incorporation.inc
18861N/A
18861N/A%prep
18861N/A# source only needed in build area for %doc files
18861N/A%setup -q -n diveintopython-%{version}
18861N/A%patch1 -p1
18861N/A
18861N/A
18861N/A%install
18861N/Amkdir -p $RPM_BUILD_ROOT/usr/share/doc/diveintopython
18861N/Acp -r ./* $RPM_BUILD_ROOT/usr/share/doc/diveintopython
18861N/Amkdir -p $RPM_BUILD_ROOT/usr/share/applications
18861N/Acd $RPM_BUILD_ROOT/usr/share/applications
18861N/Acp %SOURCE1 .
18861N/A
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A
18861N/A%files
18861N/A%defattr (-, root, other)
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc/diveintopython
18861N/A%{_datadir}/doc/diveintopython/*
18861N/A%dir %attr (0755, root, other) %{_datadir}/applications
18861N/A%{_datadir}/applications/diveintopython.desktop
18861N/A%doc -d html/appendix fdl.html
18861N/A%doc -d html/appendix fdl_aggregation.html
18861N/A%doc -d html/appendix fdl_applicability.html
18861N/A%doc -d html/appendix fdl_collections.html
18861N/A%doc -d html/appendix fdl_combining.html
18861N/A%doc -d html/appendix fdl_copying.html
18861N/A%doc -d html/appendix fdl_copyinginquantity.html
18861N/A%doc -d html/appendix fdl_future.html
18861N/A%doc -d html/appendix fdl_howto.html
18861N/A%doc -d html/appendix fdl_modifications.html
18861N/A%doc -d html/appendix fdl_termination.html
18861N/A%doc -d html/appendix fdl_translation.html
18861N/A%doc -d py LICENSE.txt
18861N/A
18861N/A
18861N/A%changelog
19137N/A* Fri Nov 26 2010 - yun-tong.jin@oracle.com
19137N/A- Fix D.o.o Bug 17437 - [gnome2.30] Dive Into Python Book launcher does not open file
18861N/A* Wen Feb 10 2010 - yuntong.jin@sun.com
18861N/A- Refix Bug 13805 SUNWdiveintopython python interpreters path issue with osol_130
18861N/A* Tue Jan 12 2009 - yuntong.jin@sun.com
18861N/A- Use python2.6 explicity in py/kgp/kgp.py
18861N/A* Mon Nov 24 2008 - dermot.mccluskey@sun.com
18861N/A- Initial version.
19183N/A
19500N/A