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
|
|
|
#
|
2014-07-23 22:19:46 +02:00
|
|
|
# Copyright (c) 2014 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
|
|
|
|
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
|
2014-09-11 12:58:01 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz
|
2010-06-29 17:55:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-07 14:46:41 +01:00
|
|
|
BuildRequires: python-devel
|
2014-09-11 12:58:01 +02:00
|
|
|
BuildRequires: python-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!
|
2014-09-11 12:58:01 +02:00
|
|
|
Provides: python-configobj-docs = %{version}
|
|
|
|
Obsoletes: python-configobj-docs < %{version}
|
2012-05-25 11:21:48 +02:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
2012-02-07 14:46:41 +01:00
|
|
|
%else
|
2010-09-14 14:29:33 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
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
|
2012-02-07 14:46:41 +01:00
|
|
|
python setup.py build
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%install
|
2012-02-07 14:46:41 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2010-09-14 14:29:33 +02:00
|
|
|
|
2012-02-07 14:46:41 +01:00
|
|
|
%files
|
|
|
|
%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*
|
2014-09-11 12:58:01 +02:00
|
|
|
%{python_sitelib}/configobj-%{version}-py*.egg-info
|
2010-06-29 17:55:39 +02:00
|
|
|
|
|
|
|
%changelog
|