From 2104c5769b585d03bebc931879e6c505a3c36ca8665fd21fad0d89e885c84d3e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 22 Mar 2024 13:43:42 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZEO?expand=0&rev=32 --- python-ZEO.changes | 5 +++++ python-ZEO.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-ZEO.changes b/python-ZEO.changes index 84b171e..a4a0cfd 100644 --- a/python-ZEO.changes +++ b/python-ZEO.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 22 13:43:33 UTC 2024 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Fri Mar 22 12:53:07 UTC 2024 - Markéta Machová diff --git a/python-ZEO.spec b/python-ZEO.spec index 52d114c..95ae558 100644 --- a/python-ZEO.spec +++ b/python-ZEO.spec @@ -28,9 +28,11 @@ BuildRequires: %{python_module ZConfig} BuildRequires: %{python_module ZODB >= 5.5.1} BuildRequires: %{python_module manuel} BuildRequires: %{python_module msgpack} +BuildRequires: %{python_module pip} BuildRequires: %{python_module random2} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module transaction >= 2.0.3} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module zc.lockfile} BuildRequires: %{python_module zdaemon} BuildRequires: %{python_module zodbpickle >= 0.6.0} @@ -62,8 +64,7 @@ Provides: %{python_module ZEO-doc = %{version}} This package contains documentation files for %{name}. %prep -%setup -q -n ZEO-%{version} -%autopatch -p1 +%autosetup -p1 -n ZEO-%{version} # delete backup files find . -name "*~" -print -delete @@ -74,10 +75,10 @@ rm -rf src/ZEO.egg-info sed -i -e 's:msgpack < 0.6:msgpack:g' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/runzeo @@ -103,6 +104,6 @@ export ZEO4_SERVER=1 %python_alternative %{_bindir}/zeopack %python_alternative %{_bindir}/zeo-nagios %{python_sitelib}/ZEO -%{python_sitelib}/ZEO-%{version}-py%{python_version}.egg-info +%{python_sitelib}/ZEO-%{version}*-info %changelog