From 3f433e15665cf152cdeb2fe7e51a3ba5f9e700f903a4046fe9acf77ba541d802 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 13 Mar 2024 13:39:24 +0000 Subject: [PATCH 1/2] Accepting request 1157526 from home:mlin7442:rebuild_fails_156 Add %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1157526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-biplist?expand=0&rev=22 --- python-biplist.changes | 5 +++++ python-biplist.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-biplist.changes b/python-biplist.changes index 11338b6..cf6f3d3 100644 --- a/python-biplist.changes +++ b/python-biplist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 12 11:35:34 UTC 2024 - Max Lin + +- Add %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Mon May 31 12:48:50 UTC 2021 - Matej Cepl diff --git a/python-biplist.spec b/python-biplist.spec index e0f74c7..93a1ec1 100644 --- a/python-biplist.spec +++ b/python-biplist.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-biplist Version: 1.0.3 Release: 0 From 5a580a18f2dc5d0b6df6f7427dd23ba6fd5c79a91423086e969892416d4afb31 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 13 Mar 2024 13:42:12 +0000 Subject: [PATCH 2/2] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-biplist?expand=0&rev=23 --- python-biplist.changes | 5 +++++ python-biplist.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-biplist.changes b/python-biplist.changes index cf6f3d3..776f7cc 100644 --- a/python-biplist.changes +++ b/python-biplist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 13 13:42:06 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Tue Mar 12 11:35:34 UTC 2024 - Max Lin diff --git a/python-biplist.spec b/python-biplist.spec index 93a1ec1..cbafa52 100644 --- a/python-biplist.spec +++ b/python-biplist.spec @@ -1,7 +1,7 @@ # # spec file for package python-biplist # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 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-%{**}} %{?sle15_python_module_pythons} Name: python-biplist Version: 1.0.3 @@ -32,7 +31,9 @@ Patch0: skip-test.patch # Add plistlib-Data.patch to avoid deprecated plistslib.Data Patch1: plistlib-Data.patch BuildRequires: %{python_module coverage} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -49,10 +50,10 @@ plists which can be read by OS X, iOS, or other clients. %autosetup -p1 -n biplist-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,6 +62,7 @@ plists which can be read by OS X, iOS, or other clients. %files %{python_files} %license LICENSE %doc AUTHORS README.md -%{python_sitelib}/* +%{python_sitelib}/biplist +%{python_sitelib}/biplist-%{version}*-info %changelog