2010-06-29 17:55:39 +02:00
|
|
|
#
|
2012-02-07 14:46:41 +01:00
|
|
|
# spec file for package python-configobj
|
2010-06-29 17:55:39 +02:00
|
|
|
#
|
2017-05-24 19:01:39 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-06-29 17:55:39 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2014-07-23 22:19:46 +02:00
|
|
|
|
2017-05-24 19:01:39 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define oldpython python
|
2014-09-11 12:58:01 +02:00
|
|
|
Name: python-configobj
|
|
|
|
Version: 5.0.6
|
2012-02-07 14:46:41 +01:00
|
|
|
Release: 0
|
2014-07-23 22:19:46 +02:00
|
|
|
Url: https://github.com/DiffSK/configobj
|
2012-02-07 14:46:41 +01:00
|
|
|
Summary: Config file reading, writing and validation
|
2012-05-29 11:23:49 +02:00
|
|
|
License: BSD-3-Clause
|
2012-02-07 14:46:41 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-05-25 13:22:08 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/configobj/configobj-%{version}.tar.gz
|
2010-06-29 17:55:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-24 19:01:39 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module six}
|
2014-07-25 14:47:19 +02:00
|
|
|
Requires: python-six
|
2012-02-07 14:46:41 +01:00
|
|
|
# There are no real docs!
|
2017-05-24 19:01:39 +02:00
|
|
|
%ifpython2
|
|
|
|
Obsoletes: %{oldpython}-configobj-docs < %{version}
|
|
|
|
Provides: %{oldpython}-configobj-docs = %{version}
|
2010-09-14 14:29:33 +02:00
|
|
|
%endif
|
2017-05-24 19:01:39 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%description
|
2012-02-07 14:46:41 +01:00
|
|
|
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
|
2010-06-29 17:55:39 +02:00
|
|
|
straightforward programmer's interface and a simple syntax for config files.
|
2012-02-07 14:46:41 +01:00
|
|
|
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
|
2010-09-14 14:29:33 +02:00
|
|
|
|
2010-06-29 17:55:39 +02:00
|
|
|
%prep
|
2014-09-11 12:58:01 +02:00
|
|
|
%setup -q -n configobj-%{version}
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-24 19:01:39 +02:00
|
|
|
%python_build
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-24 19:01:39 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2010-09-14 14:29:33 +02:00
|
|
|
|
2017-05-24 19:01:39 +02:00
|
|
|
%files %{python_files}
|
2012-02-07 14:46:41 +01:00
|
|
|
%defattr(-,root,root,-)
|
2014-09-11 12:58:01 +02:00
|
|
|
%{python_sitelib}/configobj.py*
|
2012-05-25 11:21:48 +02:00
|
|
|
%{python_sitelib}/validate.py*
|
2014-07-23 22:19:46 +02:00
|
|
|
%{python_sitelib}/_version.py*
|
2017-05-24 19:01:39 +02:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__/configobj.*.py*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/validate.*.py*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/_version.*.py*
|
2014-09-11 12:58:01 +02:00
|
|
|
%{python_sitelib}/configobj-%{version}-py*.egg-info
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%changelog
|