73be13
%if !(0%{?rhel} >= 6 || 0%{?fedora} >= 13)
73be13
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
73be13
%endif
73be13
73be13
Name:           python-configobj
73be13
Version:        4.7.2
73be13
Release:        7%{?dist}
73be13
Summary:        Config file reading, writing, and validation
73be13
73be13
Group:          System Environment/Libraries
73be13
License:        BSD
73be13
URL:            http://www.voidspace.org.uk/python/configobj.html
73be13
Source0:        http://www.voidspace.org.uk/downloads/configobj-%{version}.zip
73be13
Patch0:         configobj-import-all-fix.patch
73be13
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
73be13
BuildArch:      noarch
73be13
73be13
BuildRequires: python-devel
73be13
73be13
%description
73be13
ConfigObj is a simple but powerful config file reader and writer: an ini file
73be13
round tripper. Its main feature is that it is very easy to use, with a
73be13
straightforward programmer's interface and a simple syntax for config files. 
73be13
It has lots of other features though:
73be13
    * Nested sections (subsections), to any level
73be13
    * List values
73be13
    * Multiple line values
73be13
    * String interpolation (substitution)
73be13
    * Integrated with a powerful validation system
73be13
          o including automatic type checking/conversion
73be13
          o repeated sections
73be13
          o and allowing default values
73be13
    * All comments in the file are preserved
73be13
    * The order of keys/sections is preserved
73be13
    * No external dependencies
73be13
    * Full Unicode support
73be13
    * A powerful unrepr mode for storing basic datatypes
73be13
73be13
73be13
%prep
73be13
%setup -q -n configobj-%{version}
73be13
%patch0 -p1 -b .all
73be13
73be13
%build
73be13
%{__python} setup.py build
73be13
73be13
73be13
%install
73be13
rm -rf $RPM_BUILD_ROOT
73be13
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
73be13
73be13
%check
73be13
export PYTHONPATH="%{buildroot}/%{python_sitelib}"
73be13
%{__python} tests/test_configobj.py
73be13
73be13
%clean
73be13
rm -rf $RPM_BUILD_ROOT
73be13
73be13
%files
73be13
%defattr(-,root,root,-)
73be13
%doc docs/*
73be13
%{python_sitelib}/*
73be13
73be13
%changelog
73be13
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.7.2-7
73be13
- Mass rebuild 2013-12-27
73be13
73be13
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-6
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
73be13
73be13
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-5
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
73be13
73be13
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-4
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
73be13
73be13
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-3
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
73be13
73be13
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.7.2-2
73be13
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
73be13
73be13
* Thu Jun 17 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.7.2-1
73be13
- Fix traceback when doing from validate import *
73be13
- Upstream bugfix release
73be13
73be13
* Wed Jan 20 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-2
73be13
- Merge a bunch of changes from Gareth Armstrong <gareth.armstrong@hp.com>
73be13
    - The src zip file should come either from http://www.voidspace.org.uk/
73be13
      downloads/ or http://code.google.com/p/configobj/ as the PyPI tarball is
73be13
      not complete.  No docs and no test code.
73be13
    - Added docs
73be13
    - Remove BR on python-setuptools-devel
73be13
73be13
* Sun Jan 10 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-1
73be13
- Update to 4.7.0
73be13
73be13
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-2
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
73be13
73be13
* Thu May  7 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 4.6.0-1
73be13
- updated to latest upstream
73be13
73be13
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.3-5
73be13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
73be13
73be13
* Mon Feb 09 2009 Luke Macken <lmacken@redhat.com> - 4.5.3-4
73be13
- Conditionally include the egg-info, when available (#478417)
73be13
73be13
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 4.5.3-3
73be13
- Upload Source file so this actually builds.
73be13
73be13
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.5.3-2
73be13
- Rebuild for Python 2.6
73be13
73be13
* Sat Jun 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.3-1
73be13
- Update to 4.5.3
73be13
73be13
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.2-1
73be13
- Update to 4.5.2
73be13
73be13
* Sun Sep  2 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-2
73be13
- Update for python-setuptools changes in rawhide
73be13
73be13
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-1
73be13
- 4.4.0
73be13
73be13
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-6
73be13
- Rebuild for python 2.5
73be13
73be13
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-5
73be13
- Fix dist tag
73be13
73be13
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-4
73be13
- Rebuild for FC6
73be13
73be13
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-3
73be13
- Include pyo files
73be13
73be13
* Tue Jul 18 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-2
73be13
- Fix typo in the url
73be13
73be13
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-1
73be13
- Initial package