File liblept2.spec of Package liblept2
#
# spec file for package liblept2
#
# Copyright (c) 2011 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/
#
%define major 2
Name: liblept%{major}
Version: 1.68
Release: 0
License: Apache-2.0
Summary: Leptonica Library
Url: http://code.google.com/p/leptonica/
Group: System/Libraries
Source0: http://leptonica.googlecode.com/files/leptonica-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: giflib-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
%if 0%{?suse_version} >= 1210
BuildRequires: libwebp-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Library for efficient image processing and image analysis operations.
Authors:
--------
Dan Bloomberg <dan.bloomberg@gmail.com>
%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.
Authors:
--------
Dan Bloomberg <dan.bloomberg@gmail.com>
%package -n leptonica-tools
Summary: Leptonica tools
Group: Development/Tools/Other
%description -n leptonica-tools
Regression tests and example programs for Leptonica.
Authors:
--------
Dan Bloomberg <dan.bloomberg@gmail.com>
%prep
%setup -qn leptonica-%{version}
%build
autoreconf -fi
%configure --disable-static
%__make %{?_smp_mflags}
%install
%makeinstall
%__rm -f %{buildroot}%{_libdir}/*.la
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files -n liblept-devel
%defattr(-,root,root,-)
%doc leptonica-license.txt README.html version-notes.html moller52.jpg
%{_includedir}/leptonica
%{_libdir}/*.so
%files -n leptonica-tools
%defattr(-,root,root,-)
%doc leptonica-license.txt
%{_bindir}/*
%changelog