From 38672d3245f749e2fe78fbd06d69c89e971f41596be7274f7efc83fc23082d6b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:32:42 +0000 Subject: [PATCH] - Switch to pyproject macros. - Explicitly list files and directories in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyvdr?expand=0&rev=13 --- python-pyvdr.changes | 6 ++++++ python-pyvdr.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-pyvdr.changes b/python-pyvdr.changes index 336dac6..b64fd8a 100644 --- a/python-pyvdr.changes +++ b/python-pyvdr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:58:02 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Explicitly list files and directories in %files. + ------------------------------------------------------------------- Mon Jun 7 19:58:07 UTC 2021 - Martin Hauke diff --git a/python-pyvdr.spec b/python-pyvdr.spec index af57e77..0431aeb 100644 --- a/python-pyvdr.spec +++ b/python-pyvdr.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyvdr # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2020-2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,18 +17,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pyvdr Version: 0.3.1 Release: 0 Summary: Python library for accessing a Linux VDR via SVDRP License: MIT -Group: Development/Languages/Python URL: https://github.com/baschno/pyvdr Source: https://github.com/baschno/pyvdr/archive/%{version}.tar.gz#/pyvdr-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -42,10 +42,10 @@ Python library for accessing a Linux VDR via SVDRP. sed -i -e '/^#!\//, 1d' pyvdr/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,6 +54,7 @@ sed -i -e '/^#!\//, 1d' pyvdr/*.py %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/pyvdr* +%{python_sitelib}/pyvdr +%{python_sitelib}/pyvdr-%{version}.dist-info %changelog