elementtree.spec revision 15361
10139N/A#
10139N/A# spec file for package elementtree
10139N/A#
10139N/A# includes module(s): elementtree (Python module)
10139N/A#
10139N/A# Copyright (c) 2006 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: laca
10139N/A#
10139N/A%define pythonver 2.4
11365N/A
10139N/AName: elementtree
10139N/ALicense: BSD-like
10139N/AGroup: Development/Languages/Python
10139N/AVersion: 1.2.6-20050316
11251N/ARelease: 1
11187N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
11187N/ASummary: Elementtree Python module
11159N/ASource: http://effbot.org/downloads/elementtree-%{version}.tar.gz
11216N/AURL: http://effbot.org/zone/element-index.htm
11216N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
11415N/ADocdir: %{_defaultdocdir}/doc
11415N/AAutoreqprov: off
10139N/APrereq: /sbin/ldconfig
10139N/ARequires: python >= %{pythonver}
10139N/ABuildRequires: python >= %{pythonver}
10139N/A
10139N/A%description
10139N/AThe Element type is a simple but flexible container object, designed to
10139N/Astore hierarchical data structures, such as simplified XML infosets,
10139N/Ain memory. The element type can be described as a cross between a
10139N/APython list and a Python dictionary.
10139N/A
10139N/AThe ElementTree wrapper adds code to load XML files as trees of Element
10139N/Aobjects, and save them back again.
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A
10139N/A%build
10139N/A
10139N/A%install
10139N/Apython setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
10139N/A
10139N/A# move to vendor-packages
11129N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
11129N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
11216N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
11415N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_bindir}
10139N/A%{_libdir}/python%{pythonver}/vendor-packages
10139N/A
10139N/A%changelog
10139N/A* Mon Nov 17 2007 - jedy.wang@sun.com
10139N/A- Fix installation directory bug.
10139N/A* Thu Jul 27 2006 - laca@sun.com
10139N/A- create
10139N/A