14
0
forked from pool/python-stopit

Add python-stopit-ulong-for-thread-id.patch: Use ulong for thread id on Python >= 3.7, upstream commit dda4bd1 (gh#glenfant/stopit#31).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stopit?expand=0&rev=2
This commit is contained in:
2025-02-04 16:27:08 +00:00
committed by Git OBS Bridge
parent 78bf79bf43
commit d014069fbf
3 changed files with 60 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-stopit
#
# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,7 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname stopit
@@ -25,6 +26,8 @@ URL: https://pypi.python.org/pypi/stopit
Source0: https://files.pythonhosted.org/packages/source/s/stopit/stopit-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/glenfant/stopit/refs/tags/%{version}/tests.py
Source2: https://raw.githubusercontent.com/glenfant/stopit/refs/tags/%{version}/LICENSE
# PATCH-FIX-UPSTREAM
Patch0: https://github.com/glenfant/stopit/commit/dda4bd181d1d29ab1fb22314dc9bde0e3c931abc.patch#/python-stopit-ulong-for-thread-id.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@@ -41,7 +44,7 @@ BuildArch: noarch
* two decorators that may stop its decorated callables on timeout.
%prep
%autosetup -n %{modname}-%{version}
%autosetup -p1 -n %{modname}-%{version}
cp %{SOURCE1} %{SOURCE2} ./
%build