From 11ccb3a25622f3cf98a386c42fbc106a0e87e0cf93db065055594815a6f08021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 15:32:52 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pako?expand=0&rev=6 --- python-pako.changes | 5 +++++ python-pako.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-pako.changes b/python-pako.changes index 49799d9..4f8e199 100644 --- a/python-pako.changes +++ b/python-pako.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 15:32:34 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Oct 4 18:31:22 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pako.spec b/python-pako.spec index 4fb045b..5fe06cb 100644 --- a/python-pako.spec +++ b/python-pako.spec @@ -1,7 +1,7 @@ # # spec file for package python-pako # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pako Version: 0.3.1 Release: 0 @@ -25,12 +24,14 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/MycroftAI/pako Source: https://files.pythonhosted.org/packages/source/p/pako/pako-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-appdirs -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -50,10 +51,10 @@ More on https://github.com/MycroftAI/pako %setup -q -n pako-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/pako rm -f %{buildroot}%{_prefix}/pako/LICENSE @@ -66,7 +67,8 @@ rm -f %{buildroot}%{_prefix}/pako/LICENSE %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pako +%{python_sitelib}/pako-%{version}*-info %python_alternative %{_bindir}/pako %changelog