File mingw64-libexttextcat.spec of Package mingw64-libtextcat
#
# spec file for package mingw64-libexttextcat
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: mingw64-libexttextcat
Version: 3.2.0
Release: 0
Summary: Language detection library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://cgit.freedesktop.org/libreoffice/libexttextcat/
Source0: http://cgit.freedesktop.org/libreoffice/libexttextcat/snapshot/libexttextcat-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
libexttextcat is a library with functions that implement the classification
technic described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is
known to perform with near-perfect accuracy.
%package -n mingw64-libexttextcat0
Summary: Language detection library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libexttextcat0
libexttextcat is a library with functions that implement the classification
technic described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is
known to perform with near-perfect accuracy.
%package devel
Summary: Language detection library - development files
Group: Development/Libraries/C and C++
%description devel
libexttextcat is a library with functions that implement the classification
technic described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is
known to perform with near-perfect accuracy.
This package provides the files needed for building with libexttextcat.
%package tools
Summary: Language detection library - fingerprint generation utility
Group: Development/Libraries
%description tools
libexttextcat is a library with functions that implement the classification
technic described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is
known to perform with near-perfect accuracy.
This package contains 'createfp' for generating fingerprints
%package data
Summary: Language detection library - data files
Group: Development/Libraries
%description data
libexttextcat is a library with functions that implement the classification
technic described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is
known to perform with near-perfect accuracy.
This package provides the libexttextcat data files.
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n "libexttextcat-%{version}"
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
echo "ac_cv_func_malloc_0_nonnull=yes" >>%{_mingw64_cache}
echo "ac_cv_func_realloc_0_nonnull=yes" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared --disable-werror
make %{?_smp_mflags} || %{_mingw64_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libexttextcat0
%defattr(-,root,root)
%{_mingw64_bindir}/libexttextcat-0.dll
%files data
%defattr(-,root,root)
%{_mingw64_datadir}/libexttextcat/
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libexttextcat.dll.a
%{_mingw64_includedir}/libexttextcat/*.h
%{_mingw64_libdir}/pkgconfig/libexttextcat.pc
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/createfp.exe
%changelog