14
0

Accepting request 1282617 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1282617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycdlib?expand=0&rev=2
This commit is contained in:
2025-06-04 18:29:19 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 09:27:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 19 17:47:21 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Jan 19 17:47:21 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pycdlib # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pycdlib Name: python-pycdlib
Version: 1.14.0 Version: 1.14.0
Release: 0 Release: 0
@@ -25,8 +24,10 @@ License: LGPL-2.0-only
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/clalancette/pycdlib URL: https://github.com/clalancette/pycdlib
Source: https://files.pythonhosted.org/packages/source/p/pycdlib/pycdlib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pycdlib/pycdlib-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: mkisofs BuildRequires: mkisofs
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -62,10 +63,10 @@ This package includes the common files.
%setup -q -n pycdlib-%{version} %setup -q -n pycdlib-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pycdlib-explorer %python_clone -a %{buildroot}%{_bindir}/pycdlib-explorer
%python_clone -a %{buildroot}%{_bindir}/pycdlib-extract-files %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-explorer
%python_alternative %{_bindir}/pycdlib-extract-files %python_alternative %{_bindir}/pycdlib-extract-files
%python_alternative %{_bindir}/pycdlib-genisoimage %python_alternative %{_bindir}/pycdlib-genisoimage
%{python_sitelib}/* %{python_sitelib}/pycdlib
%{python_sitelib}/pycdlib-%{version}*-info
%files -n python3-pycdlib-common %files -n python3-pycdlib-common
%{_mandir}/man1/pycdlib-explorer.1%{?ext_man} %{_mandir}/man1/pycdlib-explorer.1%{?ext_man}