sphinx3/sphinx3.spec

84 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2025-02-12 11:55:06 +00:00
%define git 20180210
%define commit r13291
# see https://sourceforge.net/p/cmusphinx/code/13291/tree/
2017-01-11 23:34:03 +10:00
2014-04-07 17:38:34 +04:00
%define Werror_cflags %{nil}
2012-02-01 22:26:23 +04:00
%define _disable_ld_no_undefined 1
%define major 0
%define libs3decoder %mklibname s3decoder %{major}
%define devname %mklibname %{name} -d
Summary: CMU Sphinx Recognition System
Name: sphinx3
Version: 0.8
2025-02-12 11:55:06 +00:00
Release: 1.%{git}.1
License: BSD-style (see COPYING)
Group: Sound
2025-02-12 11:55:06 +00:00
URL: https://cmusphinx.github.io
2017-01-11 23:34:03 +10:00
# https://sourceforge.net/p/cmusphinx/code/HEAD/tree/trunk/sphinx3/
2025-02-12 11:55:06 +00:00
#Source0: %{name}-%{version}-%{git}.tar.bz2
#Source0: https://sourceforge.net/projects/cmusphinx/files/sphinx3/0.8/sphinx3-0.8.tar.gz
Source0: cmusphinx-code-r13291-trunk-sphinx3.zip
BuildRequires: pkgconfig(sphinxbase)
BuildRequires: sphinxbase
2025-02-12 11:55:06 +00:00
BuildRequires: bzip2
BuildRequires: unzip
Requires: sphinxbase
2012-02-01 22:26:23 +04:00
%description
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition.
%files
2017-01-11 23:34:03 +10:00
%doc AUTHORS README NEWS doc/*.ppt
%doc doc/*.html doc/*.pdf doc/*.txt doc/*.gif
%{_bindir}/*
%{_datadir}/%{name}
#----------------------------------------------------------------------------
%package -n %{libs3decoder}
Summary: Shared library for %{name}
Group: System/Libraries
Conflicts: %{name} < 0.8-6
%description -n %{libs3decoder}
Shared library for %{name}.
%files -n %{libs3decoder}
%{_libdir}/libs3decoder.so.%{major}*
#----------------------------------------------------------------------------
2012-02-01 22:26:23 +04:00
%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libs3decoder} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
Conflicts: %{name}-devel < 0.8-6
Obsoletes: %{name}-devel < 0.8-6
Conflicts: %{name} < 0.8-6
2012-02-01 22:26:23 +04:00
%description -n %{devname}
Development files for %{name}.
%files -n %{devname}
%{_libdir}/libs3decoder.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/
#----------------------------------------------------------------------------
2012-02-01 22:26:23 +04:00
%prep
2025-02-12 11:55:06 +00:00
%setup -qn cmusphinx-code-r13291-trunk-sphinx3
2012-02-01 22:26:23 +04:00
%build
2017-01-11 23:34:03 +10:00
./autogen.sh
%configure2_5x --disable-static
2012-02-01 22:26:23 +04:00
%make
%install
%makeinstall_std
2012-02-01 22:26:23 +04:00