%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-ZConfig Version: 2.6.1 Release: 1%{?dist} Summary: Structured Configuration Library Group: Development/Languages License: ZPLv2.1 URL: http://www.zope.org/Members/fdrake/zconfig/ Source0: http://pypi.python.org/packages/source/Z/ZConfig/ZConfig-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel #BuildRequires: python-zope-testing %description ZConfig is a configuration library intended for general use. It supports a hierarchical schema-driven configuration model that allows a schema to specify data conversion routines written in Python. ZConfig's model is very different from the model supported by the ConfigParser module found in Python's standard library, and is more suitable to configuration-intensive applications. %prep %setup -q -n ZConfig-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %check #%{__python} setup.py test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc NEWS.txt doc/zconfig.pdf %{python_sitelib}/* %{_bindir}/zconfig %{_bindir}/zconfig_schema2html %changelog * Sun Dec 14 2008 Conrad Meyer - 2.6.1-1 - Initial package.