%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: pyke
Summary: Knowledge-based inference engine
Version: 0.2
Release: 2%{?dist}.1
License: MIT
Group: System Environment/Libraries
URL: http://pyke.sourceforge.net/
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel, python-setuptools
Requires: python-ply
%description
Pyke is a knowledge-based inference engine (expert system) written in 100%
python that can:
* Do both forward-chaining (data driven) and backward-chaining (goal
directed) inferencing.
* Automatically generate python programs by assembling individual python
functions into complete call graphs.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
rm -rf doc/testdocs*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README copyright_license RELEASE_NOTES-* doc/
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}-%{version}*.egg-info/
%changelog
* Fri Apr 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2-2.1
- fedora 7/8 has egg-info?
* Wed Apr 23 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2-2
- add BR: python-setuptools
* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2-1
- Initial package for Fedora