File exact-image.spec of Package exact-image
#
# spec file for package exact-image
#
# 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: exact-image
Version: 0.8.9
Release: 0
License: GPL-2.0
Summary: Fast Image Manipulation Programs
Url: http://www.exactcode.de/site/open_source/exactimage/
Group: Productivity/Graphics/Other
Source0: http://dl.exactcode.de/oss/%{name}/%{name}-%{version}.tar.bz2
Source1: http://svn.exactcode.de/ChangeLog-exact-image
# PATCH-FEATURE-UPSTREAM exact-image-0.7.5-manpages.patch daniel@debian.org -- manual pages from Debian project
Patch0: exact-image-0.7.5-manpages.patch
# PATCH-FIX-UPSTREAM libpng15.patch deb#635745 iwamatsu@nigauri.org -- fix build against libpng 1.5
Patch1: exact-image-0.8.8-libpng15.patch
BuildRequires: gcc-c++
BuildRequires: giflib-devel
BuildRequires: libexpat-devel
BuildRequires: libjasper-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig(OpenEXR)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(lcms)
BuildRequires: pkgconfig(libagg)
BuildRequires: pkgconfig(libpng)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: exactimage = %{version}
%description
ExactImage is a fast C++ image processing library. Unlike ImageMagick,
it allows operation in several color spaces and bit depths natively,
resulting in much lower memory and computational requirements. Some
optimized algorithms operate in 1/20 of the time ImageMagick requires,
and displaying large images can be as fast as 1/10 of the time
the "display" program takes.
This package contains the utilities: bardecode, e2mtiff, econvert,
edentify, empty-page, hocr2pdf, optimize2bw.
%prep
%setup -q
%patch0
%patch1 -p1
cp -p %{SOURCE1} .
%build
./configure \
--prefix=%{_prefix} \
--with-libungif=-lgif \
--without-evas \
--without-lua \
--without-perl \
--without-php \
--without-python \
--without-ruby \
--without-swig \
--without-x11 \
--disable-tga
make %{?_smp_mflags} CXXFLAGS="%{optflags} -Wno-sign-compare"
%install
%make_install
install -dm 0755 %{buildroot}%{_mandir}/{man1,man7}
install -m 0644 *.1 %{buildroot}%{_mandir}/man1/
install -m 0644 *.7 %{buildroot}%{_mandir}/man7/
%files
%defattr(-,root,root,-)
%doc ChangeLog-exact-image LICENSE README TODO
%{_bindir}/*
%doc %{_mandir}/man?/*
%changelog