mirror of
https://abf.rosa.ru/djam/sphinx3.git
synced 2025-02-23 16:42:55 +00:00
87 lines
2.1 KiB
RPMSpec
87 lines
2.1 KiB
RPMSpec
%define Werror_cflags %{nil}
|
|
%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
|
|
Release: 8
|
|
License: BSD-style (see COPYING)
|
|
Group: Sound
|
|
Url: http://cmusphinx.sourceforge.net/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Patch0: sphinx3-0.8-libutil.patch
|
|
Source1: Makefile.patch
|
|
Source2: Makefile.inc.patch
|
|
Source3: Makefile.an4.patch
|
|
Source4: Makefile2.patch
|
|
BuildRequires: pkgconfig(sphinxbase)
|
|
BuildRequires: sphinxbase
|
|
Requires: sphinxbase
|
|
|
|
%description
|
|
The CMU Sphinx Recognition System is a library and a set of examples and
|
|
utilities for speech recognition.
|
|
|
|
%files
|
|
%doc AUTHORS COPYING INSTALL 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}*
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%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
|
|
|
|
%description -n %{devname}
|
|
Development files for %{name}.
|
|
|
|
%files -n %{devname}
|
|
%{_libdir}/libs3decoder.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_includedir}/%{name}/
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p0
|
|
patch -p0 -F 90 Makefile.in %{SOURCE1}
|
|
patch -p0 -F 90 include/Makefile.in %{SOURCE2}
|
|
patch -p0 -F 90 model/lm/an4/Makefile.in %{SOURCE3}
|
|
|
|
%build
|
|
autoreconf -fi
|
|
cp configure.ac configure.in
|
|
%configure2_5x --disable-static
|
|
patch -p0 -F 90 Makefile %{SOURCE4}
|
|
patch -p0 -F 90 include/Makefile %{SOURCE4}
|
|
patch -p0 -F 90 model/lm/an4/Makefile %{SOURCE4}
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std
|
|
|