Accepting request 1153733 from devel:languages:python
- Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1153733 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyjsparser?expand=0&rev=5
This commit is contained in:
commit
ea32e60777
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 1 05:33:06 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:30:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:30:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyjsparser
|
# spec file for package python-pyjsparser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,19 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyjsparser
|
Name: python-pyjsparser
|
||||||
Version: 2.7.1
|
Version: 2.7.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Javascript parser based on esprimajs
|
Summary: Javascript parser based on esprimajs
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/PiotrDabkowski/pyjsparser
|
URL: https://github.com/PiotrDabkowski/pyjsparser
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyjsparser/pyjsparser-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyjsparser/pyjsparser-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/PiotrDabkowski/pyjsparser/master/LICENSE
|
Source1: https://raw.githubusercontent.com/PiotrDabkowski/pyjsparser/master/LICENSE
|
||||||
Patch0: fix_version.patch
|
Patch0: fix_version.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -39,20 +39,20 @@ A JavaScript parser - a manual translation of esprima.js to Python.
|
|||||||
It supports the whole of ECMAScript 5.1 and parts of ECMAScript 6.
|
It supports the whole of ECMAScript 5.1 and parts of ECMAScript 6.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyjsparser-%{version}
|
%autosetup -p1 -n pyjsparser-%{version}
|
||||||
%patch0 -p1
|
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pyjsparser
|
||||||
|
%{python_sitelib}/pyjsparser-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user