%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define packagename PEAK-Rules %define devrev 2569 %define docs README.txt AST-Builder.txt Code-Generation.txt Criteria.txt DESIGN.txt Indexing.txt Predicates.txt Syntax-Matching.txt Name: python-peak-rules Version: 0.5a1.dev Release: 0.%{devrev}%{?dist} Summary: Generic functions and business rules support systems Group: Development/Languages License: Python or ZPLv2.1 URL: http://peak.telecommunity.com/snapshots Source0: http://pypi.python.org/packages/source/P/%{packagename}/%{packagename}-%{version}-r%{devrev}.tar.gz Patch0: %{name}-setup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel Requires: python-peak-util-assembler >= 0.3 Requires: python-peak-util-addons >= 0.6 Requires: python-peak-util-extremes >= 1.1 Requires: python-decoratortools >= 1.7 %description SymbolType gives you access to the peak.util.symbols module, previously available only by installing the full PEAK toolkit. peak.util.symbols provides a Symbol type and two built-in symbols that are used by PEAK: NOT_FOUND and NOT_GIVEN. %prep %setup -q -n %{packagename}-%{version}-r%{devrev} %patch0 -b .setup %{__chmod} -x %{docs} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{docs} %{python_sitelib}/* %changelog * Sun Aug 3 2008 Luke Macken - 0.5a1.dev-0.2569 - Initial package for Fedora