]> git.pld-linux.org Git - packages/SFST.git/blame - SFST.spec
- updated to 1.4.7e
[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
34a9c542
JB
4Version: 1.4.7e
5Release: 1
32456743
JB
6License: GPL v2+
7Group: Development/Tools
34a9c542
JB
8#Source0Download: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/
9Source0: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/data/%{name}-%{version}.tar.gz
10# Source0-md5: df20e01f27044973f47a06432e6545e8
11URL: https://www.cis.uni-muenchen.de/~schmid/tools/SFST/
32456743
JB
12BuildRequires: bison
13BuildRequires: flex
14BuildRequires: libstdc++-devel
15BuildRequires: m4
16BuildRequires: ncurses-devel
17BuildRequires: readline-devel
18BuildRequires: sed >= 4.0
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22SFST is a toolbox for the implementation of morphological analysers
23and other tools which are based on finite state transducer technology.
24
25The 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
33SFST to zestaw narzędzi do implementowania analizatorów
34morfologicznych i innych narzędzi opartych na automatach skończonych z
35wyjściem.
36
37Narzę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
45Summary: Header files for SFST library
46Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SFST
47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
49
50%description devel
51Header files for SFST library.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe biblioteki SFST.
55
56%prep
57%setup -q -n %{name}
58
59sed -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
76rm -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
84install -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
90rm -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.146922 seconds and 4 git commands to generate.