From 14ed090b4e1a32e3640425eefa15f4396a83b19de6011cb7590e43b22568e7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 11:44:30 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=68 --- python-feedparser.changes | 5 +++++ python-feedparser.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-feedparser.changes b/python-feedparser.changes index ef484e9..557f103 100644 --- a/python-feedparser.changes +++ b/python-feedparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 11:44:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Dec 12 20:24:21 UTC 2023 - Benoît Monin diff --git a/python-feedparser.spec b/python-feedparser.spec index 4ac3e49..1da5f90 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-feedparser # -# 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 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-feedparser Version: 6.0.11 @@ -30,8 +29,10 @@ Source: https://files.pythonhosted.org/packages/source/f/feedparser/feed # Fix crash on Python 3.10 Patch0: 304_python310-crash.patch BuildRequires: %{python_module chardet} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sgmllib3k} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-sgmllib3k @@ -50,10 +51,10 @@ A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS sed -i -e 's/verbosity=1/verbosity=2/' tests/runtests.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +66,6 @@ $python tests/runtests.py %license LICENSE %doc NEWS README.rst %{python_sitelib}/feedparser/ -%{python_sitelib}/feedparser-%{version}-py%{python_version}.egg-info +%{python_sitelib}/feedparser-%{version}*-info %changelog