%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-cli Version: 1.1 Release: 1%{?dist} Summary: A CLI construction toolkit for Python Group: Development/Languages License: MIT URL: https://bitbucket.org/geertj/python-cli/wiki/Home Source0: https://bitbucket.org/geertj/python-cli/get/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-ply Requires: python-ply %description This is Python-CLI, a CLI construction toolkit for Python. It is similar in scope to Python's "cmd", "cmd2", and pyCLI. %prep %setup -q -n geertj-python-cli-854fc7cfd2b7 %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 AUTHORS README LICENSE %{python_sitelib}/* %{_bindir}/cli-test %changelog * Fri Mar 17 2011 Marek Mahut - 1.1-1 - Initial build