# # spec file for package python-zope.security # # 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 Version: 4.1.1 Release: 0 Summary: Zope Security Framework License: ZPL-2.1 Group: Development/Languages/Python 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 Requires: python-zope.interface Requires: python-zope.location Requires: python-zope.proxy >= 4.1.0 Requires: python-zope.schema %python_subpackages %description The Security framework provides a generic mechanism to implement security policies on Python objects. %prep %setup -q -n zope.security-%{version} rm -rf *.egg-info %build %{_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_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} } %files %{python_files} %defattr(-,root,root) %doc %{python_sitearch}/* %changelog