From 456bb1b78fbc4736c332b28d6d523e9c2d07b2d840a0638b1fa07cde97d48ffc Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 5 May 2025 03:45:47 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.security?expand=0&rev=40 --- python-zope.security.changes | 5 +++++ python-zope.security.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-zope.security.changes b/python-zope.security.changes index 6b44cfd..c808fb6 100644 --- a/python-zope.security.changes +++ b/python-zope.security.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 5 03:45:29 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Thu Oct 10 14:40:22 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-zope.security.spec b/python-zope.security.spec index a26a6d4..4c6fd1f 100644 --- a/python-zope.security.spec +++ b/python-zope.security.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.security # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2013-2022 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -31,11 +31,12 @@ Version: 7.3 Release: 0 Summary: Zope Security Framework License: ZPL-2.1 -Group: Development/Languages/Python URL: https://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 pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module zope.interface} BuildRequires: %{python_module zope.proxy-devel} BuildRequires: fdupes @@ -69,11 +70,11 @@ policies on Python objects. %setup -q -n zope_security-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand rm %{buildroot}%{$python_sitearch}/zope/security/*.c %endif @@ -89,7 +90,7 @@ policies on Python objects. %doc README.rst %dir %{python_sitearch}/zope %{python_sitearch}/zope/security -%{python_sitearch}/zope.security-%{version}*-info +%{python_sitearch}/zope[._]security-%{version}.dist-info %{python_sitearch}/zope.security-%{version}*-nspkg.pth %endif