File hunspell-hyphen.spec of Package hunspell-hyphen
#
# spec file for package hunspell-hyphen
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define sover 0
%define libname libhyphen%{sover}
%if 0%{?suse_version} > 1500
%define _lto_cflags %{nil}
%endif
Name: hunspell-hyphen
Version: 2.8.8
Release: 0
Summary: A text hyphenation library
License: (GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1+) AND LGPL-2.1-or-later
Group: Productivity/Office/Other
URL: https://downloads.sourceforge.net/hunspell/
Source0: https://sourceforge.net/projects/hunspell/files/Hyphen/2.8/hyphen-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
hunspell hyphenation library to use converted TeX hyphenation patterns
%package -n %{libname}
Summary: A text hyphenation library
Group: System/Libraries
%description -n %{libname}
hunspell hyphenation library to use converted TeX hyphenation patterns
%package devel
Summary: Files for developing with hyphen
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
Includes and definitions for developing with hyphen
%prep
%setup -q -n hyphen-%{version}
%build
#autoreconf -fvi
%configure
make %{?_smp_mflags}
%install
%make_install
%check
make check
VALGRIND=memcheck make check
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING COPYING.LGPL COPYING.MPL
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
%dir %{_datadir}/hyphen
%{_libdir}/*.so.*
%{_libdir}/*.la
%{_datadir}/hyphen/hyph_*.dic
%files devel
%{_includedir}/hyphen.h
%{_libdir}/*.a
%{_libdir}/*.so
%{_bindir}/substrings.pl
%changelog