File liblept2.spec of Package liblept2

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

Name:           liblept2
Version:        1.68
Release:        0
Summary:        Leptonica Library
License:        Apache-2.0
Group:          System/Libraries
Source1:        baselibs.conf
BuildRequires:  giflib-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  libtool
%if 0%{?suse_version} >= 1210
BuildRequires:  pkgconfig(libwebp)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Library for efficient image processing and image analysis operations.

%package -n liblept-devel
Summary:        Leptonica Development Files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description -n liblept-devel
Development files for Leptonica library.

%package -n leptonica-tools
Summary:        Leptonica tools
Group:          Productivity/Graphics/Other

%description -n leptonica-tools
Programs for manipulating images.

%setup -qn leptonica-%{version}

autoreconf -fi
%configure \
    --disable-static \
make %{?_smp_mflags}

rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_bindir}/{*gen,*reg,*test*}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files -n liblept-devel
%doc leptonica-license.txt README.html version-notes.html moller52.jpg

%files -n leptonica-tools
%doc leptonica-license.txt