diff --git a/python-concurrentloghandler.changes b/python-concurrentloghandler.changes index b7db92c..c2ea485 100644 --- a/python-concurrentloghandler.changes +++ b/python-concurrentloghandler.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 10:04:29 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jul 27 05:42:46 UTC 2021 - Matej Cepl diff --git a/python-concurrentloghandler.spec b/python-concurrentloghandler.spec index 625d3ac..f931f2a 100644 --- a/python-concurrentloghandler.spec +++ b/python-concurrentloghandler.spec @@ -1,7 +1,7 @@ # # spec file for package python-concurrentloghandler # -# Copyright (c) 2021 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 @@ -17,7 +17,6 @@ %define modname concurrent-log-handler -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-concurrentloghandler Version: 0.9.19 Release: 0 @@ -26,14 +25,14 @@ License: Apache-2.0 Group: Development/Libraries/Python URL: https://github.com/Preston-Landers/concurrent-log-handler Source: https://github.com/Preston-Landers/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz -# PATCH-FEATURE-UPSTREAM test_returncode.patch bsc#[0-9]+ mcepl@suse.com -# test script should return errorlevel -# Patch0: test_returncode.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module portalocker} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: sed +Requires: python-portalocker BuildArch: noarch %python_subpackages @@ -49,10 +48,10 @@ log file concurrently. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # Remove files installed in wrong places rm -rf %{buildroot}%{_usr}/{docs,tests} %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -66,6 +65,7 @@ $python stresstest.py %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/concurrent_log_handler +%{python_sitelib}/concurrent_log_handler-%{version}*-info %changelog