]> git.pld-linux.org Git - packages/SFST.git/blob - SFST.spec
- updated to 1.4.7e
[packages/SFST.git] / SFST.spec
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
4 Version:        1.4.7c
5 Release:        2
6 License:        GPL v2+
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
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 \
79         DESTDIR=$RPM_BUILD_ROOT%{_prefix}/
80
81 %{__make} -C src maninstall \
82         DESTDIR=$RPM_BUILD_ROOT%{_datadir}/
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
This page took 0.070112 seconds and 3 git commands to generate.