%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: PyAIML Version: 0.8.5 Release: 1%{?dist} Summary: A Python AIML Interpreter Group: Development/Libraries License: Public Domain URL: http://pyaiml.sourceforge.net/ Source0: http://sourceforge.net/projects/pyaiml/files/PyAIML (unstable)/%{version}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description A Python interpreter for AIML, the Artificial Intelligence Markup Language developed by Dr. Richard Wallace of the A.L.I.C.E. Foundation. It can be used to implement a conversational AI program. %prep %setup -q # remove nonsense prefix config sed -i '5d' setup.py sed -i '29,32d' setup.py %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES.txt README.txt SUPPORTED_TAGS.txt %{python_sitelib}/* %changelog * Fri Jan 22 2010 Sebastian Dziallas - 0.8.5-1 - initial packaging