Accepting request 510572 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/510572 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.security?expand=0&rev=3
This commit is contained in:
parent
c9c9223018
commit
6b0be838e6
3
pre_checkin.sh
Normal file
3
pre_checkin.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cp python-zope.security.changes python-zope.security-doc.changes
|
||||
|
43
python-zope.security-doc.changes
Normal file
43
python-zope.security-doc.changes
Normal file
@ -0,0 +1,43 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 16 08:06:14 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to version 4.1.1
|
||||
* Fix issue 23: iteration of collections.OrderedDict and its
|
||||
various views is now allowed by default on all versions of
|
||||
Python.
|
||||
* As a further fix for issue 20, iteration of BTree itself is
|
||||
now allowed by default.
|
||||
4.1.0:
|
||||
* When testing PURE_PYTHON environments under tox, avoid
|
||||
poisoning the user’s global wheel cache.
|
||||
* Drop support for Python 2.6 and 3.2.
|
||||
* Add support for Python 3.5 and 3.6.
|
||||
* Fix issue 20: iteration of pure-Python BTrees.items(), and
|
||||
also creating a list from BTrees.items() on Python 3. The same
|
||||
applies for keys() and values().
|
||||
4.0.3:
|
||||
* Fix iteration over security proxies in Python 3 using the
|
||||
pure-Python implementation.
|
||||
4.0.2:
|
||||
* Fix compatibility with zope.proxy 4.1.5 under PyPy.
|
||||
* Fix the very first call to removeSecurityProxy returning
|
||||
incorrect results if given a proxy under PyPy.
|
||||
4.0.1:
|
||||
* Add support for Python 3.4.
|
||||
|
||||
- Split docs and tests into separate -doc package to avoid
|
||||
dependency loop and other zope-related problems, see
|
||||
(gh#/zopefoundation/zope.proxy#18)
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 30 10:49:33 UTC 2013 - hpj@urpla.net
|
||||
|
||||
- don't ship *.c files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 10:34:02 UTC 2013 - hpj@urpla.net
|
||||
|
||||
- version 4.0.0: initial build
|
||||
|
64
python-zope.security-doc.spec
Normal file
64
python-zope.security-doc.spec
Normal file
@ -0,0 +1,64 @@
|
||||
#
|
||||
# spec file for package python-zope.security-doc
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.security-doc
|
||||
Version: 4.1.1
|
||||
Release: 0
|
||||
Summary: Contains documentation for python-zope.security
|
||||
License: ZPL-2.1
|
||||
Group: Documentation/HTML
|
||||
Url: http://www.python.org/pypi/zope.security
|
||||
Source0: https://files.pythonhosted.org/packages/source/z/zope.security/zope.security-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.security = %{version}}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module repoze.sphinx.autointerface}
|
||||
# /SECTION
|
||||
# SECTION testing requirements
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
BuildRequires: %{python_module zope.testrunner}
|
||||
# /SECTION
|
||||
Provides: %{python_module zope.security-doc = %{version}}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This package contains documentation files for python-zope.security.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.security-%{version}
|
||||
|
||||
%build
|
||||
%{_python_use_flavor python3}
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
# nothing to do here
|
||||
|
||||
%check
|
||||
%python_exec %{_bindir}/zope-testrunner --test-path=src -v
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
@ -1,3 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 16 08:06:14 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to version 4.1.1
|
||||
* Fix issue 23: iteration of collections.OrderedDict and its
|
||||
various views is now allowed by default on all versions of
|
||||
Python.
|
||||
* As a further fix for issue 20, iteration of BTree itself is
|
||||
now allowed by default.
|
||||
4.1.0:
|
||||
* When testing PURE_PYTHON environments under tox, avoid
|
||||
poisoning the user’s global wheel cache.
|
||||
* Drop support for Python 2.6 and 3.2.
|
||||
* Add support for Python 3.5 and 3.6.
|
||||
* Fix issue 20: iteration of pure-Python BTrees.items(), and
|
||||
also creating a list from BTrees.items() on Python 3. The same
|
||||
applies for keys() and values().
|
||||
4.0.3:
|
||||
* Fix iteration over security proxies in Python 3 using the
|
||||
pure-Python implementation.
|
||||
4.0.2:
|
||||
* Fix compatibility with zope.proxy 4.1.5 under PyPy.
|
||||
* Fix the very first call to removeSecurityProxy returning
|
||||
incorrect results if given a proxy under PyPy.
|
||||
4.0.1:
|
||||
* Add support for Python 3.4.
|
||||
|
||||
- Split docs and tests into separate -doc package to avoid
|
||||
dependency loop and other zope-related problems, see
|
||||
(gh#/zopefoundation/zope.proxy#18)
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 30 10:49:33 UTC 2013 - hpj@urpla.net
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.security
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -12,31 +12,27 @@
|
||||
# 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.security
|
||||
Version: 4.0.0
|
||||
Version: 4.1.1
|
||||
Release: 0
|
||||
Url: http://www.python.org/pypi/zope.security
|
||||
Summary: Zope Security Framework
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Source: zope.security-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
#TODO: fix circular dependency with python-zope.component
|
||||
BuildRequires: python-zope.component
|
||||
BuildRequires: python-zope.configuration
|
||||
BuildRequires: python-zope.i18nmessageid
|
||||
BuildRequires: python-zope.interface
|
||||
BuildRequires: python-zope.location
|
||||
BuildRequires: python-zope.proxy-devel >= 4.1.0
|
||||
BuildRequires: python-zope.schema
|
||||
BuildRequires: python-pytz
|
||||
#TODO: fix circular dependency with python-zope.component
|
||||
Url: http://www.python.org/pypi/zope.security
|
||||
Source0: https://files.pythonhosted.org/packages/source/z/zope.security/zope.security-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
BuildRequires: %{python_module zope.proxy-devel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-pytz
|
||||
Requires: python-zope.component
|
||||
Requires: python-zope.configuration
|
||||
Requires: python-zope.i18nmessageid
|
||||
@ -44,52 +40,34 @@ Requires: python-zope.interface
|
||||
Requires: python-zope.location
|
||||
Requires: python-zope.proxy >= 4.1.0
|
||||
Requires: python-zope.schema
|
||||
Requires: python-pytz
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
# Testing requirements:
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-zope.testing
|
||||
BuildRequires: python-zope.testrunner
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
The Security framework provides a generic mechanism to implement security
|
||||
policies on Python objects.
|
||||
|
||||
%package doc
|
||||
Summary: Zope Security Framework
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.security-%{version}
|
||||
rm -rf *.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
PYTHONPATH=$(echo $(pwd)/build/lib.*) python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%{_python_use_flavor python2}
|
||||
sed -e '1c#! %{_bindir}/python2' -i src/zope/security/setup.py
|
||||
%python2_build
|
||||
%{_python_use_flavor python3}
|
||||
sed -e '1c#! %{_bindir}/python3' -i src/zope/security/setup.py
|
||||
%python3_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
chmod 755 %{buildroot}%python_sitearch/zope/security/setup.py
|
||||
rm -f %{buildroot}%python_sitearch/zope/security/*.c
|
||||
%python_install
|
||||
%{python_expand chmod 755 %{buildroot}%{$python_sitearch}/zope/security/setup.py
|
||||
rm -f %{buildroot}%{$python_sitearch}/zope/security/*.c
|
||||
%fdupes -s %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%python_sitearch/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1b016e5c063d7b17e9955e9e7b7db5d0f2300f384629be6df86fc429a13339ed
|
||||
size 729891
|
3
zope.security-4.1.1.tar.gz
Normal file
3
zope.security-4.1.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:60d4533202e51d1ec7da763ee29eea95d7e184d9c25c849e69421a905089fb40
|
||||
size 111845
|
Loading…
Reference in New Issue
Block a user