sphinx3/sphinx3.spec

75 lines
1.8 KiB
RPMSpec
Raw Normal View History

2014-04-07 17:38:34 +04:00
Name: sphinx3
2012-02-01 22:26:23 +04:00
Version: 0.8
2014-07-25 16:26:37 +04:00
Release: 5
2012-02-01 22:26:23 +04:00
Summary: CMU Sphinx Recognition System
2012-09-28 04:38:59 +00:00
#Summary(ru_RU.UTF-8): Система распознавания речи
2012-02-01 22:26:23 +04:00
Group: Sound
License: BSD-style (see COPYING)
Url: http://cmusphinx.sourceforge.net/
Source: %{name}-%{version}.tar.gz
Requires: sphinxbase
2014-04-17 21:32:18 +04:00
BuildRequires: sphinxbase
BuildRequires: pkgconfig(sphinxbase)
BuildRequires: pkgconfig(libbsd)
2012-02-01 22:26:23 +04:00
Source1: Makefile.patch
Source2: Makefile.inc.patch
Source3: Makefile.an4.patch
Source4: Makefile2.patch
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
%description
The CMU Sphinx Recognition System is a library and a set
of examples and utilities for speech recognition.
This package will install the sphinx3 library and some examples.
%package devel
Summary: libraries and header files for Sphinx
Group: Development/C
Requires: %{name} = %{version}-%{release}
%description devel
The CMU Sphinx Recognition System is a library and a set
of examples and utilities for speech recognition.
This package contains libraries and header files need for development.
%prep
%setup
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
%{__libtoolize}
%{__aclocal}
%{__autoconf}
2014-04-07 17:37:50 +04:00
%{__automake} --add-missing
2012-02-01 22:26:23 +04:00
# ./autogen.sh
2014-04-07 17:37:50 +04:00
cp configure.ac configure.in
2012-02-01 22:26:23 +04:00
%configure
patch -p0 -F 90 Makefile %{SOURCE4}
patch -p0 -F 90 include/Makefile %{SOURCE4}
patch -p0 -F 90 model/lm/an4/Makefile %{SOURCE4}
%make
%install
make install DESTDIR=%{buildroot}
%files
%doc AUTHORS COPYING INSTALL README NEWS doc/*.ppt
%doc doc/*.html doc/*.pdf doc/*.txt doc/*.gif
%{_bindir}/*
%{_datadir}/%{name}
%{_libdir}/*.so.*
%{_libdir}/*.so
%files devel
%{_libdir}/*.a
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc