Accepting request 1069655 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1069655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fasttext?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2023-03-07 15:48:58 +00:00 committed by Git OBS Bridge
commit 479a67cbfc
3 changed files with 20 additions and 1 deletions

12
gcc13-fix.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/src/args.cc b/src/args.cc
index 7ac8c2f..0a7e8c6 100644
--- a/src/args.cc
+++ b/src/args.cc
@@ -14,6 +14,7 @@
#include <stdexcept>
#include <string>
#include <unordered_map>
+#include <cstdint>
namespace fasttext {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 6 12:30:34 UTC 2023 - Martin Liška <mliska@suse.cz>
- Add gcc13-fix.patch that fixes upstream issue:
https://github.com/facebookresearch/fastText/issues/1281
-------------------------------------------------------------------
Wed Jun 1 09:51:33 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-fasttext
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ License: MIT
URL: https://github.com/facebookresearch/fastText
Source: https://github.com/facebookresearch/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
Patch0: reproducible.patch
Patch1: gcc13-fix.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pybind11-devel}