forked from pool/python-zope.schema
Accepting request 510285 from home:alois:branches:devel:languages:python
Please also create link to -doc OBS-URL: https://build.opensuse.org/request/show/510285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.schema?expand=0&rev=12
This commit is contained in:
3
pre_checkin.sh
Normal file
3
pre_checkin.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cp python-zope.schema.changes python-zope.schema-doc.changes
|
||||||
|
|
||||||
53
python-zope.schema-doc.changes
Normal file
53
python-zope.schema-doc.changes
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 13 20:31:17 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
- Split docs and tests into separate -doc package since running
|
||||||
|
tests and sometimes building docs had become very messy.
|
||||||
|
Also see (gh#/zopefoundation/zope.proxy#18)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 15 13:11:18 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 4.4.2:
|
||||||
|
* Fix description of min max field: max value is included,
|
||||||
|
not excluded.
|
||||||
|
- additional changes from version 4.4.1:
|
||||||
|
* Added support for Python 3.4.
|
||||||
|
- switch the source archive to tar.gz (zip not available)
|
||||||
|
- remove unzip from BuildRequires
|
||||||
|
- pass -q to test to avoid spamming the build log
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 28 20:02:35 UTC 2014 - os-dev@jacraig.com
|
||||||
|
|
||||||
|
- Update to 4.4.0:
|
||||||
|
* Add an event on field properties to notify that a field has been updated.
|
||||||
|
This event enables definition of subscribers based on an event, a context
|
||||||
|
and a field. The event contains also the old value and the new value.
|
||||||
|
(also see package ``zope.schemaevent`` that define a field event handler)
|
||||||
|
- Changes from 4.3.3:
|
||||||
|
* PEP 8 cleanup.
|
||||||
|
* Don't raise RequiredMissing if a field's defaultFactory returns the field's
|
||||||
|
missing_value.
|
||||||
|
* Updated ``boostrap.py`` to version 2.2.
|
||||||
|
* Add the ability to swallow ValueErrors when rendering a SimpleVocabulary,
|
||||||
|
allowing for cases where vocabulary items may be duplicated (e.g., due to
|
||||||
|
user input).
|
||||||
|
* It was a pain that ``ConstraintNotSatisfied`` did not tell the field name.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 12:16:07 UTC 2013 - hpj@urpla.net
|
||||||
|
|
||||||
|
- generate separate -doc package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 20 10:50:22 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Add (Build)Requires python-ordereddict for SLE_11 only
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 15 13:44:06 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
||||||
67
python-zope.schema-doc.spec
Normal file
67
python-zope.schema-doc.spec
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-zope.schema-doc
|
||||||
|
#
|
||||||
|
# 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-zope.schema-doc
|
||||||
|
Version: 4.4.2
|
||||||
|
Release: 0
|
||||||
|
Summary: Zope interface extension for defining data schemas
|
||||||
|
License: ZPL-2.1
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Url: https://pypi.python.org/pypi/zope.schema
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module zope.schema = %{version}}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
# SECTION documentation requirements
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
# /SECTION
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module zope.event}
|
||||||
|
BuildRequires: %{python_module zope.interface >= 3.6.0}
|
||||||
|
BuildRequires: %{python_module zope.testing}
|
||||||
|
BuildRequires: %{python_module zope.testrunner}
|
||||||
|
# /SECTION
|
||||||
|
Requires: python-zope.event
|
||||||
|
Requires: python-zope.interface >= 3.6.0
|
||||||
|
Provides: %{python_module zope.schema-doc = %{version}}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Contains documentation for python-zope-schema
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n zope.schema-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Generate HTML documentation
|
||||||
|
%{_python_use_flavor python3}
|
||||||
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
|
%install
|
||||||
|
# nothing to do
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_exec %{_bindir}/zope-testrunner --test-path=src -v
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
|
%changelog
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 13 20:31:17 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
- Split docs and tests into separate -doc package since running
|
||||||
|
tests and sometimes building docs had become very messy.
|
||||||
|
Also see (gh#/zopefoundation/zope.proxy#18)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 15 13:11:18 UTC 2015 - benoit.monin@gmx.fr
|
Fri May 15 13:11:18 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zope.schema
|
# spec file for package python-zope.schema
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,31 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-zope.schema
|
Name: python-zope.schema
|
||||||
Version: 4.4.2
|
Version: 4.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Zope interface extension for defining data schemas
|
Summary: Zope interface extension for defining data schemas
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://pypi.python.org/pypi/zope.schema
|
Url: https://pypi.python.org/pypi/zope.schema
|
||||||
Source: http://pypi.python.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
# Documentation requirements:
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: fdupes
|
||||||
# Test requirements:
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-zope.event
|
|
||||||
BuildRequires: python-zope.interface >= 3.6.0
|
|
||||||
BuildRequires: python-zope.testing
|
|
||||||
Requires: python-zope.event
|
Requires: python-zope.event
|
||||||
Requires: python-zope.interface >= 3.6.0
|
Requires: python-zope.interface >= 3.6.0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
BuildRequires: python-ordereddict
|
|
||||||
Requires: python-ordereddict
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Schemas extend the notion of interfaces to detailed descriptions of
|
Schemas extend the notion of interfaces to detailed descriptions of
|
||||||
@@ -52,35 +45,20 @@ its value and provide a validation method. Besides you can optionally
|
|||||||
specify characteristics such as its value being read-only or not
|
specify characteristics such as its value being read-only or not
|
||||||
required.
|
required.
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Zope interface extension for defining data schemas
|
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %{name} = %{version}
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
This package contains documentation files for %{name}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zope.schema-%{version}
|
%setup -q -n zope.schema-%{version}
|
||||||
|
rm -rf zope.schema.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
# Generate HTML documentation
|
|
||||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%files %{python_files}
|
||||||
python setup.py -q test
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files doc
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/sphinx/html/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user