From c990d68f1d39d542784ef07b42d019256c53bb252356f460a4d3a93673048e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 2 Feb 2024 12:24:33 +0000 Subject: [PATCH] Accepting request 1143616 from Application:ERP:GNUHealth:4.4 - Fix multibuild - Switch to wheel and %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1143616 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-polib?expand=0&rev=41 --- python-polib.changes | 10 ++++++++++ python-polib.spec | 16 ++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/python-polib.changes b/python-polib.changes index c578766..3241671 100644 --- a/python-polib.changes +++ b/python-polib.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Feb 1 19:00:07 UTC 2024 - Ben Greiner + +- Fix multibuild + +------------------------------------------------------------------- +Sat Jan 13 16:14:40 UTC 2024 - Axel Braun + +- Switch to wheel and %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Mon Nov 27 19:50:40 UTC 2023 - Dirk Müller diff --git a/python-polib.spec b/python-polib.spec index 9cdef22..c8abb16 100644 --- a/python-polib.spec +++ b/python-polib.spec @@ -1,7 +1,7 @@ # # spec file for package python-polib # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -27,11 +27,13 @@ Group: Development/Languages/Python URL: https://github.com/izimobil/polib/ Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz Patch0: polib-1.1.0-fix-tests-big-endian.patch +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gettext-runtime >= 0.19.8 BuildRequires: python-rpm-macros -BuildRequires: python3-Sphinx BuildArch: noarch %python_subpackages @@ -67,7 +69,7 @@ This package contains documentation in HTML format. %autopatch -p1 %build -%python_build +%pyproject_wheel pushd docs make %{?_smp_mflags} html @@ -75,16 +77,18 @@ rm _build/html/.buildinfo popd %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec tests/tests.py +%pyunittest -v tests.tests %files %{python_files} %license LICENSE %doc CHANGELOG README.rst -%{python_sitelib}/* +%{python_sitelib}/polib.py +%pycache_only %{python_sitelib}/__pycache__/polib.*pyc +%{python_sitelib}/polib-%{version}.dist-info %files -n python-polib-doc %doc docs/_build/html