From ad5e9cd458fbe42959f4dc99e60bbbf1aa6a15548d0bebc79548a0cb7ced6c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 11:49:26 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-podcastparser?expand=0&rev=19 --- python-podcastparser.changes | 5 +++++ python-podcastparser.spec | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-podcastparser.changes b/python-podcastparser.changes index 8b121e9..06a82cb 100644 --- a/python-podcastparser.changes +++ b/python-podcastparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 11:47:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Mar 9 11:12:04 UTC 2024 - ecsos diff --git a/python-podcastparser.spec b/python-podcastparser.spec index 22611da..ea911f3 100644 --- a/python-podcastparser.spec +++ b/python-podcastparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-podcastparser # -# 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 @@ -24,9 +24,11 @@ Summary: A podcast parser License: ISC URL: https://github.com/gpodder/podcastparser Source: https://files.pythonhosted.org/packages/source/p/podcastparser/podcastparser-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,10 +44,10 @@ way of parsing RSS- and Atom-based podcast feeds in Python. %setup -q -n podcastparser-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,6 +56,8 @@ way of parsing RSS- and Atom-based podcast feeds in Python. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/podcastparser.py +%{python_sitelib}/podcastparser*-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/podcastparser* %changelog