Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWdiveintopython
      3 #
      4 # Copyright 2008 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 %define owner dermot
      9 #
     10 
     11 %include Solaris.inc 
     12 
     13 %define OSR 10597:5.4
     14 
     15 Name:                    SUNWdiveintopython
     16 License:  		 GNU Free Documentation License, v1.1
     17 Summary:                 A book on Python programming
     18 Version:                 5.4
     19 Source:                  http://www.diveintopython.org/download/diveintopython-html-%{version}.zip
     20 Source1:                 diveintopython.desktop
     21 SUNW_BaseDir:            %{_basedir}
     22 SUNW_Copyright:          %{name}.copyright
     23 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     24 
     25 %include                 default-depend.inc
     26 # SUNWgnome-libs needed for gnome-open command
     27 Requires:                SUNWgnome-libs
     28 # SUNWgnome-themes needed for gnome-devel icon
     29 Requires:                SUNWgnome-themes
     30 
     31 
     32 %prep
     33 # source only needed in build area for %doc files
     34 %setup -q -n diveintopython-%{version}
     35 
     36 
     37 %install
     38 mkdir -p $RPM_BUILD_ROOT/usr/share/doc/diveintopython
     39 cd $RPM_BUILD_ROOT/usr/share/doc/diveintopython
     40 unzip -o %SOURCE0
     41 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
     42 cd $RPM_BUILD_ROOT/usr/share/applications
     43 cp %SOURCE1 .
     44 
     45 
     46 %clean
     47 rm -rf $RPM_BUILD_ROOT
     48 
     49 
     50 %files
     51 %defattr (-, root, other)
     52 %dir %attr (0755, root, sys) %{_datadir}
     53 %dir %attr (0755, root, other) %{_datadir}/doc
     54 %dir %attr (0755, root, other) %{_datadir}/doc/diveintopython
     55 %{_datadir}/doc/diveintopython/*
     56 %dir %attr (0755, root, other) %{_datadir}/applications
     57 %{_datadir}/applications/diveintopython.desktop
     58 %doc -d html/appendix fdl.html
     59 %doc -d html/appendix fdl_aggregation.html
     60 %doc -d html/appendix fdl_applicability.html
     61 %doc -d html/appendix fdl_collections.html
     62 %doc -d html/appendix fdl_combining.html
     63 %doc -d html/appendix fdl_copying.html
     64 %doc -d html/appendix fdl_copyinginquantity.html
     65 %doc -d html/appendix fdl_future.html
     66 %doc -d html/appendix fdl_howto.html
     67 %doc -d html/appendix fdl_modifications.html
     68 %doc -d html/appendix fdl_termination.html
     69 %doc -d html/appendix fdl_translation.html
     70 %doc -d py LICENSE.txt
     71 
     72 
     73 %changelog
     74 * Mon Nov 24 2008 - dermot.mccluskey@sun.com
     75 - Initial version.
     76