python-configobj/python-configobj.spec
OBS User autobuild db794e66c2 Accepting request 48063 from devel:languages:python
Copy from devel:languages:python/python-configobj based on submit request 48063 from user coolo

OBS-URL: https://build.opensuse.org/request/show/48063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-configobj?expand=0&rev=4
2010-09-14 12:29:33 +00:00

89 lines
2.7 KiB
RPMSpec

#
# spec file for package python-configobj (Version 4.7.2)
#
# 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.7.2
Release: 1
License: BSD
Group: Development/Libraries/Python
Source: http://configobj.googlecode.com/files/configobj-%{version}.zip
Url: http://www.voidspace.org.uk/python/configobj.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%{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
%package docs
License: BSD
Summary: ConfigObj Documentation
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description docs
Documentation for the ConfigObj Python library, see
%{_docdir}/%{name}/
%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
%__install -d "%{buildroot}%{_docdir}/%{name}"
%__cp -r docs/* "%{buildroot}%{_docdir}/%{name}/"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%files docs
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%changelog