%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-configglue Version: 0.2 Release: 1%{?dist} Summary: Glue to stick OptionParser and ConfigParser together Group: Development/Languages License: BSD URL: http://launchpad.net/configglue Source0: python-configglue_0.2dev.orig.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-setuptools BuildArch: noarch %description configglue is a library that glues together python's optparse.OptionParser and ConfigParser.ConfigParser, so that you don't have to repeat yourself when you want to export the same options to a configuration file and a commandline interface. %prep %setup -q -n configglue-0.2dev.orig %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README %{python_sitelib}/* %changelog * Sat Nov 28 2009 Thomas Vander Stichele - 0.2-1 - first package