From f836e186466fdd2befd34290114a7fad09545c35d43224c87a4319016f81a037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 23 Jan 2024 10:34:49 +0000 Subject: [PATCH] Accepting request 1140837 from Application:ERP:GNUHealth:4.4 - switch to wheel, enable %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1140837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-relatorio?expand=0&rev=35 --- python-relatorio.changes | 5 +++++ python-relatorio.spec | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/python-relatorio.changes b/python-relatorio.changes index 76205db..3780b1b 100644 --- a/python-relatorio.changes +++ b/python-relatorio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 23 10:16:49 UTC 2024 - Axel Braun + +- switch to wheel, enable %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Tue May 3 14:55:52 UTC 2022 - Axel Braun diff --git a/python-relatorio.spec b/python-relatorio.spec index 571dbec..6a0bb8c 100644 --- a/python-relatorio.spec +++ b/python-relatorio.spec @@ -1,8 +1,8 @@ # # spec file for package python-relatorio # -# Copyright (c) 2022 SUSE LLC -# Copyright (c) 2016-2022 Dr. Axel Braun +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2016-2024 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ # +%{?sle15_python_module_pythons} %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define mod_name relatorio Name: python-relatorio @@ -28,11 +29,15 @@ Group: Productivity/Office/Management URL: https://pypi.python.org/pypi/relatorio Source: https://pypi.io/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildRequires: %{python_module Genshi} +BuildRequires: %{python_module devel} BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module python-magic} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros + Requires: python-Genshi Requires: python-PyYAML Requires: python-lxml @@ -52,10 +57,10 @@ as documents (odt, ods, pdf) or images (png, svg). %setup -q -n %{mod_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/relatorio-render