From 52d45dd341b6693e7d31f9d772160acaf44b66d690a0134b978d2085975254a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:28:28 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdlib?expand=0&rev=9 --- python-pycdlib.changes | 5 +++++ python-pycdlib.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pycdlib.changes b/python-pycdlib.changes index e96096b..1893ce8 100644 --- a/python-pycdlib.changes +++ b/python-pycdlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 09:27:02 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jan 19 17:47:21 UTC 2023 - Dirk Müller diff --git a/python-pycdlib.spec b/python-pycdlib.spec index 717d60b..a8e36e1 100644 --- a/python-pycdlib.spec +++ b/python-pycdlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycdlib # -# Copyright (c) 2023 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-pycdlib Version: 1.14.0 Release: 0 @@ -25,8 +24,10 @@ License: LGPL-2.0-only Group: Development/Languages/Python URL: https://github.com/clalancette/pycdlib Source: https://files.pythonhosted.org/packages/source/p/pycdlib/pycdlib-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: mkisofs BuildRequires: python-rpm-macros @@ -62,10 +63,10 @@ This package includes the common files. %setup -q -n pycdlib-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/pycdlib-explorer %python_clone -a %{buildroot}%{_bindir}/pycdlib-extract-files @@ -88,7 +89,8 @@ export TZ=Asia/Tokyo %python_alternative %{_bindir}/pycdlib-explorer %python_alternative %{_bindir}/pycdlib-extract-files %python_alternative %{_bindir}/pycdlib-genisoimage -%{python_sitelib}/* +%{python_sitelib}/pycdlib +%{python_sitelib}/pycdlib-%{version}*-info %files -n python3-pycdlib-common %{_mandir}/man1/pycdlib-explorer.1%{?ext_man}