%define module cElementTree %define name python2.4-celementtree %define version 1.0.5 %define date_version 20051216 %define __python /usr/bin/python2.4 Name: %{name} Version: %{version} %define subrel 1 Release: %mkrel 3 Summary: Add-on to the standard ElementTree package Group: Development/Python License: Python license URL: http://effbot.org/zone/element-index.htm Source0: http://effbot.org/downloads/%{module}-%{version}-%{date_version}.tar.bz2 Patch0: cElementTree-1.0.5-20051216-CVE-2009-XXXX.diff Requires: python2.4-elementtree BuildRequires: python2.4 >= 2.2 BuildRoot: %{_tmppath}/%{name}-%{version} %description This is an add-on to the standard ElementTree package, which adds a very fast and memory-efficient alternative implementation of the ElementTree API. %prep %setup -q -n %{module}-%{version}-%{date_version} %patch0 -p0 -b .CVE-2009-XXXX %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --root=%{buildroot} --record INSTALLED_FILES %clean rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %doc samples README* CHANGES* %changelog * Tue Sep 1 2009 Kazuhiko Shiozaki 1.0.5-3.1nxd2009.1 - P0: security fix related to CVE-2009-2625