28ee02e
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
28ee02e
28ee02e
Name:           python-configobj
28ee02e
Version:        4.3.2
3cbb368
Release:        3%{?dist}
28ee02e
Summary:        Config file reading, writing, and validation
28ee02e
28ee02e
Group:          System Environment/Libraries
28ee02e
License:        BSD
28ee02e
URL:            http://www.voidspace.org.uk/python/configobj.html
28ee02e
Source0:        http://dl.sf.net/configobj/configobj-4.3.2.zip
28ee02e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28ee02e
BuildArch:      noarch
28ee02e
28ee02e
BuildRequires:  python-setuptools
28ee02e
28ee02e
%description
28ee02e
ConfigObj is a simple but powerful config file reader and writer: an ini file
28ee02e
round tripper. Its main feature is that it is very easy to use, with a
28ee02e
straightforward programmer's interface and a simple syntax for config files. 
28ee02e
It has lots of other features though:
28ee02e
    * Nested sections (subsections), to any level
28ee02e
    * List values
28ee02e
    * Multiple line values
28ee02e
    * String interpolation (substitution)
28ee02e
    * Integrated with a powerful validation system
28ee02e
          o including automatic type checking/conversion
28ee02e
          o repeated sections
28ee02e
          o and allowing default values
28ee02e
    * All comments in the file are preserved
28ee02e
    * The order of keys/sections is preserved
28ee02e
    * No external dependencies
28ee02e
    * Full Unicode support
28ee02e
    * A powerful unrepr mode for storing basic datatypes
28ee02e
28ee02e
28ee02e
%prep
28ee02e
%setup -q -n configobj-%{version}
28ee02e
28ee02e
28ee02e
%build
28ee02e
%{__python} setup.py build
28ee02e
28ee02e
28ee02e
%install
28ee02e
rm -rf $RPM_BUILD_ROOT
28ee02e
%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
28ee02e
28ee02e
28ee02e
%clean
28ee02e
rm -rf $RPM_BUILD_ROOT
28ee02e
28ee02e
28ee02e
%files
28ee02e
%defattr(-,root,root,-)
28ee02e
%doc docs
28ee02e
%{python_sitelib}/*.py
28ee02e
%{python_sitelib}/*.pyc
3cbb368
%{python_sitelib}/*.pyo
28ee02e
28ee02e
28ee02e
28ee02e
%changelog
3cbb368
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-3
3cbb368
- Include pyo files
3cbb368
28ee02e
* Tue Jul 18 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-2
28ee02e
- Fix typo in the url
28ee02e
28ee02e
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-1
28ee02e
- Initial package