Blame SPECS/python-configobj.spec

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