Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
python-ZConfig
python-ZConfig.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-ZConfig.spec of Package python-ZConfig
# # spec file for package python-ZConfig # # Copyright (c) 2017 SUSE LINUX 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ZConfig Version: 3.2.0 Release: 0 Summary: Structured Configuration Library License: ZPL-2.1 Group: Development/Libraries/Python Url: https://github.com/zopefoundation/ZConfig Source: https://files.pythonhosted.org/packages/source/Z/ZConfig/ZConfig-%{version}.tar.gz BuildRequires: %{python_module setuptools} # Testing requirements: BuildRequires: %{python_module docutils} BuildRequires: %{python_module manuel} BuildRequires: %{python_module zope.testrunner} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description ZConfig is a configuration library intended for general use. It supports a hierarchical schema-driven configuration model that allows a schema to specify data conversion routines written in Python. ZConfig's model is very different from the model supported by the ConfigParser module found in Python's standard library, and is more suitable to configuration-intensive applications. ZConfig schema are written in an XML-based language and are able to "import" schema components provided by Python packages. Since components are able to bind to conversion functions provided by Python code in the package (or elsewhere), configuration objects can be arbitrarily complex, with values that have been verified against arbitrary constraints. This makes it easy for applications to separate configuration support from configuration loading even with configuration data being defined and consumed by a wide range of separate packages. %package doc Summary: Structured Configuration Library Group: Development/Libraries/Python Requires: %{name} = %{version} %description doc This package contains documentation files for %{name}. %prep %setup -q -n ZConfig-%{version} rm -rf ZConfig.egg-info rm doc/make.bat %build %python_build %install %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/zconfig %python_clone -a %{buildroot}%{_bindir}/zconfig_schema2html %check %python_exec setup.py test -v %post %python_install_alternative zconfig zconfig_schema2html %preun %python_uninstall_alternative zconfig %files %{python_files} %defattr(-,root,root) %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt PKG-INFO README.rst %python_alternative %{_bindir}/zconfig %python_alternative %{_bindir}/zconfig_schema2html %{python_sitelib}/* %files %{python_files doc} %defattr(-,root,root,-) %doc doc/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor