forked from pool/python-calmjs.parse
- Switch to pyroject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs.parse?expand=0&rev=23
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user