%if ! (0%{?rhel} > 5 || 0%{?fedora} > 12) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %global srcname kitchen Name: python-kitchen Version: 0.1 Release: 0.1.a3%{?dist} Summary: Collection of small useful python modules Group: Development/Languages License: GPLv2+ URL: https://fedorahosted.org/%{srcname}/ Source0: https://fedorahosted.org/releases/k/i/%{srcname}/%{srcname}-%{version}a3.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools # Not yet switched to paver #BuildRequires: python-paver >= 1.0 # Can't enable docs until we have paver hooked up #BuildRequires: python-sphinx #BuildRequires: python-babel BuildRequires: python-nose Requires: python-chardet %description Small python modules of a generally useful nature %prep %setup -q -n %{srcname}-%{version}a3 %build python setup.py build #paver build #paver html %install rm -rf %{buildroot} python setup.py install --skip-build --root %{buildroot} #mv build-doc/html doc/ #%find_lang %{srcname} %check nosetests --with-coverage --cover-package kitchen %clean rm -rf %{buildroot} #%files -f %{name}.lang %files %defattr(-,root,root,-) %doc README COPYING COPYING.LESSER docs %{python_sitelib}/* %changelog * Mon May 31 2010 Toshio Kuratomi - 0.1-0.1.a3 - Iniital package