python-configobj/python-configobj.spec

95 lines
3.0 KiB
RPMSpec

Name: python-configobj
Version: 5.0.6
Release: 3mamba
Summary: Config file reading, writing, and validation
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.voidspace.org.uk/python/configobj.html
Source: https://pypi.debian.net/configobj/configobj-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
%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
%if "%{?with_pyver}"
%pyver_package
%endif
%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} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{python_sitearch}/configobj-%{version}-py*.egg-info
%changelog
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.6-3mamba
- rebuilt with distdeps
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.6-2mamba
- rebuilt with py3* packages
* Sat Dec 06 2014 Automatic Build System <autodist@mambasoft.it> 5.0.6-1mamba
- automatic version update by autodist
* 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