15
0

Accepting request 1285949 from devel:languages:python

- Switch to pyroject macros.

OBS-URL: https://build.opensuse.org/request/show/1285949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs.parse?expand=0&rev=10
This commit is contained in:
2025-06-16 09:12:59 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 16 06:12:16 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Mon Feb 3 14:57:11 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -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