julius/julius.spec

186 lines
6.2 KiB
RPMSpec
Raw Permalink Normal View History

2017-11-07 20:16:33 +00:00
%global dkcommit bf4f024
2013-04-24 14:51:33 +00:00
Name: julius
2017-11-07 20:16:33 +00:00
Version: 4.4.2.1
Release: 3%{?dist}
2013-04-24 14:51:33 +00:00
Summary: Large vocabulary continuous speech recognition (LVCSR) decoder software
License: Julius
2017-11-07 20:16:33 +00:00
URL: https://github.com/julius-speech/julius
Source0: https://github.com/julius-speech/julius/archive/v%{version}.tar.gz
# Source1: http://julius.sourceforge.jp/archive/japanese-models.tar.gz
# Need to generate from git
# BE SURE YOU HAVE git-lfs installed before doing a clone
# git checkout https://github.com/julius-speech/dictation-kit.git
# cd dictation-kit
# rm -rf bin src
# cd ..
# tar --exclude-vcs -cJf dictation-kit-%%{dkcommit}.tar.xz dictation-kit
Source1: dictation-kit-%{dkcommit}.tar.xz
Patch0: julius-4.4.2.1-DESTDIR.patch
Patch1: julius-4.4.2.1-sharedlibs.patch
Patch2: julius-4.4.2.1-cpuidfix.patch
BuildRequires: perl-generators
2013-04-24 14:51:33 +00:00
BuildRequires: perl(Jcode), alsa-lib-devel, libsndfile-devel, pulseaudio-libs-devel, zlib-devel, readline-devel
2017-11-07 20:39:10 +00:00
BuildRequires: SDL2-devel
BuildRequires: bison, flex, nkf
2017-11-07 20:16:33 +00:00
BuildRequires: autoconf, automake, libtool
2013-04-24 14:51:33 +00:00
# Requires:
%description
"Julius" is a high-performance, two-pass large vocabulary continuous speech
recognition (LVCSR) decoder software for speech-related researchers and
developers. Based on word N-gram and context-dependent HMM, it can perform
almost real-time decoding on most current PCs in 60k word dictation task.
Major search techniques are fully incorporated such as tree lexicon, N-gram
factoring, cross-word context dependency handling, enveloped beam search,
Gaussian pruning, Gaussian selection, etc. Besides search efficiency, it is
also modularized carefully to be independent from model structures, and
various HMM types are supported such as shared-state triphones and
tied-mixture models, with any number of mixtures, states, or phones.
Standard formats are adopted to cope with other free modeling toolkit such
as HTK, CMU-Cam SLM toolkit, etc.
%package devel
Requires: julius = %{version}-%{release}
Summary: Development files and libraries for libjulius and libsent
%description devel
Development files and libraries for libjulius and libsent.
%package japanese-models
BuildArch: noarch
Requires: julius = %{version}-%{release}
Summary: Julius Japanese language model and acoustic models
License: Julius
%description japanese-models
A Japanese language model (20k-word trained by newspaper article) and acoustic
models (Phonetic tied-mixture triphone / monophone) for use with Julius.
%prep
2017-11-07 20:16:33 +00:00
%setup -q -a 1
2013-04-24 14:51:33 +00:00
%patch0 -p1 -b .DESTDIR
%patch1 -p1 -b .shared
%patch2 -p1 -b .cpuidfix
2013-04-24 14:51:33 +00:00
# Fix end-of-line encoding
sed -i 's/\r//' Release.txt
2017-11-07 20:16:33 +00:00
autoreconf -ifv || :
2013-04-24 14:51:33 +00:00
%build
%configure
2017-11-07 20:16:33 +00:00
# this fails
# make %{?_smp_mflags}
make
2013-04-24 14:51:33 +00:00
%install
2017-11-07 20:16:33 +00:00
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
2013-04-24 14:51:33 +00:00
make install DESTDIR=%{buildroot}
chmod +x %{buildroot}%{_libdir}/*.so.*
mkdir -p %{buildroot}%{_datadir}/julius/
cp -a Sample.jconf %{buildroot}%{_datadir}/julius/
2017-11-07 20:16:33 +00:00
pushd dictation-kit
cp *conf %{buildroot}%{_datadir}/julius/
cp -a model/ %{buildroot}%{_datadir}/julius/
popd
# rename to avoid conflict with Oracle Java
mv %{buildroot}%{_bindir}/jcontrol %{buildroot}%{_bindir}/julius-jcontrol
2013-04-24 14:51:33 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2017-11-07 20:16:33 +00:00
%doc ChangeLog Release.txt Release-ja.txt
%license LICENSE.txt
2013-04-24 14:51:33 +00:00
%{_bindir}/accept_check
%{_bindir}/adinrec
%{_bindir}/adintool
2017-11-07 20:16:33 +00:00
%{_bindir}/adintool-gui
%{_bindir}/binlm2arpa
2013-04-24 14:51:33 +00:00
%{_bindir}/dfa_determinize
%{_bindir}/dfa_minimize
%{_bindir}/generate
%{_bindir}/generate-ngram
%{_bindir}/gram2sapixml.pl
%{_bindir}/jclient.pl
2017-11-07 20:16:33 +00:00
%{_bindir}/julius-jcontrol
2013-04-24 14:51:33 +00:00
%{_bindir}/julius
%{_bindir}/mkbingram
%{_bindir}/mkbinhmm
%{_bindir}/mkbinhmmlist
%{_bindir}/mkdfa.pl
%{_bindir}/mkfa
2013-04-24 14:51:33 +00:00
%{_bindir}/mkgshmm
%{_bindir}/mkss
%{_bindir}/nextword
%{_bindir}/yomi2voca.pl
%{_libdir}/libjulius.so.*
%{_libdir}/libsent.so.*
%lang(ja) %{_mandir}/ja/man1/*
%{_mandir}/man1/*
%dir %{_datadir}/julius/
2017-11-07 20:16:33 +00:00
%{_datadir}/julius/*conf
2013-04-24 14:51:33 +00:00
%files devel
%{_bindir}/libjulius-config
%{_bindir}/libsent-config
%{_includedir}/julius/
%{_includedir}/sent/
%{_libdir}/libjulius.so
%{_libdir}/libsent.so
2017-11-07 20:16:33 +00:00
%{_libdir}/pkgconfig/*.pc
2013-04-24 14:51:33 +00:00
%files japanese-models
2017-11-07 20:16:33 +00:00
%{_datadir}/julius/model/
2013-04-24 14:51:33 +00:00
%changelog
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Nov 8 2017 Tom Callaway <spot@fedoraproject.org> - 4.4.2.1-2
- fix cpuid.h conditionalization to be more complete
2017-11-07 20:16:33 +00:00
* Tue Nov 7 2017 Tom Callaway <spot@fedoraproject.org> - 4.4.2.1-1
- update to 4.4.2.1
- rename jcontrol to julius-jcontrol to avoid conflict with oracle java
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 4.2.2-10
- Rebuild for readline 7.x
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Sep 3 2014 Tom Callaway <spot@fedoraproject.org> - 4.2.2-7
- fix DESTDIR patch so that mkfa and mkdfa.pl get installed
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-18 10:45:52 +00:00
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 4.2.2-3
- Perl 5.18 rebuild
2013-04-24 14:51:33 +00:00
* Tue Aug 28 2012 Tom Callaway <spot@fedoraproject.org> - 4.2.2-2
- fix Source0 URL
* Mon Aug 13 2012 Tom Callaway <spot@fedoraproject.org> - 4.2.2-1
- initial package