2 Commits

2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 5 06:01:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Jan 21 12:23:21 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -25,8 +25,10 @@ Group: Development/Languages/Python
URL: https://github.com/amol-/dukpy
Source: https://github.com/amol-/dukpy/archive/%{version}.tar.gz#/dukpy-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
@@ -60,10 +62,10 @@ sed -i 's:import mock:from unittest import mock:' tests/test_evaljs.py
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/dukpy
%python_clone -a %{buildroot}%{_bindir}/dukpy-install
%python_expand %fdupes %{buildroot}%{$python_sitearch}