commit ecc4ef9ebd6b263bf781ff74fb87e574027d5c372387f8909510dd86768ae8a2 Author: Tomáš Chvátal Date: Wed Apr 26 10:58:21 2017 +0000 - Initial commit required by malaga-suomi - Taken from Mageia OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/foma?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/foma-0.9.18.tar.gz b/foma-0.9.18.tar.gz new file mode 100644 index 0000000..b34fe1d --- /dev/null +++ b/foma-0.9.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb380f43e86fc7b3d4e43186db3e7cff8f2417e18ea69cc991e466a3907d8cbd +size 337134 diff --git a/foma.changes b/foma.changes new file mode 100644 index 0000000..b86c64b --- /dev/null +++ b/foma.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Apr 26 10:55:31 UTC 2017 - tchvatal@suse.com + +- Initial commit required by malaga-suomi +- Taken from Mageia + diff --git a/foma.spec b/foma.spec new file mode 100644 index 0000000..7542f04 --- /dev/null +++ b/foma.spec @@ -0,0 +1,92 @@ +# +# spec file for package foma +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define libname libfoma0 +Name: foma +Version: 0.9.18 +Release: %{mkrel} +Summary: finite-state compiler and C library +License: Apache-2.0 +Group: Productivity/Text/Utilities +Url: https://foma.googlecode.com/ +Source0: https://bitbucket.org/mhulden/foma/downloads/foma-%{version}.tar.gz +BuildRequires: ncurses-devel +BuildRequires: pkgconfig +BuildRequires: readline-devel +BuildRequires: pkgconfig(zlib) + +%description +Foma is a compiler, programming language, and C library for constructing +finite-state automata and transducers for various uses. It has specific +support for many natural language processing applications such as producing +morphological analyzers. Although NLP applications are probably the main +use of foma, it is sufficiently generic to use for a large number of purposes. + +%package -n %{libname} +Summary: finite-state C library +Group: System/Libraries + +%description -n %{libname} +The library contains efficient implementations of all classical +automata/transducer algorithms: determinization, minimization, +epsilon-removal, composition, boolean operations. Also, more +advanced construction methods are available: context restriction, +quotients, first-order regular logic, transducers from replacement +rules, etc. + +%package devel +Summary: finite-state C library development files and headers +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} + +%description devel +Development files and headers for %{name}. + +%prep +%setup -q + +%build +make %{?_smp_mflags} \ + CFLAGS="%{optflags} -D_GNU_SOURCE -std=c99 -fPIC" \ + LDFLAGS="%{ldflags} -lreadline -lz -ltermcap" + +%install +%make_install \ + prefix=%{buildroot}%{_prefix} \ + libdir=%{buildroot}%{_libdir} +rm -rf %{buildroot}%{_libdir}/*.a + +%files +%defattr(-,root,root) +%{_bindir}/cgflookup +%{_bindir}/flookup +%{_bindir}/foma + +%files -n %{devname} +%defattr(-,root,root) +%{_includedir}/fomalib.h +%{_includedir}/fomalibconf.h +%{_libdir}/libfoma.so + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/libfoma.so.%{major} +%{_libdir}/libfoma.so.%{version} + +%changelog