fd92c3cfec
license update: BSD-3-Clause Refers only to the license available at http://www.voidspace.org.uk/python/license.shtml (which is BSD-3-Clause) OBS-URL: https://build.opensuse.org/request/show/122661 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-configobj?expand=0&rev=23
75 lines
2.7 KiB
RPMSpec
75 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-configobj
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
%define modname configobj
|
|
Name: python-%{modname}
|
|
Version: 4.7.2
|
|
Release: 0
|
|
# FIXME: Change python-cofigobj-docs Obsoletes to < with next version update. Obsoletes introduced with version 4.7.2.
|
|
Url: http://www.voidspace.org.uk/python/configobj.html
|
|
Summary: Config file reading, writing and validation
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Source: http://pypi.python.org/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-devel
|
|
# There are no real docs!
|
|
Provides: python-%{modname}-docs = %{version}
|
|
Obsoletes: python-%{modname}-docs <= %{version}
|
|
%if 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%else
|
|
BuildArch: noarch
|
|
%py_requires
|
|
%endif
|
|
|
|
%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
|
|
* Full Unicode support
|
|
* String interpolation (substitution)
|
|
* Integrated with a powerful validation system
|
|
- including automatic type checking/conversion
|
|
- and allowing default values
|
|
- repeated sections
|
|
* All comments in the file are preserved
|
|
* The order of keys/sections is preserved
|
|
* Powerful ``unrepr`` mode for storing/retrieving Python data-types
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{python_sitelib}/%{modname}.py*
|
|
%{python_sitelib}/validate.py*
|
|
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|