%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: sagator-pydspam Version: %VERSION% Release: %RELEASE%%{?dist} Summary: DSpam module for python, created for SAGATOR project Group: Development/Libraries License: LGPLv2+ URL: http://www.salstar.sk/sagator/ Source0: %{name}-%{version}%UNSTABLE_RELEASE%.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %_vendor == "suse" BuildRequires: python-devel, pyrex, dspam-libs-devel, c_compiler %else BuildRequires: python-devel, Pyrex, dspam-libs-devel %endif %description pydspam.so is an library (module) for python to use DSPAM antispam. It is designed for sagator. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install \ -O1 --skip-build --prefix %{_prefix} --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README example.py %{python_sitearch}/* %changelog * Wed Sep 06 2006 Jan ONDREJ (SAL) - %VERSION%-%RELEASE% - package separated from sagator's main package