diff --git a/ZConfig-3.0.4.tar.gz b/ZConfig-3.0.4.tar.gz deleted file mode 100644 index 74848e3..0000000 --- a/ZConfig-3.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7db2f932e74730eb5302e16964f9997121b5381738ac87ddf9559b5df2a0bffe -size 260105 diff --git a/ZConfig-3.2.0.tar.gz b/ZConfig-3.2.0.tar.gz new file mode 100644 index 0000000..0296a45 --- /dev/null +++ b/ZConfig-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de0a802e5dfea3c0b3497ccdbe33a5023c4265f950f33e35dd4cf078d2a81b19 +size 115162 diff --git a/python-ZConfig.changes b/python-ZConfig.changes index 11afec0..11433c2 100644 --- a/python-ZConfig.changes +++ b/python-ZConfig.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Fri Jun 23 13:35:29 UTC 2017 - aloisio@gmx.com + +- Update to 3.2.0 + * Drop support for Python 2.6 and 3.2 and add support for + Python 3.6. + * Run tests with pypy and pypy3 as well. + * Host docs at https://zconfig.readthedocs.io + * BaseLoader is now an abstract class that cannot be + instantiated. + * Allow nan, inf and -inf values for floats in configurations. + See https://github.com/zopefoundation/ZConfig/issues/16. + * Scripts zconfig (for schema validation) and + zconfig_schema2html are ported to Python 3. + * A new ZConfig.sphinx Sphinx extension facilitates + automatically documenting ZConfig components using their + description and examples in Sphinx documentation. See + https://github.com/zopefoundation/ZConfig/pull/25. + * Simplify internal schema processing of max and min + occurrence values. See + https://github.com/zopefoundation/ZConfig/issues/15. + * Almost all uses of type as a parameter name have been + replaced with type_ to avoid shadowing a builtin. These were + typically not public APIs and weren’t expected to be called + with keyword arguments so there should not be any + user-visible changes. + See https://github.com/zopefoundation/ZConfig/issues/17 + 3.1.0: + * Add ability to do variable substitution from environment + variables using $() syntax. + +- Converted to single-spec + ------------------------------------------------------------------- Wed Apr 16 17:00:09 UTC 2014 - p.drouand@gmail.com diff --git a/python-ZConfig.spec b/python-ZConfig.spec index 2668155..5d6e978 100644 --- a/python-ZConfig.spec +++ b/python-ZConfig.spec @@ -1,7 +1,7 @@ # # spec file for package python-ZConfig # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -16,27 +16,27 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ZConfig -Version: 3.0.4 +Version: 3.2.0 Release: 0 Summary: Structured Configuration Library License: ZPL-2.1 Group: Development/Libraries/Python -Url: http://www.zope.org/Products/ZODB -Source: https://pypi.python.org/packages/source/Z/ZConfig/ZConfig-%{version}.tar.gz -BuildRequires: python-setuptools +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-six -BuildRequires: python-xml -BuildRequires: python-zope.exceptions -BuildRequires: python-zope.testrunner +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 - -%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 +%python_subpackages %description ZConfig is a configuration library intended for general use. It supports a @@ -54,56 +54,45 @@ 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 +%package doc Summary: Structured Configuration Library Group: Development/Libraries/Python Requires: %{name} = %{version} -%description doc +%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 setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# Rename binaries to get package installable with py/py3 package -mv %{buildroot}%{_bindir}/zconfig %{buildroot}%{_bindir}/zconfig-%{py_ver} -mv %{buildroot}%{_bindir}/zconfig_schema2html %{buildroot}%{_bindir}/zconfig_schema2html-%{py_ver} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/zconfig -ln -sf %{_sysconfdir}/alternatives/zconfig %{buildroot}/%{_bindir}/zconfig -touch %{buildroot}%{_sysconfdir}/alternatives/zconfig_schema2html -ln -sf %{_sysconfdir}/alternatives/zconfig_schema2html %{buildroot}/%{_bindir}/zconfig_schema2html +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/zconfig +%python_clone -a %{buildroot}%{_bindir}/zconfig_schema2html %check -python setup.py test -v +%python_exec setup.py test -v %post -update-alternatives \ - --install %{_bindir}/zconfig zconfig %{_bindir}/zconfig-%{py_ver} 30 \ - --slave %{_bindir}/zconfig_schema2html zconfig_schema2html %{_bindir}/zconfig_schema2html-%{py_ver} +%python_install_alternative zconfig zconfig_schema2html %preun -if [ $1 -eq 0 ] ; then - update-alternatives --remove zconfig %{_bindir}/zconfig-%{py_ver} -fi +%python_uninstall_alternative zconfig -%files +%files %{python_files} %defattr(-,root,root) -%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt PKG-INFO README.txt +%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt PKG-INFO README.rst +%python_alternative %{_bindir}/zconfig +%python_alternative %{_bindir}/zconfig_schema2html %{python_sitelib}/* -%ghost %{_sysconfdir}/alternatives/zconfig -%ghost %{_sysconfdir}/alternatives/zconfig_schema2html -%{_bindir}/zconfig -%{_bindir}/zconfig-%{py_ver} -%{_bindir}/zconfig_schema2html -%{_bindir}/zconfig_schema2html-%{py_ver} -%files doc +%files %{python_files doc} %defattr(-,root,root,-) %doc doc/