Summary: Multi-purpose finite-state toolkit Summary(pl.UTF-8): Toolkit do tworzenia automatów skończonych różnego zastosowania Name: foma Version: 0.10.0 Release: 1 License: GPL v2 Group: Development/Tools # mhulden/foma is main repo, but 0.10.0 tag exists only in AmbientLighter/foma (commit 180b6febf718af4b0223b6c7ac46f698a76e6a45 in mhulden/foma) #Source0Download: https://github.com/mhulden/foma/tags #Source0Download: https://github.com/AmbientLighter/foma/releases Source0: https://github.com/AmbientLighter/foma/archive/%{version}/%{name}-%{version}.tar.gz # Source0-md5: 18dc7c0a586117dc2b967ba3b4c3a237 URL: https://fomafst.github.io/ BuildRequires: bison BuildRequires: flex BuildRequires: readline-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Foma is a multi-purpose finite-state toolkit designed for applications ranging from natural language processing and research in automata theory. It should be upwardly compatible with Xerox xfst and lexc, with the exception of binary file reading and writing. %description -l pl.UTF-8 Foma to toolkit do tworzenia automatów skończonych o różnych zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne do badań w dziedzinie teorii automatów. Powinien być kompatybilny w górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu plików binarnych. %package devel Summary: Header files for Foma library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Foma Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header files for Foma library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki Foma. %package static Summary: Static Foma library Summary(pl.UTF-8): Statyczna biblioteka Foma Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static Foma library. %description static -l pl.UTF-8 Statyczna biblioteka Foma. %prep %setup -q %build %{__make} -C foma libfoma \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC" \ LDFLAGS="%{rpmldflags} -lreadline -lz" # workaround to avoid rebuilding library on install touch foma/libfoma %{__make} -C foma foma flookup cgflookup \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden" \ LDFLAGS="%{rpmldflags} -lreadline -lz" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} %{__make} -C foma install \ prefix=$RPM_BUILD_ROOT%{_prefix} \ libdir=$RPM_BUILD_ROOT%{_libdir} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc foma/{CHANGELOG,README*} %attr(755,root,root) %{_bindir}/cgflookup %attr(755,root,root) %{_bindir}/flookup %attr(755,root,root) %{_bindir}/foma %attr(755,root,root) %{_libdir}/libfoma.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libfoma.so.0 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libfoma.so %{_includedir}/fomalib*.h %{_pkgconfigdir}/libfoma.pc %files static %defattr(644,root,root,755) %{_libdir}/libfoma.a