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 # mhulden/foma is main repo, but 0.10.0 tag exists only in AmbientLighter/foma (commit 180b6febf718af4b0223b6c7ac46f698a76e6a45 in mhulden/foma)
9 #Source0Download: https://github.com/mhulden/foma/tags
10 #Source0Download: https://github.com/AmbientLighter/foma/releases
11 Source0: https://github.com/AmbientLighter/foma/archive/%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 18dc7c0a586117dc2b967ba3b4c3a237
13 URL: https://fomafst.github.io/
16 BuildRequires: readline-devel
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Foma is a multi-purpose finite-state toolkit designed for applications
22 ranging from natural language processing and research in automata
23 theory. It should be upwardly compatible with Xerox xfst and lexc,
24 with the exception of binary file reading and writing.
26 %description -l pl.UTF-8
27 Foma to toolkit do tworzenia automatów skończonych o różnych
28 zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne
29 do badań w dziedzinie teorii automatów. Powinien być kompatybilny w
30 górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu
34 Summary: Header files for Foma library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Foma
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for Foma library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki Foma.
46 Summary: Static Foma library
47 Summary(pl.UTF-8): Statyczna biblioteka Foma
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
54 %description static -l pl.UTF-8
55 Statyczna biblioteka Foma.
61 %{__make} -C foma libfoma \
63 CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC" \
64 LDFLAGS="%{rpmldflags} -lreadline -lz"
66 # workaround to avoid rebuilding library on install
69 %{__make} -C foma foma flookup cgflookup \
71 CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden" \
72 LDFLAGS="%{rpmldflags} -lreadline -lz"
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_bindir}
78 %{__make} -C foma install \
79 prefix=$RPM_BUILD_ROOT%{_prefix} \
80 libdir=$RPM_BUILD_ROOT%{_libdir}
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
90 %doc foma/{CHANGELOG,README*}
91 %attr(755,root,root) %{_bindir}/cgflookup
92 %attr(755,root,root) %{_bindir}/flookup
93 %attr(755,root,root) %{_bindir}/foma
94 %attr(755,root,root) %{_libdir}/libfoma.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libfoma.so.0
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libfoma.so
100 %{_includedir}/fomalib*.h
101 %{_pkgconfigdir}/libfoma.pc
104 %defattr(644,root,root,755)