2013-07-30 12:25:59 +02:00
|
|
|
#
|
2022-09-17 10:56:00 +02:00
|
|
|
# spec file
|
2013-07-30 12:25:59 +02:00
|
|
|
#
|
2024-01-02 21:59:28 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-07-30 12:25:59 +02:00
|
|
|
# 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.
|
2015-05-16 17:35:25 +02:00
|
|
|
|
2019-04-05 12:07:58 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-30 12:25:59 +02:00
|
|
|
#
|
|
|
|
|
2015-05-16 17:35:25 +02:00
|
|
|
|
2019-04-05 12:07:58 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-06-01 22:37:16 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-04-05 12:07:58 +02:00
|
|
|
Name: python-zope.configuration%{psuffix}
|
2023-12-29 13:26:56 +01:00
|
|
|
Version: 5.0
|
2013-07-30 12:25:59 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Zope Configuration Markup Language (ZCML)
|
|
|
|
License: ZPL-2.1
|
|
|
|
Group: Development/Languages/Python
|
2019-04-05 12:07:58 +02:00
|
|
|
URL: http://www.python.org/pypi/zope.configuration
|
2017-07-13 23:57:19 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/z/zope.configuration/zope.configuration-%{version}.tar.gz
|
2023-12-29 13:26:56 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-02 21:59:28 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-12-29 13:26:56 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2015-05-16 17:35:25 +02:00
|
|
|
BuildRequires: fdupes
|
2017-07-13 23:57:19 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-05-16 17:35:25 +02:00
|
|
|
Requires: python-zope.i18nmessageid
|
|
|
|
Requires: python-zope.interface
|
2019-04-05 12:07:58 +02:00
|
|
|
Requires: python-zope.schema >= 4.9
|
2013-07-30 12:25:59 +02:00
|
|
|
BuildArch: noarch
|
2019-04-05 12:07:58 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module manuel}
|
|
|
|
BuildRequires: %{python_module zope.i18nmessageid}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
BuildRequires: %{python_module zope.schema >= 4.9}
|
|
|
|
BuildRequires: %{python_module zope.testing}
|
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
|
|
|
%endif
|
2017-07-13 23:57:19 +02:00
|
|
|
%python_subpackages
|
2013-07-30 12:25:59 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n zope.configuration-%{version}
|
2017-07-13 23:57:19 +02:00
|
|
|
rm -rf zope.configuration.egg-info
|
2013-07-30 12:25:59 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-13 23:57:19 +02:00
|
|
|
%python_build
|
2013-07-30 12:25:59 +02:00
|
|
|
|
|
|
|
%install
|
2019-04-05 12:07:58 +02:00
|
|
|
%if !%{with test}
|
2017-07-13 23:57:19 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2019-04-05 12:07:58 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%python_expand PYTHONPATH=src %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src
|
|
|
|
%endif
|
2013-07-30 12:25:59 +02:00
|
|
|
|
2019-04-05 12:07:58 +02:00
|
|
|
%if !%{with test}
|
2017-07-13 23:57:19 +02:00
|
|
|
%files %{python_files}
|
2019-04-05 12:07:58 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
2017-07-13 23:57:19 +02:00
|
|
|
%{python_sitelib}/*
|
2019-04-05 12:07:58 +02:00
|
|
|
%endif
|
2013-07-30 12:25:59 +02:00
|
|
|
|
|
|
|
%changelog
|