%define rname egenix-mx-base %define __python /usr/bin/python2.4 Name: python2.4-%{rname} Version: 3.0.0 Release: %mkrel 1 Summary: Python extensions from eGenix License: eGenix.com Public License Group: Development/Python URL: http://www.egenix.com/files/python/eGenix-mx-Extensions.html Source0: %{rname}-%{version}.tar.gz Obsoletes: %{rname} < %{version}-%{release} Provides: egenix-mx-base = %{version}-%{release} BuildRequires: python2.4-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The eGenix mx Extension Series are a collection of Python extensions written in ANSI C and Python which provide a large spectrum of useful additions to everyday Python programming. The BASE package includes the Open Source subpackages of the series and is needed by all other add-on packages of the series. This software is brought to you by eGenix.com and distributed under the eGenix.com Public License. %prep %setup -q -n %{rname}-%{version} grep -lr /usr/local.*python . | %{_bindir}/xargs -t %{__sed} -i 's|/usr/local.*python|%{__python}|' %build %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --root=%{buildroot} --prefix=%_prefix --no-compile %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,0755) %doc README mx/Doc mx/DateTime/Doc mx/Proxy/Doc mx/BeeBase/Doc mx/Queue/Doc mx/Stack/Doc mx/TextTools/Doc mx/Tools/Doc mx/DateTime/LICENSE mx/DateTime/COPYRIGHT %{python_sitearch}/mx %{python_sitelib}/mx %changelog * Mon Oct 6 2008 Kazuhiko Shiozaki 3.0.0-1nxd2008.1 - build for python2.4