2013-07-31 08:37:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-zope.security
|
|
|
|
#
|
2017-07-16 18:26:08 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-31 08:37:52 +02:00
|
|
|
# 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.
|
2017-07-16 18:26:08 +02:00
|
|
|
|
2013-07-31 08:37:52 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-07-16 18:26:08 +02:00
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-07-31 08:37:52 +02:00
|
|
|
Name: python-zope.security
|
2017-07-16 18:26:08 +02:00
|
|
|
Version: 4.1.1
|
2013-07-31 08:37:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Zope Security Framework
|
|
|
|
License: ZPL-2.1
|
|
|
|
Group: Development/Languages/Python
|
2017-07-16 18:26:08 +02:00
|
|
|
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
|
2013-07-31 08:37:52 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Security framework provides a generic mechanism to implement security
|
|
|
|
policies on Python objects.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n zope.security-%{version}
|
2017-07-16 18:26:08 +02:00
|
|
|
rm -rf *.egg-info
|
2013-07-31 08:37:52 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-16 18:26:08 +02:00
|
|
|
%{_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
|
2013-07-31 08:37:52 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-16 18:26:08 +02:00
|
|
|
%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}
|
|
|
|
}
|
2013-07-31 08:37:52 +02:00
|
|
|
|
2017-07-16 18:26:08 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc
|
|
|
|
%{python_sitearch}/*
|
2013-07-31 08:37:52 +02:00
|
|
|
|
|
|
|
%changelog
|