hfst-ospell/hfst-ospell.spec

89 lines
2.4 KiB
RPMSpec

#
# 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