From b14d375832c5de5d8c1b696403bc57771efafbe4abc23c3299005ae7f3876185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:04:33 +0000 Subject: [PATCH 1/4] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdio?expand=0&rev=15 --- python-pycdio.changes | 5 +++++ python-pycdio.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-pycdio.changes b/python-pycdio.changes index a60bd95..f6e64d3 100644 --- a/python-pycdio.changes +++ b/python-pycdio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 09:04:10 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jul 19 11:18:39 UTC 2022 - Dirk Müller diff --git a/python-pycdio.spec b/python-pycdio.spec index aba4fd6..e0185c9 100644 --- a/python-pycdio.spec +++ b/python-pycdio.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycdio # -# 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 @@ -25,7 +25,9 @@ Group: Development/Languages/Python URL: https://pypi.python.org/pypi/pycdio/ Source: https://files.pythonhosted.org/packages/source/p/pycdio/pycdio-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libcdio-devel >= 2.0.0 BuildRequires: python-rpm-macros @@ -44,15 +46,16 @@ properties of a CD-ROM can use this library. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %license COPYING %doc ChangeLog README.rst THANKS -%{python_sitearch}/* +%{python_sitearch}/pycdio +%{python_sitearch}/pycdio-%{version}*-info %changelog From e13865c874ecdc22da0ad183ef2a87a8161b920a2e9d8229d845533775b521b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:33:44 +0000 Subject: [PATCH 2/4] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdio?expand=0&rev=16 --- python-pycdio.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-pycdio.spec b/python-pycdio.spec index e0185c9..1e15d58 100644 --- a/python-pycdio.spec +++ b/python-pycdio.spec @@ -55,7 +55,8 @@ export CFLAGS="%{optflags}" %files %{python_files} %license COPYING %doc ChangeLog README.rst THANKS -%{python_sitearch}/pycdio +%{python_sitearch}/pycdio.py %{python_sitearch}/pycdio-%{version}*-info +%pycache_only %{python_sitearch}/__pycache__/pycdio* %changelog From 7c864e52b11641ee8310468eced00a8397dfbe13bf6216e5768a127289e75e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:59:45 +0000 Subject: [PATCH 3/4] another attempt to fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdio?expand=0&rev=17 --- python-pycdio.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-pycdio.spec b/python-pycdio.spec index 1e15d58..30a69ed 100644 --- a/python-pycdio.spec +++ b/python-pycdio.spec @@ -55,8 +55,10 @@ export CFLAGS="%{optflags}" %files %{python_files} %license COPYING %doc ChangeLog README.rst THANKS -%{python_sitearch}/pycdio.py +%{python_sitearch}/*cdio.py +%{python_sitearch}/*iso9660.py %{python_sitearch}/pycdio-%{version}*-info -%pycache_only %{python_sitearch}/__pycache__/pycdio* +%pycache_only %{python_sitearch}/__pycache__/*cdio* +%pycache_only %{python_sitearch}/__pycache__/*iso9660* %changelog From 13ac1fba4f214f1979637ebb5e3b55a7102fddab214e3fda1daa5a8b4635ec8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 10:05:56 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdio?expand=0&rev=18 --- python-pycdio.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-pycdio.spec b/python-pycdio.spec index 30a69ed..bb0b9ea 100644 --- a/python-pycdio.spec +++ b/python-pycdio.spec @@ -56,7 +56,9 @@ export CFLAGS="%{optflags}" %license COPYING %doc ChangeLog README.rst THANKS %{python_sitearch}/*cdio.py +%{python_sitearch}/_pycdio.cpython* %{python_sitearch}/*iso9660.py +%{python_sitearch}/_pyiso9660.cpython* %{python_sitearch}/pycdio-%{version}*-info %pycache_only %{python_sitearch}/__pycache__/*cdio* %pycache_only %{python_sitearch}/__pycache__/*iso9660*