Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package elementtree
      3 #
      4 # includes module(s): elementtree (Python module)
      5 #
      6 # Copyright (c) 2006 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: laca
     11 #
     12 %define pythonver 2.4
     13 
     14 Name:         elementtree
     15 License:      BSD-like
     16 Group:        Development/Languages/Python
     17 Version:      1.2.6-20050316
     18 Release:      1
     19 Distribution: Java Desktop System
     20 Vendor:       Sun Microsystems, Inc.
     21 Summary:      Elementtree Python module
     22 Source:       http://effbot.org/downloads/elementtree-%{version}.tar.gz
     23 URL:          http://effbot.org/zone/element-index.htm
     24 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     25 Docdir:       %{_defaultdocdir}/doc
     26 Autoreqprov:  off
     27 Prereq:       /sbin/ldconfig
     28 Requires:      python >= %{pythonver}
     29 BuildRequires: python >= %{pythonver}
     30 
     31 %description
     32 The Element type is a simple but flexible container object, designed to
     33 store hierarchical data structures, such as simplified XML infosets,
     34 in memory.  The element type can be described as a cross between a
     35 Python list and a Python dictionary.
     36 
     37 The ElementTree wrapper adds code to load XML files as trees of Element
     38 objects, and save them back again.
     39 
     40 %prep
     41 %setup -q
     42 
     43 %build
     44 
     45 %install
     46 python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
     47 
     48 # move to vendor-packages
     49 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
     50 mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
     51    $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
     52 rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
     53 
     54 %clean
     55 rm -rf $RPM_BUILD_ROOT
     56 
     57 %files
     58 %defattr(-, root, root)
     59 %{_bindir}
     60 %{_libdir}/python%{pythonver}/vendor-packages
     61 
     62 %changelog
     63 * Thu Jul 27 2006 - laca@sun.com
     64 - create
     65