[packages/sphinxbase] Rel 2

arekm arekm at pld-linux.org
Sat Mar 14 01:53:21 CET 2026


commit e271fd77ec5e6184a229ae76e817d307e920424c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 14 01:53:14 2026 +0100

    Rel 2

 sphinxbase-yyparse.patch | 11 +++++++++++
 sphinxbase.spec          |  8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/sphinxbase.spec b/sphinxbase.spec
index 1064cb0..83bd2d9 100644
--- a/sphinxbase.spec
+++ b/sphinxbase.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	python		# Python extension
+%bcond_with	python		# Python extension (requires Python 2)
 %bcond_without	static_libs	# static libraries
 %bcond_with	tests		# "make check" [unit/test_ngram/test_lm_mmap fails]
 
@@ -8,12 +8,13 @@ Summary:	CMU Sphinx common libraries
 Summary(pl.UTF-8):	Wspólne biblioteki CMU Sphinx
 Name:		sphinxbase
 Version:	0.8
-Release:	1
+Release:	2
 License:	BSD
 Group:		Applications/Communications
-Source0:	http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.gz
+Source0:	https://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.gz
 # Source0-md5:	7335d233f7ad4ecc4b508aec7b5dc101
 Patch0:		%{name}-am.patch
+Patch1:		%{name}-yyparse.patch
 URL:		https://cmusphinx.github.io/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -104,6 +105,7 @@ Sphinx.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env perl,/usr/bin/perl,' src/sphinx_lmtools/sphinx_lm_sort
 
diff --git a/sphinxbase-yyparse.patch b/sphinxbase-yyparse.patch
new file mode 100644
index 0000000..b998e6b
--- /dev/null
+++ b/sphinxbase-yyparse.patch
@@ -0,0 +1,11 @@
+--- sphinxbase-0.8/src/libsphinxbase/lm/jsgf.c.orig	2013-04-12 00:00:00.000000000 +0000
++++ sphinxbase-0.8/src/libsphinxbase/lm/jsgf.c	2026-03-14 00:00:00.000000000 +0000
+@@ -47,6 +47,8 @@
+ #include "jsgf_parser.h"
+ #include "jsgf_scanner.h"
+
++int yyparse(void *scanner, jsgf_t *jsgf);
++
+ /**
+  * \file jsgf.c
+  *
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sphinxbase.git/commitdiff/e271fd77ec5e6184a229ae76e817d307e920424c



More information about the pld-cvs-commit mailing list