14
0
forked from pool/python-pyRXP

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRXP?expand=0&rev=7
This commit is contained in:
2025-06-04 08:13:13 +00:00
committed by Git OBS Bridge
parent ec676b9e9b
commit dd38c88844
2 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyRXP
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%define skip_python2 1
Name: python-pyRXP
Version: 3.0.1
Release: 0
@@ -27,7 +26,9 @@ Source0: https://files.pythonhosted.org/packages/source/p/pyRXP/pyRXP-%{v
# LICENSE MISSING IN SOURCE TARBALL
Source1: https://hg.reportlab.com/hg-public/pyRXP/raw-file/9ee8c8d7cc04/LICENSE.txt
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
@@ -42,10 +43,10 @@ cp %{SOURCE1} .
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -54,6 +55,7 @@ export CFLAGS="%{optflags}"
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitearch}/*
%{python_sitearch}/rxp
%{python_sitearch}/py[Rr][Xx][Pp]-%{version}*-info
%changelog