8a4a972b02
this pkg is needed by some zope components OBS-URL: https://build.opensuse.org/request/show/184856 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.configuration?expand=0&rev=1
84 lines
2.7 KiB
RPMSpec
84 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-zope.configuration
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2013 LISA GmbH, Bingen, 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/
|
|
#
|
|
|
|
Name: python-zope.configuration
|
|
Version: 4.0.2
|
|
Release: 0
|
|
Url: http://www.python.org/pypi/zope.configuration
|
|
Summary: Zope Configuration Markup Language (ZCML)
|
|
License: ZPL-2.1
|
|
Group: Development/Languages/Python
|
|
Source: zope.configuration-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-zope.i18nmessageid
|
|
BuildRequires: python-zope.interface
|
|
BuildRequires: python-zope.schema
|
|
Requires: python-zope.i18nmessageid
|
|
Requires: python-zope.interface
|
|
Requires: python-zope.schema
|
|
# Documentation requirements:
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-repoze.sphinx.autointerface
|
|
%if 0%{?suse_version} && 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
|
|
%endif
|
|
|
|
%description
|
|
The zope configuration system provides an extensible system for supporting
|
|
various kinds of configurations.
|
|
|
|
It is based on the idea of configuration directives. Users of the configuration
|
|
system provide configuration directives in some language that express
|
|
configuration choices. The intent is that the language be pluggable. An XML
|
|
language is provided by default.
|
|
|
|
%package doc
|
|
Summary: Zope Configuration Markup Language (ZCML)
|
|
Group: Development/Languages/Python
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n zope.configuration-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
PYTHONPATH=$(pwd)/build/lib python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%check
|
|
python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
|
|
%python_sitelib/*
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc build/sphinx/html/
|
|
|
|
%changelog
|