diff --git a/README.md b/README.md index 7fc9802..d261d0a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ # python-configobj +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 + diff --git a/python-configobj.spec b/python-configobj.spec new file mode 100644 index 0000000..333c863 --- /dev/null +++ b/python-configobj.spec @@ -0,0 +1,79 @@ +Name: python-configobj +Version: 5.0.4 +Release: 1mamba +Summary: Config file reading, writing, and validation. +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 Apr 15 2014 Automatic Build System 5.0.4-1mamba +- automatic version update by autodist + +* Thu Apr 10 2014 Automatic Build System 5.0.3-1mamba +- automatic version update by autodist + +* Tue Mar 11 2014 Automatic Build System 5.0.2-1mamba +- automatic version update by autodist + +* Sat Feb 22 2014 Silvan Calarco 5.0.1-1mamba +- update to 5.0.1 + +* Tue Jun 04 2013 Silvan Calarco 4.7.2-2mamba +- python 2.7 mass rebuild + +* Tue May 11 2010 Automatic Build System 4.7.2-1mamba +- automatic update by autodist + +* Thu Jul 09 2009 Automatic Build System 4.6.0-1mamba +- automatic update by autodist + +* Sun Dec 07 2008 gil 4.5.3-1mamba +- package created by autospec