Name: openfst Version: 1.1 Release: 1%{?dist} Summary: Weighted finite-state transducer library Group: System Environment/Libraries License: ASL 2.0 URL: http://mohri-lt.cs.nyu.edu/twiki/bin/view/FST/FstDownload Source0: openfst-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description OpenFst is a library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs). Weighted finite-state transducers are automata where each transition has an input label, an output label, and a weight. The more familiar finite-state acceptor is represented as a transducer with each transition's input and output label equal. Finite-state acceptors are used to represent sets of strings (specifically, regular or rational sets); finite-state transducers are used to represent binary relations between pairs of strings (specifically, rational transductions). The weights can be used to represent the cost of taking a particular transition. FSTs have key applications in speech recognition and synthesis, machine translation, optical character recognition, pattern matching, string processing, machine learning, information extraction and retrieval among others. Often a weighted transducer is used to represent a probabilistic model (e.g., an n-gram model, pronunciation model). FSTs can be optimized by determinization and minimization, models can be applied to hypothesis sets (also represented as automata) or cascaded by finite-state composition, and the best results can be selected by shortest-path algorithms. %package devel Summary: Development tools for programs which will use openfst Group: Development/Libraries Requires: openfst = %{version}-%{release} %description devel The openfst-devel package includes the header files and documentation necessary for developing programs using the openfst library. You'll also need to have the openfst package installed. %package static Summary: Static library version of openfst Group: Development/Libraries Requires: openfst = %{version}-%{release} Requires: openfst-devel = %{version}-%{release} %description static The openfst-static package includes the static library version of the openfst library. You'll also need to have the openfst-devel package installed if you want the headers. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS README NEWS COPYING %{_libdir}/libfst.so.* %{_libdir}/libfstmain.so.* %{_bindir}/fstarcsort %{_bindir}/fstclosure %{_bindir}/fstcompile %{_bindir}/fstcompose %{_bindir}/fstconcat %{_bindir}/fstconnect %{_bindir}/fstconvert %{_bindir}/fstdeterminize %{_bindir}/fstdifference %{_bindir}/fstdraw %{_bindir}/fstencode %{_bindir}/fstepsnormalize %{_bindir}/fstequal %{_bindir}/fstequivalent %{_bindir}/fstinfo %{_bindir}/fstintersect %{_bindir}/fstinvert %{_bindir}/fstmap %{_bindir}/fstminimize %{_bindir}/fstprint %{_bindir}/fstproject %{_bindir}/fstprune %{_bindir}/fstpush %{_bindir}/fstrandgen %{_bindir}/fstrelabel %{_bindir}/fstreplace %{_bindir}/fstreverse %{_bindir}/fstreweight %{_bindir}/fstrmepsilon %{_bindir}/fstshortestdistance %{_bindir}/fstshortestpath %{_bindir}/fstsynchronize %{_bindir}/fsttopsort %{_bindir}/fstunion %files devel %defattr(-,root,root,-) %doc /usr/include/fst/*.h %{_libdir}/libfst.so %{_libdir}/libfstmain.so %files static %defattr(-,root,root,-) %doc %{_libdir}/libfst.a %{_libdir}/libfstmain.a %changelog * Sat Aug 01 2009 Brad Hards 1.1-1 - Initial version.