File ImageMagick.spec of Package ImageMagick

# spec file for package [spectemplate]
# Copyright (c) 2010 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
# norootforbuild

%define vendor_release 5

%bcond_without TIFF

Name:           ImageMagick
Version:        6.6.8
Release:        5.1
Summary:        Convert, Edit, Or Compose Bitmap Images

Group:          Productivity/Graphics/Convertors
License:        Apache 2.0
Source0:        ImageMagick.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  fdupes pkg-config

%if %{with TIFF}
BuildRequires: libtiff-devel

# BuildArch:      noarch

ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. 
It can read and write images in a variety of formats (over 100) 
including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. 
Use ImageMagick 
to scale, flip, mirror, rotate, distort, shear and transform images, adjust image colors, 
apply various special effects, or draw text, lines, polygons, ellipses and B├ęzier curves.

%package devel
Requires: %{name}-libs4 = %{version} libbz2-devel glibc-devel gcc45 libtool
Summary: Header files and libraries for ImageMagick
Group:          Development/Libraries/C and C++

%description devel
Header files and libraries for ImageMagick to use in your own programs

%package doc
Summary: Documentation for ImageMagick
BuildArch: noarch

%description doc
Documentation for ImageMagick (mostly in HTML form)

%package libs4
Summary: ImageMagick run-time libraries
Group:          Development/Libraries/C and C++

%description libs4
Run-time libraries used by ImageMagick tools

%setup -q -n '%{name}-%{version}-%{vendor_release}'

%configure CFLAGS=-g
make %{?_smp_mflags}

make install 'DESTDIR=%{buildroot}'
%fdupes '%{buildroot}%{_includedir}'
%fdupes '%{buildroot}%{_datadir}'

rm -rf %{buildroot}

%post libs4

%postun libs4


%files libs4

%files devel

%files doc
%doc %{_datadir}/doc/*
%doc %{_datadir}/%{name}-%{version}
%doc %{_mandir}/man1/*