From ac731b1b70e2d0d49497a3dd6946831028dcabd1115734b7294440a611644b03 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:18:43 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs.parse?expand=0&rev=23 --- python-calmjs.parse.changes | 5 +++++ python-calmjs.parse.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-calmjs.parse.changes b/python-calmjs.parse.changes index 9dde4f7..0d598dc 100644 --- a/python-calmjs.parse.changes +++ b/python-calmjs.parse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:16 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Mon Feb 3 14:57:11 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-calmjs.parse.spec b/python-calmjs.parse.spec index a9ae370..05715ac 100644 --- a/python-calmjs.parse.spec +++ b/python-calmjs.parse.spec @@ -24,8 +24,10 @@ Summary: Various parsers for ECMA standards License: MIT URL: https://github.com/calmjs/calmjs.parse Source: https://github.com/calmjs/calmjs.parse/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module ply >= 3.6} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ply >= 3.6 @@ -42,11 +44,10 @@ ECMAScript; a near feature complete fork of slimit. %build export LANG=en_US.UTF-8 -%python_build -%python_expand PYTHONPATH=build/lib $python -m calmjs.parse.parsers.optimize +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +57,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst CHANGES.rst %license LICENSE -%{python_sitelib}/calmjs* +%{python_sitelib}/calmjs +%{python_sitelib}/calmjs[-_]parse-%{version}.dist-info %changelog