1 Summary: Stuttgart Finite State Transducer Tools
2 Summary(pl.UTF-8): Stuttgart Finite State Transducer Tools - narzędzia do automatów skończonych
7 Group: Development/Tools
8 Source0: ftp://ftp.ims.uni-stuttgart.de/pub/corpora/SFST/%{name}-%{version}.tar.gz
9 # Source0-md5: 66f5fffb430988e67410e39dac5dbd9c
10 URL: http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
13 BuildRequires: libstdc++-devel
15 BuildRequires: ncurses-devel
16 BuildRequires: readline-devel
17 BuildRequires: sed >= 4.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 SFST is a toolbox for the implementation of morphological analysers
22 and other tools which are based on finite state transducer technology.
24 The SFST tools comprise:
25 - a compiler which translates transducer programs into minimised
27 - interactive and batch-mode analysis programs
28 - tools for comparing and printing transducers
29 - an efficient C++ transducer library
31 %description -l pl.UTF-8
32 SFST to zestaw narzędzi do implementowania analizatorów
33 morfologicznych i innych narzędzi opartych na automatach skończonych z
36 Narzędzia SFST obejmują:
37 - kompilator tłumaczący programy na zminimalizowane automaty skończone
39 - interaktywne i wsadowe programy do analizy
40 - narzędzia do porównywania i wypisywania automatów
41 - wydajną bibliotekę automatów skończonych z wyjściem dla C++
44 Summary: Header files for SFST library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SFST
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 Header files for SFST library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki SFST.
58 sed -i -e '/^ strip/d' src/Makefile
61 %{__make} -C src libsfst.so \
64 CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE -fPIC" \
65 LDFLAGS="%{rpmldflags}"
70 CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE" \
71 LDFLAGS="%{rpmldflags}" \
72 LREADLINE="-lreadline"
75 rm -rf $RPM_BUILD_ROOT
77 %{__make} -C src install \
78 DESTDIR=$RPM_BUILD_ROOT \
81 %{__make} -C src maninstall \
82 DESTDIR=$RPM_BUILD_ROOT \
85 install -D src/libsfst.so $RPM_BUILD_ROOT%{_libdir}/libsfst.so
87 %{__make} -C src hfiles \
88 PREFIX=$RPM_BUILD_ROOT%{_prefix}/
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc README doc/{SFST-Manual,SFST-Tutorial}.pdf
99 %attr(755,root,root) %{_bindir}/fst-*
100 %attr(755,root,root) %{_libdir}/libsfst.so
101 %{_mandir}/man1/fst-*.1*
104 %defattr(644,root,root,755)