70 lines
2.2 KiB
RPMSpec
70 lines
2.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-configobj (Version 4.4.0)
|
||
|
#
|
||
|
# Copyright (c) 2010 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/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
|
||
|
Name: python-configobj
|
||
|
BuildRequires: python-devel unzip
|
||
|
Summary: ConfigObj is a simple but powerful config file reader and writer
|
||
|
Version: 4.4.0
|
||
|
Release: 1
|
||
|
License: BSD
|
||
|
Group: Development/Libraries/Python
|
||
|
Source: configobj-%{version}.zip
|
||
|
Url: http://www.voidspace.org.uk/python/configobj.html
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
%{py_requires}
|
||
|
|
||
|
%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
|
||
|
including automatic type checking/conversion, repeated sections,
|
||
|
and allowing default values
|
||
|
* All comments in the file are preserved
|
||
|
* The order of keys/sections is preserved
|
||
|
* No external dependencies
|
||
|
* Full Unicode support
|
||
|
* A powerful unrepr mode for storing basic datatypes
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n configobj-%{version}
|
||
|
|
||
|
%build
|
||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||
|
python setup.py build
|
||
|
|
||
|
%install
|
||
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files -f INSTALLED_FILES
|
||
|
%defattr(-,root,root)
|
||
|
%doc docs/* CONFIGOBJ_CHANGELOG_TODO.txt
|
||
|
|
||
|
%changelog
|