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