From 1af3ee904ff0af0306139f87c09ff12211634ec12e7d2b1b924644fb9eff4c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 25 Apr 2017 15:30:41 +0000 Subject: [PATCH] - Initial commit, required by libvoikko OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/hfst-ospell?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + hfst-ospell.changes | 4 ++ hfst-ospell.spec | 88 +++++++++++++++++++++++++++++++++++++++++ hfstospell-0.4.5.tar.gz | 3 ++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hfst-ospell.changes create mode 100644 hfst-ospell.spec create mode 100644 hfstospell-0.4.5.tar.gz 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/hfst-ospell.changes b/hfst-ospell.changes new file mode 100644 index 0000000..c5a9efc --- /dev/null +++ b/hfst-ospell.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 25 15:24:37 UTC 2017 - tchvatal@suse.com + +- Initial commit, required by libvoikko diff --git a/hfst-ospell.spec b/hfst-ospell.spec new file mode 100644 index 0000000..03257f3 --- /dev/null +++ b/hfst-ospell.spec @@ -0,0 +1,88 @@ +# +# spec file for package hfst-ospell +# +# 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 _name hfstospell +Name: hfst-ospell +Version: 0.4.5 +Release: 0 +Summary: Spell checker library and tool based on HFST +License: Apache-2.0 +Group: Productivity/Text/Spell +Url: http://hfst.github.io/ +Source0: https://github.com/hfst/%{name}/releases/download/v%{version}/%{_name}-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: pkgconfig(icu-uc) +BuildRequires: pkgconfig(libarchive) + +%description +Minimal HFST optimized lookup format based spell checker library and +a demonstrational implementation of command line based spell checker. + +%package -n libhfstospell8 +Summary: HFST spell checker runtime libraries +Group: System/Libraries +Provides: libhfstospell = %{version}-%{release} +Obsoletes: libhfstospell < %{version}-%{release} + +%description -n libhfstospell8 +Runtime libraries for hfst-ospell + +%package -n hfst-ospell-devel +Summary: HFST spell checker development files +Group: Development/Libraries/C and C++ +Requires: hfst-ospell = %{version}-%{release} + +%description -n hfst-ospell-devel +Development headers and libraries for hfst-ospell + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +%check +make %{?_smp_mflags} check + +%files +%defattr(-,root,root) +%doc AUTHORS NEWS README +%{_bindir}/* +%{_mandir}/man1/* + +%files -n libhfstospell8 +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n hfst-ospell-devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/pkgconfig/* +%{_libdir}/*.so + +%post -n libhfstospell8 -p /sbin/ldconfig +%postun -n libhfstospell8 -p /sbin/ldconfig + +%changelog diff --git a/hfstospell-0.4.5.tar.gz b/hfstospell-0.4.5.tar.gz new file mode 100644 index 0000000..bbd6541 --- /dev/null +++ b/hfstospell-0.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf10817d1d82f0a7268992ab6ccf475fae2d838e6b9fc59eb6db38e9c21a311e +size 432778