# TemplateVer: 0.4 %{?!python:%define python python} %{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define origname setuptools Name: %{python}-setuptools Version: 0.6a5 Release: 1 Summary: HTML form validation, generation, and convertion package Group: Development/Libraries License: Python Software Foundation License URL: http://setuptools.org/ Source0: %{origname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: %{python}-devel Requires: python-abi = %{pybasever} %description FormEncode performs look-before-you-leap validation. The idea being that you check all the data related to an operation, then apply it. %prep %setup -n %{origname}-%{version} -q %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --record=INSTALLED_FILES.tmp # Ghost optimized sed 's/\(.*\.pyo\)/%ghost \1/' < INSTALLED_FILES.tmp > INSTALLED_FILES find $RPM_BUILD_ROOT%{python_sitearch} -type d \ | sed "s|^$RPM_BUILD_ROOT|%dir |" >> INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc *.txt %changelog * Sat Oct 1 2005 Pau Aliagas 0.2.3-1026.1 - updated version from svn trunk * Tue Sep 13 2005 Pau Aliagas 0.2.2-2088.1 - updated version from svn trunk * Mon Aug 29 2005 Pau Aliagas 1.0-763 - first version from svn trunk