27dad12
%if !(0%{?rhel} >= 6 || 0%{?fedora} >= 13)
27dad12
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
27dad12
%endif
28ee02e
28ee02e
Name:           python-configobj
27dad12
Version:        4.7.2
d64d3bc
Release:        2%{?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
6f7f935
Source0:        http://www.voidspace.org.uk/downloads/configobj-%{version}.zip
27dad12
Patch0:         configobj-import-all-fix.patch
28ee02e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28ee02e
BuildArch:      noarch
28ee02e
6f7f935
BuildRequires: python-devel
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}
27dad12
%patch0 -p1 -b .all
28ee02e
28ee02e
%build
28ee02e
%{__python} setup.py build
28ee02e
28ee02e
28ee02e
%install
28ee02e
rm -rf $RPM_BUILD_ROOT
27dad12
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
28ee02e
6f7f935
%check
6f7f935
export PYTHONPATH="%{buildroot}/%{python_sitelib}"
6f7f935
%{__python} tests/test_configobj.py
28ee02e
28ee02e
%clean
28ee02e
rm -rf $RPM_BUILD_ROOT
28ee02e
28ee02e
%files
28ee02e
%defattr(-,root,root,-)
6f7f935
%doc docs/*
6f7f935
%{python_sitelib}/*
28ee02e
28ee02e
%changelog
d64d3bc
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.7.2-2
d64d3bc
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d64d3bc
27dad12
* Thu Jun 17 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.7.2-1
27dad12
- Fix traceback when doing from validate import *
27dad12
- Upstream bugfix release
27dad12
6f7f935
* Wed Jan 20 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-2
6f7f935
- Merge a bunch of changes from Gareth Armstrong <gareth.armstrong@hp.com>
6f7f935
    - The src zip file should come either from http://www.voidspace.org.uk/
6f7f935
      downloads/ or http://code.google.com/p/configobj/ as the PyPI tarball is
6f7f935
      not complete.  No docs and no test code.
6f7f935
    - Added docs
6f7f935
    - Remove BR on python-setuptools-devel
6f7f935
a72990e
* Sun Jan 10 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-1
a72990e
- Update to 4.7.0
a72990e
00e6bac
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-2
00e6bac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
00e6bac
Yaakov Meir Nemoy cd095e7
* Thu May  7 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 4.6.0-1
Yaakov Meir Nemoy cd095e7
- updated to latest upstream
Yaakov Meir Nemoy cd095e7
455b24b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.3-5
455b24b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
455b24b
78d4214
* Mon Feb 09 2009 Luke Macken <lmacken@redhat.com> - 4.5.3-4
78d4214
- Conditionally include the egg-info, when available (#478417)
78d4214
5a42fe6
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 4.5.3-3
5a42fe6
- Upload Source file so this actually builds.
5a42fe6
95e88cc
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.5.3-2
95e88cc
- Rebuild for Python 2.6
95e88cc
f30419e
* Sat Jun 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.3-1
f30419e
- Update to 4.5.3
f30419e
f66c247
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.2-1
f66c247
- Update to 4.5.2
f66c247
f4e14fb
* Sun Sep  2 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-2
f4e14fb
- Update for python-setuptools changes in rawhide
f4e14fb
820e03d
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-1
820e03d
- 4.4.0
820e03d
681f54b
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-6
681f54b
- Rebuild for python 2.5
681f54b
96ce0c3
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-5
96ce0c3
- Fix dist tag
96ce0c3
3ece588
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-4
3ece588
- Rebuild for FC6
3ece588
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