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 #Source0Download: http://www.cis.uni-muenchen.de/~schmid/tools/SFST/
9 Source0: http://www.cis.uni-muenchen.de/~schmid/tools/SFST/data/%{name}-%{version}.tar.gz
10 # Source0-md5: 34d220f3c7216094653ddc82924b00e2
11 URL: http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
14 BuildRequires: libstdc++-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: readline-devel
18 BuildRequires: sed >= 4.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 SFST is a toolbox for the implementation of morphological analysers
23 and other tools which are based on finite state transducer technology.
25 The SFST tools comprise:
26 - a compiler which translates transducer programs into minimised
28 - interactive and batch-mode analysis programs
29 - tools for comparing and printing transducers
30 - an efficient C++ transducer library
32 %description -l pl.UTF-8
33 SFST to zestaw narzędzi do implementowania analizatorów
34 morfologicznych i innych narzędzi opartych na automatach skończonych z
37 Narzędzia SFST obejmują:
38 - kompilator tłumaczący programy na zminimalizowane automaty skończone
40 - interaktywne i wsadowe programy do analizy
41 - narzędzia do porównywania i wypisywania automatów
42 - wydajną bibliotekę automatów skończonych z wyjściem dla C++
45 Summary: Header files for SFST library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SFST
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for SFST library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki SFST.
59 sed -i -e '/^ strip/d' src/Makefile
62 %{__make} -C src libsfst.so \
65 CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE -fPIC" \
66 LDFLAGS="%{rpmldflags}"
71 CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE" \
72 LDFLAGS="%{rpmldflags}" \
73 LREADLINE="-lreadline"
76 rm -rf $RPM_BUILD_ROOT
78 %{__make} -C src install \
79 DESTDIR=$RPM_BUILD_ROOT%{_prefix}/
81 %{__make} -C src maninstall \
82 DESTDIR=$RPM_BUILD_ROOT%{_datadir}/
84 install -D src/libsfst.so $RPM_BUILD_ROOT%{_libdir}/libsfst.so
86 %{__make} -C src hfiles \
87 PREFIX=$RPM_BUILD_ROOT%{_prefix}/
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc README doc/{SFST-Manual,SFST-Tutorial}.pdf
98 %attr(755,root,root) %{_bindir}/fst-*
99 %attr(755,root,root) %{_libdir}/libsfst.so
100 %{_mandir}/man1/fst-*.1*
103 %defattr(644,root,root,755)