1 Summary: Multi-purpose finite-state toolkit
2 Summary(pl.UTF-8): Toolkit do tworzenia automatów skończonych różnego zastosowania
7 Group: Development/Tools
8 #Source0Download: https://code.google.com/p/foma/downloads/list
9 Source0: https://foma.googlecode.com/files/%{name}-%{version}.tar.gz
10 # Source0-md5: 17c40eb005d3c823231c24c77a8ec99d
11 URL: https://code.google.com/p/foma/
12 BuildRequires: readline-devel
13 BuildRequires: zlib-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Foma is a multi-purpose finite-state toolkit designed for applications
18 ranging from natural language processing and research in automata
19 theory. It should be upwardly compatible with Xerox xfst and lexc,
20 with the exception of binary file reading and writing.
22 %description -l pl.UTF-8
23 Foma to toolkit do tworzenia automatów skończonych o różnych
24 zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne
25 do badań w dziedzinie teorii automatów. Powinien być kompatybilny w
26 górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu
30 Summary: Header files for Foma library
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Foma
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files for Foma library.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki Foma.
42 Summary: Static Foma library
43 Summary(pl.UTF-8): Statyczna biblioteka Foma
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
50 %description static -l pl.UTF-8
51 Statyczna biblioteka Foma.
59 CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC" \
60 LDFLAGS="%{rpmldflags} -lreadline -lz"
62 # workaround to avoid rebuilding library on install
65 %{__make} foma flookup cgflookup \
67 CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden" \
68 LDFLAGS="%{rpmldflags} -lreadline -lz"
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_bindir}
75 prefix=$RPM_BUILD_ROOT%{_prefix} \
76 libdir=$RPM_BUILD_ROOT%{_libdir}
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc CHANGELOG README*
87 %attr(755,root,root) %{_bindir}/cgflookup
88 %attr(755,root,root) %{_bindir}/flookup
89 %attr(755,root,root) %{_bindir}/foma
90 %attr(755,root,root) %{_libdir}/libfoma.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libfoma.so.0
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/libfoma.so
96 %{_includedir}/fomalib*.h
99 %defattr(644,root,root,755)