From a8787e4e120e41ac909b48588344cb8c0bc60de4008c666c24410dd73d5b1af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:30:02 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycparser?expand=0&rev=34 --- python-pycparser.changes | 5 +++++ python-pycparser.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pycparser.changes b/python-pycparser.changes index 004ab40..6beefb6 100644 --- a/python-pycparser.changes +++ b/python-pycparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 09:29:45 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Apr 21 08:39:27 UTC 2024 - Dirk Müller diff --git a/python-pycparser.spec b/python-pycparser.spec index 248d135..cef29a9 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycparser # -# Copyright (c) 2024 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 @@ -26,12 +26,13 @@ Group: Development/Languages/Python URL: https://github.com/eliben/pycparser Source0: https://files.pythonhosted.org/packages/source/p/pycparser/pycparser-%{version}.tar.gz Source99: %{name}-rpmlintrc +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -45,10 +46,10 @@ front-end for C compilers or analysis tools. sed -i 's/\r//' LICENSE %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %{python_expand %fdupes %{buildroot}%{$python_sitelib}} %check @@ -58,6 +59,7 @@ sed -i 's/\r//' LICENSE %doc README.rst %doc examples/ %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pycparser +%{python_sitelib}/pycparser-%{version}*-info %changelog