File python-elementtree.spec of Package python-elementtree

#norootforbuild
#
%define real_name elementtree
#
#
Name:           python-%{real_name}
Group:          Development/Libraries/Python
Version:        1.2.6_20050316
Release:        0
License:        Python
Summary:        ElementTree - a light-weight XML object model for Python
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Url:            http://effbot.org/zone/element-index.htm
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

%description
The ElementTree toolkit contains a number of light-weight components for working with XML, including the Element and ElementTree types, XML parsers and writers, etc. The toolkit is faster and more memory-efficient than comparable toolkits, and can be used with Python 1.5.2 and later.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES docs PKG-INFO README samples

%changelog

* Fri Nov 27 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 1.2.6
- Initial build for tg21

  
openSUSE Build Service is sponsored by