17
0

Compare commits

16 Commits

Author SHA256 Message Date
58d71f1670 Accepting request 1284649 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1284649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=8
2025-06-11 14:26:07 +00:00
044590745f Accepting request 1245647 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1245647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=7
2025-02-13 17:40:05 +00:00
9eff96ec06 - Update to 0.9.11
* Cleaned up install
  * Unicode allowed
  * Compiling on additional platforms
- Add Cython to BuildRequires
- Adjust upstream source name in spec file
- Drop 159.patch, merged upstream
- Exclude C++ source and header files in %files section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=13
2025-02-13 13:28:58 +00:00
6ae59febb3 Accepting request 1180324 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1180324
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=6
2024-06-13 13:40:16 +00:00
a218c31e40 - Cherry-pick upstream patch to fix build with GCC 14
* https://github.com/scrapinghub/python-crfsuite/pull/159.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=11
2024-06-13 07:31:11 +00:00
280e931db5 Accepting request 1135196 from devel:languages:python
- update to 0.9.10:
  * Add support for python 3.12 and drop python 2.7 support

    fix the build for Python 3.10.

OBS-URL: https://build.opensuse.org/request/show/1135196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=5
2023-12-28 22:00:51 +00:00
aac3b09333 - update to 0.9.10:
* Add support for python 3.12 and drop python 2.7 support
    fix the build for Python 3.10.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=9
2023-12-26 20:28:09 +00:00
a0c420084c Accepting request 1067998 from devel:languages:python
- Delete rebuild-extension.patch
- Update to 0.9.9
  * Support for CPython 3.11
- 0.9.8
  * Support for 3.10 added

OBS-URL: https://build.opensuse.org/request/show/1067998
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=4
2023-02-28 11:48:36 +00:00
9f6cc2bc3e - Delete rebuild-extension.patch
- Update to 0.9.9
  * Support for CPython 3.11
- 0.9.8
  * Support for 3.10 added

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=7
2023-02-21 10:28:49 +00:00
800cb2e208 Accepting request 956261 from devel:languages:python
- Add patch rebuild-extension.patch:
  * Included sources now regenerated with a new version of Cython to
    fix the build for Python 3.10.

OBS-URL: https://build.opensuse.org/request/show/956261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=3
2022-02-21 16:46:36 +00:00
976abd56cf - Add patch rebuild-extension.patch:
* Included sources now regenerated with a new version of Cython to
    fix the build for Python 3.10.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=6
2022-02-21 02:50:30 +00:00
274e50cb8c Accepting request 787371 from devel:languages:python
- version update to 0.9.7
  * Python 3.4 is no longer supported (it may work, but CI is disabled)
  * Python 3.8 support
  * fixed installation issues on OS X (thanks @kvinwang)
  * make it easier for distributions to have a reproducible build
    (thanks @bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/787371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=2
2020-03-23 11:51:53 +00:00
Tomáš Chvátal
46a749378e OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=4 2020-03-23 08:56:48 +00:00
Tomáš Chvátal
95e0c6d010 Accepting request 786914 from home:pgajdos:python
- version update to 0.9.7
  * Python 3.4 is no longer supported (it may work, but CI is disabled)
  * Python 3.8 support
  * fixed installation issues on OS X (thanks @kvinwang)
  * make it easier for distributions to have a reproducible build
    (thanks @bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/786914
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=3
2020-03-23 08:52:08 +00:00
1efb8234ca Accepting request 687631 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/687631
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-crfsuite?expand=0&rev=1
2019-04-05 09:57:15 +00:00
Tomáš Chvátal
cf1a00eeda Accepting request 673162 from home:jayvdb:nltk_data
- Update to v0.9.6
  + Python 3.7 support
  + new Tagger.open_inmemory method which allows to load tagger
    data without having a file on-disk
- Add %license
- initial version for v0.9.5

OBS-URL: https://build.opensuse.org/request/show/673162
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crfsuite?expand=0&rev=1
2019-02-11 08:24:38 +00:00
2 changed files with 0 additions and 31 deletions

View File

@@ -1,28 +0,0 @@
From df2857fff3c492692ca09f31699972970042bc07 Mon Sep 17 00:00:00 2001
From: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
Date: Wed, 12 Jun 2024 22:42:45 +0200
Subject: [PATCH] Define _POSIX_C_SOURCE for crfsuite source files
gcc-14 has "-Werror=implicit-function-declaration" enabled by default.
crfsuite uses posix_memalign which only gets defined when _POSIX_C_SOURCE is
defined, so make sure the flag is set when compiling crfsuite.
On the other hand, openSUSE Tumbleweed has _POSIX_C_SOURCE defined
in pyconfig.h, so you must not add "-D_POSIX_C_SOURCE" when compiling
the python binding source code. So add it only for the subdir crfsuite.
---
setup.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/setup.py b/setup.py
index 8036363..f0dc370 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,7 @@ def build_extensions(self):
_compile = c._compile
def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
+ cc_args = cc_args + ['-D_POSIX_C_SOURCE=200112L'] if src.startswith('crfsuite/') else cc_args
cc_args = cc_args + ['-std=c99'] if src.endswith('.c') else cc_args
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f38524631e2b533341f10f2c77689270dc6ecd5985495dccf7aa37b1045bc2e5
size 478262