]> git.pld-linux.org Git - packages/SFST.git/blob - SFST.spec
- updated to 1.4.6d
[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.6d
5 Release:        1
6 License:        GPL v2+
7 Group:          Development/Tools
8 Source0:        ftp://ftp.ims.uni-stuttgart.de/pub/corpora/SFST/%{name}-%{version}.tar.gz
9 # Source0-md5:  f457c8f264deb214038f27c13c3ec2b9
10 URL:            http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
11 BuildRequires:  bison
12 BuildRequires:  flex
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  m4
15 BuildRequires:  ncurses-devel
16 BuildRequires:  readline-devel
17 BuildRequires:  sed >= 4.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 SFST is a toolbox for the implementation of morphological analysers
22 and other tools which are based on finite state transducer technology.
23
24 The SFST tools comprise:
25 - a compiler which translates transducer programs into minimised
26   transducers
27 - interactive and batch-mode analysis programs
28 - tools for comparing and printing transducers
29 - an efficient C++ transducer library
30
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
34 wyjściem.
35
36 Narzędzia SFST obejmują:
37 - kompilator tłumaczący programy na zminimalizowane automaty skończone
38   z wyjściem
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++
42
43 %package devel
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}
48
49 %description devel
50 Header files for SFST library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki SFST.
54
55 %prep
56 %setup -q -n %{name}
57
58 sed -i -e '/^   strip/d' src/Makefile
59
60 %build
61 %{__make} -C src libsfst.so \
62         CC="%{__cxx}" \
63         CXX="%{__cxx}" \
64         CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE -fPIC" \
65         LDFLAGS="%{rpmldflags}"
66
67 %{__make} -C src \
68         CC="%{__cxx}" \
69         CXX="%{__cxx}" \
70         CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE" \
71         LDFLAGS="%{rpmldflags}" \
72         LREADLINE="-lreadline"
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} -C src install \
78         DESTDIR=$RPM_BUILD_ROOT \
79         PREFIX=%{_prefix}/
80
81 %{__make} -C src maninstall \
82         DESTDIR=$RPM_BUILD_ROOT \
83         PREFIX=%{_datadir}/
84
85 install -D src/libsfst.so $RPM_BUILD_ROOT%{_libdir}/libsfst.so
86
87 %{__make} -C src hfiles \
88         PREFIX=$RPM_BUILD_ROOT%{_prefix}/
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
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*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %{_includedir}/sfst
This page took 0.033115 seconds and 3 git commands to generate.