python-configobj/python-configobj.spec

83 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-configobj
Version: 5.0.5
Release: 1mamba
Summary: Config file reading, writing, and validation.
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.voidspace.org.uk/python/configobj.html
Source: https://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz
License: BSD
Requires: python >= %python_version
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
ConfigObj is a simple but powerful config file reader and writer: an ini file round tripper. Its main feature is that it is very easy to use, with a straightforward programmer's interface and a simple syntax for config files.
It has lots of other features though:
* Nested sections (subsections), to any level
* List values
* Multiple line values
* String interpolation (substitution)
* Integrated with a powerful validation system
o including automatic type checking/conversion
o repeated sections
o and allowing default values
* All comments in the file are preserved
* The order of keys/sections is preserved
* No external dependencies
* Full unicode support
%prep
%setup -q -n configobj-%{version}
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python%{python_version} \
--install-lib=%{python_sitearch}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{python_sitearch}/configobj-%{version}-py%{python_version}.egg-info
%{python_sitearch}/*.py
%{python_sitearch}/*.pyc
%changelog
* Tue May 20 2014 Automatic Build System <autodist@mambasoft.it> 5.0.5-1mamba
- automatic version update by autodist
* Tue Apr 15 2014 Automatic Build System <autodist@mambasoft.it> 5.0.4-1mamba
- automatic version update by autodist
* Thu Apr 10 2014 Automatic Build System <autodist@mambasoft.it> 5.0.3-1mamba
- automatic version update by autodist
* Tue Mar 11 2014 Automatic Build System <autodist@mambasoft.it> 5.0.2-1mamba
- automatic version update by autodist
* Sat Feb 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.1-1mamba
- update to 5.0.1
* Tue Jun 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.2-2mamba
- python 2.7 mass rebuild
* Tue May 11 2010 Automatic Build System <autodist@mambasoft.it> 4.7.2-1mamba
- automatic update by autodist
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 4.6.0-1mamba
- automatic update by autodist
* Sun Dec 07 2008 gil <puntogil@libero.it> 4.5.3-1mamba
- package created by autospec