]>
Commit | Line | Data |
---|---|---|
32456743 JB |
1 | Summary: Stuttgart Finite State Transducer Tools |
2 | Summary(pl.UTF-8): Stuttgart Finite State Transducer Tools - narzędzia do automatów skończonych | |
3 | Name: SFST | |
34a9c542 JB |
4 | Version: 1.4.7e |
5 | Release: 1 | |
32456743 JB |
6 | License: GPL v2+ |
7 | Group: Development/Tools | |
34a9c542 JB |
8 | #Source0Download: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/ |
9 | Source0: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/data/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: df20e01f27044973f47a06432e6545e8 | |
11 | URL: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/ | |
32456743 JB |
12 | BuildRequires: bison |
13 | BuildRequires: flex | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRequires: m4 | |
16 | BuildRequires: ncurses-devel | |
17 | BuildRequires: readline-devel | |
18 | BuildRequires: sed >= 4.0 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | SFST is a toolbox for the implementation of morphological analysers | |
23 | and other tools which are based on finite state transducer technology. | |
24 | ||
25 | The SFST tools comprise: | |
26 | - a compiler which translates transducer programs into minimised | |
27 | transducers | |
28 | - interactive and batch-mode analysis programs | |
29 | - tools for comparing and printing transducers | |
30 | - an efficient C++ transducer library | |
31 | ||
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 | |
35 | wyjściem. | |
36 | ||
37 | Narzędzia SFST obejmują: | |
38 | - kompilator tłumaczący programy na zminimalizowane automaty skończone | |
39 | z wyjściem | |
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++ | |
43 | ||
44 | %package devel | |
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} | |
49 | ||
50 | %description devel | |
51 | Header files for SFST library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki SFST. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{name} | |
58 | ||
59 | sed -i -e '/^ strip/d' src/Makefile | |
60 | ||
61 | %build | |
62 | %{__make} -C src libsfst.so \ | |
63 | CC="%{__cxx}" \ | |
64 | CXX="%{__cxx}" \ | |
65 | CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE -fPIC" \ | |
66 | LDFLAGS="%{rpmldflags}" | |
67 | ||
68 | %{__make} -C src \ | |
69 | CC="%{__cxx}" \ | |
70 | CXX="%{__cxx}" \ | |
71 | CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE" \ | |
72 | LDFLAGS="%{rpmldflags}" \ | |
73 | LREADLINE="-lreadline" | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} -C src install \ | |
d033a684 | 79 | DESTDIR=$RPM_BUILD_ROOT%{_prefix}/ |
32456743 JB |
80 | |
81 | %{__make} -C src maninstall \ | |
d033a684 | 82 | DESTDIR=$RPM_BUILD_ROOT%{_datadir}/ |
32456743 JB |
83 | |
84 | install -D src/libsfst.so $RPM_BUILD_ROOT%{_libdir}/libsfst.so | |
85 | ||
86 | %{__make} -C src hfiles \ | |
87 | PREFIX=$RPM_BUILD_ROOT%{_prefix}/ | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
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* | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %{_includedir}/sfst |