]> git.pld-linux.org Git - packages/SFST.git/blame - SFST.spec
- updated to 1.4.6d
[packages/SFST.git] / SFST.spec
CommitLineData
32456743
JB
1Summary: Stuttgart Finite State Transducer Tools
2Summary(pl.UTF-8): Stuttgart Finite State Transducer Tools - narzędzia do automatów skończonych
3Name: SFST
8fc8deb5 4Version: 1.4.6d
32456743
JB
5Release: 1
6License: GPL v2+
7Group: Development/Tools
8Source0: ftp://ftp.ims.uni-stuttgart.de/pub/corpora/SFST/%{name}-%{version}.tar.gz
8fc8deb5 9# Source0-md5: f457c8f264deb214038f27c13c3ec2b9
32456743
JB
10URL: http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
11BuildRequires: bison
12BuildRequires: flex
13BuildRequires: libstdc++-devel
14BuildRequires: m4
15BuildRequires: ncurses-devel
16BuildRequires: readline-devel
17BuildRequires: sed >= 4.0
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21SFST is a toolbox for the implementation of morphological analysers
22and other tools which are based on finite state transducer technology.
23
24The 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
32SFST to zestaw narzędzi do implementowania analizatorów
33morfologicznych i innych narzędzi opartych na automatach skończonych z
34wyjściem.
35
36Narzę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
44Summary: Header files for SFST library
45Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SFST
46Group: Development/Libraries
47Requires: %{name} = %{version}-%{release}
48
49%description devel
50Header files for SFST library.
51
52%description devel -l pl.UTF-8
53Pliki nagłówkowe biblioteki SFST.
54
55%prep
56%setup -q -n %{name}
57
58sed -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
75rm -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
85install -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
91rm -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.088695 seconds and 4 git commands to generate.