Files
pocketsphinx/fix-python-installation.patch
Antonio Larrosa 544307112e - Update to 5.0.3:
* This release mainly fixes building for Python 3.12, but also
    fixes a serious bug in the NGramModel wrapper class along the
    way. Note that Python 3.6 and 3.7 are no longer supported.
  * Switch to scikit-build-core and tox to fix many issues.
- Update to 5.0.2:
    Removed unnecessary shinxbase in package config
    Do not attempt to align phones to impossibly short durations (fixes #339)
    Require specific setuptools version to fix editable install (fixes: #353)
- Update to 5.0.1:
    Include examples of live recognition on various platforms
    Add missing close brace for C++
    Use a separate search for ps_set_align_text()
    Fix regression tests and -phone_align in main program
    Use trailing slash with include directory
    Removed unnecessary libpthread in package config
    fix: fix a stray #if WORDS_BIGENDIAN (fixes: #343)
- Update to 5.0.0. Includes among other these notable changes:
  * pocketsphinx_continuous is gone, replaced by plain old
    pocketsphinx, which is documented in the README file.
  * The configuration interface is now quite different. It is not a
    "command-line parser" anymore and the configuration parameters
    have lost their leading dashes.
  * All of the SphinxBase "utility" headers have also been made
    internal and their symbols will no longer be exported on
    Windows. Conversely, the JSGF and N-Gram language model API has
    been included in <pocketsphinx/model.h>.
  * The sphinx_fe and sphinx_cepview utilities have been moved to
    SphinxTrain.
  * The audio interface (<sphinxbase/ad.h>) has been removed.

OBS-URL: https://build.opensuse.org/package/show/multimedia:voice-assistant/pocketsphinx?expand=0&rev=15
2024-12-18 11:50:48 +00:00

16 lines
882 B
Diff

Index: pocketsphinx-5~git20241211.69167fb/cython/CMakeLists.txt
===================================================================
--- pocketsphinx-5~git20241211.69167fb.orig/cython/CMakeLists.txt
+++ pocketsphinx-5~git20241211.69167fb/cython/CMakeLists.txt
@@ -23,7 +23,8 @@ target_include_directories(
_pocketsphinx INTERFACE ${CMAKE_SOURCE_DIR}/include
_pocketsphinx INTERFACE ${CMAKE_BINARY_DIR}/include
)
-install(TARGETS _pocketsphinx LIBRARY DESTINATION pocketsphinx)
+install(DIRECTORY pocketsphinx DESTINATION ${Python_STDLIB}/site-packages)
+install(TARGETS _pocketsphinx LIBRARY DESTINATION ${Python_STDLIB}/site-packages/pocketsphinx)
if(NOT USE_INSTALLED_POCKETSPHINX)
- install(DIRECTORY ${PROJECT_SOURCE_DIR}/model DESTINATION pocketsphinx)
+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/model DESTINATION ${Python_STDLIB}/site-packages/pocketsphinx)
endif()