diff --git a/pyke.spec b/pyke.spec new file mode 100644 index 0000000..e2b114d --- /dev/null +++ b/pyke.spec @@ -0,0 +1,48 @@ +%{!?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} +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}/ + +%changelog +* Wed Apr 23 2008 Tom "spot" Callaway 0.2-2 +- add BR: python-setuptools + +* Sat Mar 15 2008 Tom "spot" Callaway 0.2-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..9cba108 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +03237cda523f42882fe9fd517da6a2b1 pyke-0.2.tar.gz