%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global appname sclapp Name: python-%{appname} Version: 0.5.3 Release: 1.n0i.1%{?dist} Summary: Easy-to-use framework for writing simple command-line applications in Python Group: Development/Languages License: GPLv2 URL: http://www.alittletooquiet.net/software/%{appname}/ Source0: http://www.alittletooquiet.net/media/release/%{appname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description sclapp is a Python module that makes it easier to write well-behaved command-line applications. sclapp helps command-line programs deal with the following issues: * Signal handling * Terminal character encodings * Standard output failures (broken pipes) * Common command-line options (like --help and --version) In addition to these standard features, sclapp also provides other functionality that developers of command-line programs may find helpful. %prep %setup -q -n %{appname}-%{version} %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 CHANGELOG COPYING NEWS README sclapp.txt %{python_sitelib}/* %changelog * Fri Aug 28 2009 Marius FERARU - 0.5.3-1.n0i.1 - initial packaging