Tomáš Chvátal 2017-04-25 16:03:36 +00:00 committed by Git OBS Bridge
parent 66ecffab56
commit 904a332aac

View File

@ -17,6 +17,7 @@
%define _name hfstospell
%define libname libhfstospell10
Name: hfst-ospell
Version: 0.4.5
Release: 0
@ -35,14 +36,14 @@ BuildRequires: pkgconfig(libarchive)
Minimal HFST optimized lookup format based spell checker library and
a demonstrational implementation of command line based spell checker.
%package -n libhfstospell8
%package -n %{libname}
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
%description -n %{libname}
HFST spell checker Runtime libraries for hfst-ospell
%package -n hfst-ospell-devel
Summary: HFST spell checker development files
@ -59,6 +60,7 @@ Development headers and libraries for hfst-ospell
# disable libxml++ as upstream requires version 2.6
# disable tinyxml2 as upstream requires version < 3.0
%configure \
--disable-static \
--disable-silent-rules \
--without-libxmlpp \
--without-tinyxml2
@ -69,15 +71,19 @@ make %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
# 1 test is failing
make %{?_smp_mflags} check || :
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS NEWS README
%doc AUTHORS NEWS README COPYING
%{_bindir}/*
%{_mandir}/man1/*
%files -n libhfstospell8
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*
@ -87,7 +93,4 @@ make %{?_smp_mflags} check
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%post -n libhfstospell8 -p /sbin/ldconfig
%postun -n libhfstospell8 -p /sbin/ldconfig
%changelog