File libexttextcat.spec of Package libexttextcat.23270

# spec file for package libexttextcat
# Copyright (c) 2018 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

%define libname libexttextcat-2_0-0
Name:           libexttextcat
Version:        3.4.5
Release:        0
Summary:        Text categorization library datafiles and documents
License:        BSD-4-Clause
Group:          Productivity/Text/Convertors
BuildRequires:  pkgconfig
BuildRequires:  xz
Obsoletes:      libtextcat < 3.2.0
Provides:       libtextcat = %{version}

The %{name} is a library implementing N-gram-based text categorization

%package -n %{libname}
Summary:        Text categorization library
Group:          System/Libraries
Requires:       %{name} = %{version}

%description -n %{libname}
The %{name} is a library implementing N-gram-based text categorization

%package devel
Summary:        Files for Developing with %{name}
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}
Obsoletes:      libtextcat-devel < 3.2.0
Provides:       libtextcat-devel = %{version}

%description devel
The %{name} is a library implementing N-gram-based text categorization

This package contains the libexttextcat development files.

%package tools
Summary:        Tool for creating custom document fingerprints
Group:          Productivity/Text/Convertors

%description tools
The %{name}-tools package contains the createfp program that allows
you to easily create your own document fingerprints.

%setup -q

%configure \
	--disable-static \
	--disable-werror \
make %{?_smp_mflags} V=1


find %{buildroot} -type f -name "*.la" -delete -print

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig


%files -n %{libname}

%files devel
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi

%files tools

openSUSE Build Service is sponsored by