2007-01-15 22:49:14 +00:00
|
|
|
#
|
2011-02-23 16:53:30 +00:00
|
|
|
# spec file for package ImageMagick
|
2007-01-15 22:49:14 +00:00
|
|
|
#
|
2020-01-02 16:13:42 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-15 22:49:14 +00:00
|
|
|
#
|
2008-09-13 08:18:48 +00:00
|
|
|
# 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.
|
|
|
|
|
- version update to 7.0.8.41
* Fixed a number of issues (reference
https://github.com/ImageMagick/ImageMagick/issues).
* Honor SOURCE_DATE_EPOCH environment variable (reference
https://github.com/ImageMagick/ImageMagick/pull/1496/).
* Standardize on UTC time for any image format timestamp.
* Add MagickAutoThresholdImage(), MagickCannyEdgeImage(),
MagickComplexImages(), MagickConnectedComponentsImage(),
MagickHoughLineImage(), MagickKuwaharaImage(), MagickLevelizeImageColors(),
MagickLevelImageColors(), MagickMeanShiftImage(), MagickPolynomialImage(),
MagickRangeThresholdImage(), MagickSetSeed(), MagickWaveletDenoiseImage()
methods to MagickWand API.
OBS-URL: https://build.opensuse.org/package/show/graphics/ImageMagick?expand=0&rev=433
2019-04-23 14:26:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 22:49:14 +00:00
|
|
|
#
|
|
|
|
|
2012-03-12 11:12:33 +00:00
|
|
|
|
2019-02-28 12:08:25 +00:00
|
|
|
%define debug_build 0
|
|
|
|
%define asan_build 0
|
|
|
|
%define maj 7
|
2020-03-09 08:19:18 +00:00
|
|
|
%define mfr_version %{maj}.0.10
|
2020-06-30 06:56:24 +00:00
|
|
|
%define mfr_revision 22
|
2019-02-28 12:08:25 +00:00
|
|
|
%define quantum_depth 16
|
2011-04-26 13:18:27 +00:00
|
|
|
%define source_version %{mfr_version}-%{mfr_revision}
|
2019-10-30 09:52:40 +00:00
|
|
|
%define clibver 7
|
|
|
|
%define cwandver 7
|
2019-02-28 12:08:25 +00:00
|
|
|
%define cxxlibver 4
|
|
|
|
%define libspec -%{maj}_Q%{quantum_depth}HDRI
|
2019-03-04 12:43:00 +00:00
|
|
|
%define config_dir ImageMagick-7
|
|
|
|
%define config_spec config-7
|
2018-04-10 17:22:37 +00:00
|
|
|
# bsc#1088463
|
|
|
|
%define urw_base35_fonts 0
|
|
|
|
|
2017-08-30 08:09:59 +00:00
|
|
|
Name: ImageMagick
|
2012-03-27 17:38:35 +00:00
|
|
|
Version: %{mfr_version}.%{mfr_revision}
|
|
|
|
Release: 0
|
2007-01-15 22:49:14 +00:00
|
|
|
Summary: Viewer and Converter for Images
|
2016-05-17 09:26:57 +00:00
|
|
|
License: ImageMagick
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2019-12-20 09:34:24 +00:00
|
|
|
URL: https://imagemagick.org/
|
|
|
|
Source0: https://imagemagick.org/download/ImageMagick-%{mfr_version}-%{mfr_revision}.tar.bz2
|
2017-03-29 08:10:26 +00:00
|
|
|
Source1: baselibs.conf
|
2019-12-20 09:34:24 +00:00
|
|
|
Source2: https://imagemagick.org/download/ImageMagick-%{mfr_version}-%{mfr_revision}.tar.bz2.asc
|
2017-03-29 08:10:26 +00:00
|
|
|
Source3: ImageMagick.keyring
|
2013-03-29 11:57:22 +00:00
|
|
|
# suse specific patches
|
2019-02-28 12:08:25 +00:00
|
|
|
Patch0: ImageMagick-configuration-SUSE.patch
|
2017-08-28 15:08:56 +00:00
|
|
|
Patch2: ImageMagick-library-installable-in-parallel.patch
|
2018-02-21 13:41:00 +00:00
|
|
|
#%%ifarch s390x s390 ppc64 ppc
|
2017-10-16 10:34:37 +00:00
|
|
|
Patch3: ImageMagick-s390-disable-tests.patch
|
2017-10-23 09:30:38 +00:00
|
|
|
#%%endif
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libwmf-devel
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: xdg-utils
|
2020-05-04 09:28:22 +00:00
|
|
|
BuildRequires: xz-devel
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: zip
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
BuildRequires: dejavu-fonts
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
BuildRequires: libjbig-devel
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1315
|
2018-07-03 04:45:30 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
BuildRequires: p7zip-full
|
|
|
|
%else
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: p7zip
|
2018-07-03 04:45:30 +00:00
|
|
|
%endif
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig(OpenEXR)
|
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(ddjvuapi)
|
|
|
|
BuildRequires: pkgconfig(fftw3)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libexif)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4) >= 4.0.3
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
|
|
|
BuildRequires: pkgconfig(libwebpmux)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(pango)
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} > 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig(ijs)
|
2018-04-10 17:22:37 +00:00
|
|
|
# bsc#1088463
|
|
|
|
%if %{urw_base35_fonts}
|
|
|
|
BuildRequires: urw-base35-fonts
|
|
|
|
%else
|
|
|
|
BuildRequires: ghostscript-fonts-other
|
|
|
|
BuildRequires: ghostscript-fonts-std
|
|
|
|
%endif
|
2017-09-26 10:28:34 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: ghostscript-fonts-other
|
|
|
|
BuildRequires: ghostscript-fonts-std
|
|
|
|
BuildRequires: ghostscript-library
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig(libopenjp2) >= 2.1.0
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig(lqr-1)
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: ghostscript-fonts-other
|
|
|
|
BuildRequires: ghostscript-fonts-std
|
|
|
|
BuildRequires: ghostscript-library
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libdjvulibre-devel
|
|
|
|
BuildRequires: libexif-devel
|
|
|
|
BuildRequires: librsvg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libxml-devel
|
|
|
|
BuildRequires: perl-parent
|
2018-02-20 09:08:10 +00:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2011-04-27 07:19:28 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%package -n perl-PerlMagick
|
2017-08-30 08:09:59 +00:00
|
|
|
Summary: Perl interface for ImageMagick
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-08-07 13:07:16 +00:00
|
|
|
Requires: ImageMagick = %{version}
|
2017-03-29 08:10:26 +00:00
|
|
|
Requires: libMagickCore%{libspec}%{clibver} = %{version}
|
2012-08-07 13:07:16 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%package devel
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: Development files for ImageMagick's C interface
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-08-30 08:09:59 +00:00
|
|
|
Requires: ImageMagick = %{version}
|
2012-01-18 15:42:44 +00:00
|
|
|
Requires: glibc-devel
|
2017-08-30 08:09:59 +00:00
|
|
|
Requires: libMagickCore%{libspec}%{clibver} = %{version}
|
|
|
|
Requires: libMagickWand%{libspec}%{cwandver} = %{version}
|
2012-01-19 15:30:44 +00:00
|
|
|
# bnc#741947:
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
Requires: pkgconfig(bzip2)
|
2017-09-26 10:28:34 +00:00
|
|
|
%else
|
|
|
|
Requires: libbz2-devel
|
|
|
|
%endif
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2018-10-31 08:35:42 +00:00
|
|
|
%if !%{debug_build}
|
2007-07-27 10:11:34 +00:00
|
|
|
%package extra
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: Extra codecs for the ImageMagick image viewer/converter
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2017-08-30 08:09:59 +00:00
|
|
|
Requires: ImageMagick = %{version}
|
|
|
|
Requires: libMagickCore%{libspec}%{clibver} = %{version}
|
|
|
|
Recommends: autotrace
|
|
|
|
Recommends: dcraw
|
|
|
|
Recommends: hp2xx
|
|
|
|
Recommends: libwmf
|
|
|
|
Recommends: netpbm
|
|
|
|
Recommends: transfig
|
2018-10-31 08:35:42 +00:00
|
|
|
%endif
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%package -n libMagickCore%{libspec}%{clibver}
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: C runtime library for ImageMagick
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2017-10-16 08:54:07 +00:00
|
|
|
Recommends: ghostscript
|
2019-02-28 12:08:25 +00:00
|
|
|
Suggests: %{name}-extra = %{version}
|
2019-03-04 12:47:18 +00:00
|
|
|
Requires: imagick-%{config_spec}
|
|
|
|
Recommends: %{config_spec}-SUSE
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%package -n libMagickWand%{libspec}%{cwandver}
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: C runtime library for ImageMagick
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%package -n libMagick++%{libspec}%{cxxlibver}
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: C++ interface runtime library for ImageMagick
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-02-28 12:08:25 +00:00
|
|
|
Requires: %{name}
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2007-07-27 10:11:34 +00:00
|
|
|
%package -n libMagick++-devel
|
2017-10-03 17:54:19 +00:00
|
|
|
Summary: Development files for ImageMagick's C++ interface
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-08-30 08:09:59 +00:00
|
|
|
Requires: libMagick++%{libspec}%{cxxlibver} = %{version}
|
|
|
|
Requires: libstdc++-devel
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-08-31 11:52:59 +00:00
|
|
|
Requires: pkgconfig(ImageMagick) = %{mfr_version}
|
2017-09-26 10:28:34 +00:00
|
|
|
%else
|
2019-02-28 12:08:25 +00:00
|
|
|
Requires: %{name}-devel = %{version}
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2007-09-25 19:09:12 +00:00
|
|
|
|
2009-08-28 18:20:14 +00:00
|
|
|
%package doc
|
2012-03-27 17:38:35 +00:00
|
|
|
Summary: Document Files for ImageMagick Library
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Documentation/HTML
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2010-02-11 18:41:27 +00:00
|
|
|
BuildArch: noarch
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2009-08-28 18:20:14 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%package %{config_spec}-upstream
|
2019-02-28 12:08:25 +00:00
|
|
|
Summary: Upstream Configuration Files
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-03-04 12:43:00 +00:00
|
|
|
Provides: imagick-%{config_spec}
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%package %{config_spec}-SUSE
|
2019-02-28 12:08:25 +00:00
|
|
|
Summary: Upstream Configuration Files
|
2019-10-18 09:15:49 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-03-04 12:43:00 +00:00
|
|
|
Provides: imagick-%{config_spec}
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2014-02-26 20:45:13 +00:00
|
|
|
%description
|
|
|
|
ImageMagick is a robust collection of tools and libraries to read,
|
|
|
|
write, and manipulate an image in many image formats, including popular
|
|
|
|
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
|
|
|
|
you can create images dynamically, making it suitable for Web
|
|
|
|
applications. You can also resize, rotate, sharpen, color-reduce, or
|
|
|
|
add special effects to an image and save your completed work in many
|
|
|
|
different image formats. Image processing operations are available from
|
2017-10-03 17:54:19 +00:00
|
|
|
the command line as well as through C, C++, and Perl-based programming
|
2014-02-26 20:45:13 +00:00
|
|
|
interfaces.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
ImageMagick is a robust collection of tools and libraries to read,
|
|
|
|
write, and manipulate an image in many image formats, including popular
|
|
|
|
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
|
|
|
|
you can create images dynamically, making it suitable for Web
|
|
|
|
applications. You can also resize, rotate, sharpen, color-reduce, or
|
|
|
|
add special effects to an image and save your completed work in many
|
|
|
|
different image formats. Image processing operations are available from
|
2017-10-03 17:54:19 +00:00
|
|
|
the command line as well as through C, C++, and Perl-based programming
|
2014-02-26 20:45:13 +00:00
|
|
|
interfaces.
|
|
|
|
|
2018-10-31 08:35:42 +00:00
|
|
|
%if !%{debug_build}
|
2014-02-26 20:45:13 +00:00
|
|
|
%description extra
|
|
|
|
This package adds support for djvu, wmf and jpeg2000 formats and
|
|
|
|
installs optional helper applications.
|
|
|
|
|
|
|
|
ImageMagick is a robust collection of tools and libraries to read,
|
|
|
|
write, and manipulate an image in many image formats, including popular
|
|
|
|
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
|
|
|
|
you can create images dynamically, making it suitable for Web
|
|
|
|
applications. You can also resize, rotate, sharpen, color-reduce, or
|
|
|
|
add special effects to an image and save your completed work in many
|
|
|
|
different image formats. Image processing operations are available from
|
2017-10-03 17:54:19 +00:00
|
|
|
the command line as well as through C, C++, and Perl-based programming
|
2014-02-26 20:45:13 +00:00
|
|
|
interfaces.
|
2018-10-31 08:35:42 +00:00
|
|
|
%endif
|
2014-02-26 20:45:13 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%description -n libMagickCore%{libspec}%{clibver}
|
2014-02-26 20:45:13 +00:00
|
|
|
ImageMagick is a robust collection of tools and libraries to read,
|
|
|
|
write, and manipulate an image in many image formats, including popular
|
|
|
|
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
|
|
|
|
you can create images dynamically, making it suitable for Web
|
|
|
|
applications. You can also resize, rotate, sharpen, color-reduce, or
|
|
|
|
add special effects to an image and save your completed work in many
|
|
|
|
different image formats. Image processing operations are available from
|
2017-10-03 17:54:19 +00:00
|
|
|
the command line as well as through C, C++, and Perl-based programming
|
2014-02-26 20:45:13 +00:00
|
|
|
interfaces.
|
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%description -n libMagickWand%{libspec}%{cwandver}
|
2014-02-26 20:45:13 +00:00
|
|
|
ImageMagick is a robust collection of tools and libraries to read,
|
|
|
|
write, and manipulate an image in many image formats, including popular
|
|
|
|
formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick,
|
|
|
|
you can create images dynamically, making it suitable for Web
|
|
|
|
applications. You can also resize, rotate, sharpen, color-reduce, or
|
|
|
|
add special effects to an image and save your completed work in many
|
|
|
|
different image formats. Image processing operations are available from
|
2017-10-03 17:54:19 +00:00
|
|
|
the command line as well as through C, C++, and Perl-based programming
|
2014-02-26 20:45:13 +00:00
|
|
|
interfaces.
|
|
|
|
|
|
|
|
%description -n perl-PerlMagick
|
|
|
|
PerlMagick is an objected-oriented Perl interface to ImageMagick. Use
|
|
|
|
the module to read, manipulate, or write an image or image sequence
|
|
|
|
from within a Perl script. This makes it suitable for Web CGI scripts.
|
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%description -n libMagick++%{libspec}%{cxxlibver}
|
2014-02-26 20:45:13 +00:00
|
|
|
This is Magick++, the object-oriented C++ API for the ImageMagick
|
|
|
|
image-processing library.
|
|
|
|
|
|
|
|
Magick++ supports an object model inspired by PerlMagick. Magick++
|
|
|
|
should be faster than PerlMagick since it is written in a compiled
|
|
|
|
language which is not parsed at run-time. This makes it suitable for
|
|
|
|
Web CGI programs. Images support implicit reference counting so that
|
|
|
|
copy constructors and assignment incur almost no cost. The cost of
|
|
|
|
actually copying an image (if necessary) is done just before
|
|
|
|
modification and this copy is managed automatically by Magick++.
|
|
|
|
De-referenced copies are automatically deleted. The image objects
|
|
|
|
support value (rather than pointer) semantics so it is trivial to
|
|
|
|
support multiple generations of an image in memory at one time.
|
|
|
|
|
|
|
|
%description -n libMagick++-devel
|
|
|
|
This is Magick++, the object-oriented C++ API for the ImageMagick
|
|
|
|
image-processing library.
|
|
|
|
|
|
|
|
Magick++ supports an object model inspired by PerlMagick. Magick++
|
|
|
|
should be faster than PerlMagick since it is written in a compiled
|
|
|
|
language which is not parsed at run-time. This makes it suitable for
|
|
|
|
Web CGI programs. Images support implicit reference counting so that
|
|
|
|
copy constructors and assignment incur almost no cost. The cost of
|
|
|
|
actually copying an image (if necessary) is done just before
|
|
|
|
modification and this copy is managed automatically by Magick++.
|
|
|
|
De-referenced copies are automatically deleted. The image objects
|
|
|
|
support value (rather than pointer) semantics so it is trivial to
|
|
|
|
support multiple generations of an image in memory at one time.
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
HTML documentation for ImageMagick library and scene examples.
|
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%description %{config_spec}-upstream
|
|
|
|
ImageMagick configuration as supplied by upstream. It does not
|
|
|
|
provide any security restrictions. ImageMagick will be vulnerable
|
|
|
|
for example by ImageTragick or PS/PDF coder issues. It should
|
|
|
|
be used in trusted environment. Version or maintenance updates
|
|
|
|
will not overwrite user changes in system configuration.
|
|
|
|
|
|
|
|
%description %{config_spec}-SUSE
|
|
|
|
ImageMagick configuration as provide by SUSE. It is more security
|
|
|
|
aware than config-upstream variant. It does disable some coders,
|
|
|
|
that are insecure by design to prevent user to use them
|
|
|
|
inadvertently. Configuration can be subject of change by future
|
|
|
|
version and maintenance updates and system changes will not be
|
|
|
|
preserved.
|
|
|
|
|
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%prep
|
2014-05-27 14:02:17 +00:00
|
|
|
%setup -q -n ImageMagick-%{source_version}
|
2017-08-28 15:08:56 +00:00
|
|
|
%patch2 -p1
|
2018-01-03 16:01:12 +00:00
|
|
|
%ifarch s390x s390 ppc ppc64
|
2017-10-16 10:34:37 +00:00
|
|
|
%patch3 -p1
|
|
|
|
%endif
|
2015-07-24 14:48:42 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%build
|
2018-04-10 17:22:37 +00:00
|
|
|
# bsc#1088463
|
|
|
|
%if %{urw_base35_fonts}
|
|
|
|
sed -i 's:type1:otf:' config/type-urw-base35.xml.in
|
|
|
|
sed -i 's:metrics=[^ ]*::' config/type-urw-base35.xml.in
|
|
|
|
sed -i 's:\.t1:.otf:' config/type-urw-base35.xml.in
|
|
|
|
%endif
|
2017-08-28 15:08:56 +00:00
|
|
|
# make library binary package parallel installable
|
|
|
|
export MODULES_DIRNAME="modules%{libspec}%{clibver}"
|
|
|
|
export SHAREARCH_DIRNAME="config%{libspec}%{clibver}"
|
2018-10-31 08:35:42 +00:00
|
|
|
%if %{debug_build}
|
|
|
|
export CFLAGS="%{optflags} -O0"
|
|
|
|
export CXXFLAGS="%{optflags} -O0"
|
|
|
|
%endif
|
2017-03-29 08:10:26 +00:00
|
|
|
%configure \
|
2017-08-30 08:09:59 +00:00
|
|
|
--disable-silent-rules \
|
2010-02-11 18:41:27 +00:00
|
|
|
--enable-shared \
|
|
|
|
--without-frozenpaths \
|
|
|
|
--with-magick_plus_plus \
|
2018-10-31 08:35:42 +00:00
|
|
|
%if !%{debug_build}
|
2010-02-11 18:41:27 +00:00
|
|
|
--with-modules \
|
2018-10-31 08:35:42 +00:00
|
|
|
%else
|
|
|
|
--without-modules \
|
|
|
|
%endif
|
2010-02-11 18:41:27 +00:00
|
|
|
--with-threads \
|
2018-04-10 17:22:37 +00:00
|
|
|
%if %{urw_base35_fonts}
|
|
|
|
--with-urw-base35-font-dir=/usr/share/fonts/truetype \
|
|
|
|
%else
|
|
|
|
--with-gs-font-dir=/usr/share/fonts/ghostscript \
|
|
|
|
%endif
|
2013-03-29 11:57:22 +00:00
|
|
|
--with-perl \
|
2017-08-30 08:09:59 +00:00
|
|
|
--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='gcc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
|
2010-02-11 18:41:27 +00:00
|
|
|
--disable-static \
|
2017-08-30 08:09:59 +00:00
|
|
|
--with-gvc \
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-djvu \
|
2017-08-30 08:09:59 +00:00
|
|
|
--with-lcms \
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-jbig \
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} > 1315
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-openjp2 \
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-openexr \
|
|
|
|
--with-rsvg \
|
|
|
|
--with-webp \
|
|
|
|
--with-wmf \
|
2014-12-15 11:00:50 +00:00
|
|
|
--with-quantum-depth=%{quantum_depth} \
|
2016-06-06 09:03:41 +00:00
|
|
|
--without-gcc-arch \
|
|
|
|
--enable-pipes=no \
|
2017-09-26 10:28:34 +00:00
|
|
|
--enable-reproducible-build=yes \
|
|
|
|
--disable-openmp
|
2018-10-22 09:43:10 +00:00
|
|
|
%if %{asan_build}
|
|
|
|
sed -i -e 's/\(^CFLAGS.*\)/\1 -fsanitize=address/' \
|
|
|
|
-e 's/\(^LIBS =.*\)/\1 -lasan/' \
|
|
|
|
Makefile
|
|
|
|
%endif
|
2013-03-29 11:57:22 +00:00
|
|
|
# don't build together, PerlMagick could be miscompiled when using parallel build[1]
|
|
|
|
# [1] http://pkgs.fedoraproject.org/cgit/ImageMagick.git/tree/ImageMagick.spec
|
2012-03-27 17:38:35 +00:00
|
|
|
make %{?_smp_mflags} all
|
2014-01-08 15:29:03 +00:00
|
|
|
make -j1 perl-build
|
2017-03-29 08:10:26 +00:00
|
|
|
# mostly because */demo is used later with %check
|
|
|
|
# polutting dir with .libs etc.
|
|
|
|
cp -r Magick++/demo Magick++/examples
|
|
|
|
cp -r PerlMagick/demo PerlMagick/examples
|
|
|
|
# other improvements
|
|
|
|
chmod -x PerlMagick/demo/*.pl
|
2013-01-10 16:25:05 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-28 08:02:07 +00:00
|
|
|
%if %{debug_build} || %{asan_build}
|
|
|
|
# testsuite does not succeed for some reason
|
2018-10-31 08:35:42 +00:00
|
|
|
# research TODO
|
|
|
|
exit 0
|
|
|
|
%endif
|
2018-04-04 13:44:59 +00:00
|
|
|
%ifarch i586
|
2019-05-29 12:12:53 +00:00
|
|
|
# do not report test issues related to 32-bit architectures upstream,
|
|
|
|
# they do not want to dedicate any time to fix them:
|
2018-07-17 08:05:47 +00:00
|
|
|
# https://github.com/ImageMagick/ImageMagick/issues/1215
|
|
|
|
rm PerlMagick/t/montage.t
|
2019-05-29 12:12:53 +00:00
|
|
|
sed -i -e 's:averageImages ::' -e 's:1..13:1..12:' Magick++/tests/tests.tap
|
2018-04-04 13:44:59 +00:00
|
|
|
%endif
|
2017-08-30 08:09:59 +00:00
|
|
|
make %{?_smp_mflags} check
|
2013-01-10 16:25:05 +00:00
|
|
|
export MAGICK_CODER_MODULE_PATH=$PWD/coders/.libs
|
|
|
|
export MAGICK_CODER_FILTER_PATH=$PWD/filters/.libs
|
|
|
|
export MAGICK_CONFIGURE_PATH=$PWD/config
|
|
|
|
cd PerlMagick
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-08-30 08:09:59 +00:00
|
|
|
make %{?_smp_mflags} test
|
2017-09-26 10:28:34 +00:00
|
|
|
%else
|
|
|
|
make test_dynamic
|
|
|
|
%endif
|
2017-03-29 08:10:26 +00:00
|
|
|
cd ..
|
2007-12-02 14:57:16 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%install
|
2017-10-03 17:58:56 +00:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-10-03 17:54:19 +00:00
|
|
|
%make_install pkgdocdir=%{_defaultdocdir}/%{name}-%{maj}/
|
2017-10-03 17:58:56 +00:00
|
|
|
%else
|
|
|
|
make install \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
pkgdocdir=%{_defaultdocdir}/%{name}-%{maj}/
|
|
|
|
%endif
|
2019-02-28 12:08:25 +00:00
|
|
|
# configuration magic
|
|
|
|
mv -t %{buildroot}%{_sysconfdir}/%{name}* %{buildroot}%{_datadir}/%{name}*/*.xml
|
|
|
|
mv %{buildroot}%{_sysconfdir}/%{config_dir}{,-upstream}
|
|
|
|
cp -r %{buildroot}%{_sysconfdir}/%{config_dir}{-upstream,-SUSE}
|
|
|
|
patch --dir %{buildroot}%{_sysconfdir}/%{config_dir}-SUSE < %{PATCH0}
|
2019-03-04 12:43:00 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/%{config_dir} %{buildroot}%{_sysconfdir}/%{config_dir}
|
2017-03-29 08:10:26 +00:00
|
|
|
# symlink header file relative to /usr/include/ImageMagick-7/
|
|
|
|
# so that inclusions like wand/*.h and magick/*.h work
|
|
|
|
ln -s ./MagickCore %{buildroot}%{_includedir}/%{name}-%{maj}/magick
|
|
|
|
ln -s ./MagickWand %{buildroot}%{_includedir}/%{name}-%{maj}/wand
|
|
|
|
# these will be included via %doc
|
|
|
|
rm -r %{buildroot}%{_datadir}/doc/%{name}-%{maj}/
|
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
|
|
|
# remove RPATH from perl module
|
2017-08-30 08:09:59 +00:00
|
|
|
perl_module=$(find %{buildroot}%{_prefix}/lib/perl5 -name '*.so')
|
2017-03-29 08:10:26 +00:00
|
|
|
chmod 755 $perl_module
|
|
|
|
chrpath -d $perl_module
|
|
|
|
chmod 555 $perl_module
|
|
|
|
# remove %%{buildroot} from distributed file
|
2017-08-28 15:08:56 +00:00
|
|
|
sed -i 's:%{buildroot}::' %{buildroot}/%{_libdir}/ImageMagick-%{mfr_version}/config%{libspec}%{clibver}/configure.xml
|
2015-07-24 14:48:42 +00:00
|
|
|
#remove duplicates
|
2017-03-29 08:10:26 +00:00
|
|
|
%fdupes -s %{buildroot}%{_defaultdocdir}/%{name}-%{maj}
|
2015-07-24 14:48:42 +00:00
|
|
|
%fdupes -s %{buildroot}%{_includedir}/%{name}-%{maj}
|
|
|
|
%fdupes -s %{buildroot}%{_libdir}/pkgconfig
|
2017-03-29 08:10:26 +00:00
|
|
|
%perl_process_packlist
|
2007-01-15 22:49:14 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%post -n libMagickCore%{libspec}%{clibver} -p /sbin/ldconfig
|
|
|
|
%postun -n libMagickCore%{libspec}%{clibver} -p /sbin/ldconfig
|
|
|
|
%post -n libMagickWand%{libspec}%{cwandver} -p /sbin/ldconfig
|
|
|
|
%postun -n libMagickWand%{libspec}%{cwandver} -p /sbin/ldconfig
|
|
|
|
%post -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
|
|
|
%postun -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
2007-01-15 22:49:14 +00:00
|
|
|
|
2019-03-18 13:06:52 +00:00
|
|
|
%pretrans %{config_spec}-upstream -p <lua>
|
2019-03-18 13:27:46 +00:00
|
|
|
-- this %pretrans to be removed soon [bug#1122033#c37]
|
2019-03-18 13:06:52 +00:00
|
|
|
path = "%{_sysconfdir}/%{config_dir}"
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "directory" then
|
|
|
|
os.remove(path .. ".rpmmoved")
|
|
|
|
os.rename(path, path .. ".rpmmoved")
|
|
|
|
end
|
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%post %{config_spec}-upstream
|
2020-05-19 17:03:33 +00:00
|
|
|
%{_sbindir}/update-alternatives --quiet --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%postun %{config_spec}-upstream
|
|
|
|
if [ ! -d %{_sysconfdir}/%{config_dir}-upstream ] ; then
|
2020-05-19 17:03:33 +00:00
|
|
|
%{_sbindir}/update-alternatives -quiet --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream
|
2019-03-04 12:43:00 +00:00
|
|
|
fi
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2019-03-18 13:06:52 +00:00
|
|
|
%pretrans %{config_spec}-SUSE -p <lua>
|
2019-03-18 13:27:46 +00:00
|
|
|
-- this %pretrans to be removed soon [bug#1122033#c37]
|
2019-03-18 13:06:52 +00:00
|
|
|
path = "%{_sysconfdir}/%{config_dir}"
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "directory" then
|
|
|
|
os.remove(path .. ".rpmmoved")
|
|
|
|
os.rename(path, path .. ".rpmmoved")
|
|
|
|
end
|
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%post %{config_spec}-SUSE
|
2020-05-19 17:03:33 +00:00
|
|
|
%{_sbindir}/update-alternatives --quiet --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-SUSE 10
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%postun %{config_spec}-SUSE
|
|
|
|
if [ ! -d %{_sysconfdir}/%{config_dir}-SUSE ] ; then
|
2020-05-19 17:03:33 +00:00
|
|
|
%{_sbindir}/update-alternatives --quiet --remove %{config_dir} %{_sysconfdir}/%{config_dir}-SUSE
|
2019-03-04 12:43:00 +00:00
|
|
|
fi
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%files
|
2018-04-10 17:15:14 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc ChangeLog NEWS.txt
|
2010-02-11 18:41:27 +00:00
|
|
|
%{_bindir}/[^MW]*
|
2017-08-30 08:09:59 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%exclude %{_mandir}/man1/*-config.1%{ext_man}
|
2007-07-27 10:11:34 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%files -n libMagickCore%{libspec}%{clibver}
|
2018-04-10 17:15:14 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc ChangeLog NEWS.txt
|
2017-08-30 08:09:59 +00:00
|
|
|
%{_libdir}/libMagickCore*.so.%{clibver}*
|
2007-01-15 22:49:14 +00:00
|
|
|
%dir %{_libdir}/ImageMagick*
|
2018-10-31 08:35:42 +00:00
|
|
|
%if !%{debug_build}
|
2007-01-15 22:49:14 +00:00
|
|
|
%dir %{_libdir}/ImageMagick*/modules*
|
|
|
|
%dir %{_libdir}/ImageMagick*/modules*/*
|
2007-07-27 10:11:34 +00:00
|
|
|
%exclude %{_libdir}/ImageMagick*/modules*/*/wmf.*
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} > 1315
|
2007-07-27 10:11:34 +00:00
|
|
|
%exclude %{_libdir}/ImageMagick*/modules*/*/jp2.*
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2007-07-27 10:11:34 +00:00
|
|
|
%exclude %{_libdir}/ImageMagick*/modules*/*/djvu.*
|
2012-03-27 17:38:35 +00:00
|
|
|
%{_libdir}/ImageMagick*/modules*/*/*.so
|
2010-02-18 09:39:27 +00:00
|
|
|
# don't remove la files, see bnc#579798
|
|
|
|
%{_libdir}/ImageMagick*/modules*/*/*.la
|
2018-10-31 08:35:42 +00:00
|
|
|
%endif
|
2013-03-29 11:57:22 +00:00
|
|
|
%{_libdir}/ImageMagick*/config*
|
2007-01-15 22:49:14 +00:00
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%files -n libMagickWand%{libspec}%{cwandver}
|
|
|
|
%{_libdir}/libMagickWand*.so.%{cwandver}*
|
2007-07-27 10:11:34 +00:00
|
|
|
|
2018-10-31 08:35:42 +00:00
|
|
|
%if !%{debug_build}
|
2007-07-27 10:11:34 +00:00
|
|
|
%files extra
|
|
|
|
%{_libdir}/ImageMagick*/modules*/*/wmf.so
|
2010-02-18 09:39:27 +00:00
|
|
|
# don't remove la files, see bnc#579798
|
2017-09-26 10:28:34 +00:00
|
|
|
%if 0%{?suse_version} > 1315
|
2007-07-27 10:11:34 +00:00
|
|
|
%{_libdir}/ImageMagick*/modules*/*/jp2.so
|
2010-02-18 09:39:27 +00:00
|
|
|
%{_libdir}/ImageMagick*/modules*/*/jp2.la
|
2017-09-26 10:28:34 +00:00
|
|
|
%endif
|
2007-07-27 10:11:34 +00:00
|
|
|
%{_libdir}/ImageMagick*/modules*/*/djvu.so
|
2010-02-18 09:39:27 +00:00
|
|
|
%{_libdir}/ImageMagick*/modules*/*/djvu.la
|
2018-10-31 08:35:42 +00:00
|
|
|
%endif
|
2007-07-27 10:11:34 +00:00
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%files devel
|
2013-03-29 11:57:22 +00:00
|
|
|
%{_libdir}/libMagickCore*.so
|
|
|
|
%{_libdir}/libMagickWand*.so
|
|
|
|
%dir %{_includedir}/ImageMagick*
|
2017-03-29 08:10:26 +00:00
|
|
|
%{_includedir}/ImageMagick*/MagickCore
|
|
|
|
%{_includedir}/ImageMagick*/MagickWand
|
2013-03-29 11:57:22 +00:00
|
|
|
%{_includedir}/ImageMagick*/magick
|
|
|
|
%{_includedir}/ImageMagick*/wand
|
2010-02-11 18:41:27 +00:00
|
|
|
%{_bindir}/MagickCore-config
|
|
|
|
%{_bindir}/MagickWand-config
|
2013-03-29 11:57:22 +00:00
|
|
|
%{_libdir}/pkgconfig/MagickCore*.pc
|
2017-03-29 08:10:26 +00:00
|
|
|
%{_libdir}/pkgconfig/ImageMagick*.pc
|
|
|
|
%{_libdir}/pkgconfig/MagickWand*.pc
|
2017-08-30 08:09:59 +00:00
|
|
|
%{_mandir}/man1/*-config.1%{ext_man}
|
|
|
|
%exclude %{_mandir}/man1/Magick++-config.1%{ext_man}
|
2007-01-15 22:49:14 +00:00
|
|
|
|
|
|
|
%files -n perl-PerlMagick
|
|
|
|
%doc PerlMagick/README.txt
|
2017-03-29 08:10:26 +00:00
|
|
|
%doc PerlMagick/examples
|
2017-08-30 08:09:59 +00:00
|
|
|
%{_mandir}/man3/*
|
2007-01-15 22:49:14 +00:00
|
|
|
%{perl_vendorarch}/auto/Image
|
|
|
|
%{perl_vendorarch}/Image
|
|
|
|
|
2017-03-29 08:10:26 +00:00
|
|
|
%files -n libMagick++%{libspec}%{cxxlibver}
|
2013-08-06 10:17:18 +00:00
|
|
|
%{_libdir}/libMagick++*.so.%{cxxlibver}*
|
2007-01-15 22:49:14 +00:00
|
|
|
|
2007-07-27 10:11:34 +00:00
|
|
|
%files -n libMagick++-devel
|
2017-03-29 08:10:26 +00:00
|
|
|
%doc Magick++/examples
|
2008-03-28 17:57:10 +00:00
|
|
|
%doc Magick++/NEWS Magick++/README Magick++/AUTHORS
|
2013-03-29 11:57:22 +00:00
|
|
|
%{_libdir}/libMagick++*.so
|
|
|
|
%{_includedir}/ImageMagick*/Magick++.h
|
|
|
|
%{_includedir}/ImageMagick*/Magick++
|
2010-02-11 18:41:27 +00:00
|
|
|
%{_bindir}/Magick++-config
|
2013-02-07 12:56:16 +00:00
|
|
|
%{_libdir}/pkgconfig/Magick++*.pc
|
2017-08-30 08:09:59 +00:00
|
|
|
%{_mandir}/man1/Magick++-config.1%{ext_man}
|
2007-01-15 22:49:14 +00:00
|
|
|
|
2009-08-28 18:20:14 +00:00
|
|
|
%files doc
|
2017-03-29 08:10:26 +00:00
|
|
|
%{_defaultdocdir}/%{name}-%{maj}
|
2009-08-28 18:20:14 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%files %{config_spec}-upstream
|
2019-02-28 12:08:25 +00:00
|
|
|
%dir %{_sysconfdir}/ImageMagick*-upstream/
|
|
|
|
%config(noreplace) %{_sysconfdir}/ImageMagick*-upstream/*
|
2019-03-04 12:43:00 +00:00
|
|
|
%{_sysconfdir}/%{config_dir}
|
|
|
|
%ghost %{_sysconfdir}/alternatives/%{config_dir}
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2019-03-04 12:43:00 +00:00
|
|
|
%files %{config_spec}-SUSE
|
2019-02-28 12:08:25 +00:00
|
|
|
%dir %{_sysconfdir}/ImageMagick*-SUSE/
|
|
|
|
%config %{_sysconfdir}/ImageMagick*-SUSE/*
|
2019-03-04 12:43:00 +00:00
|
|
|
%{_sysconfdir}/%{config_dir}
|
|
|
|
%ghost %{_sysconfdir}/alternatives/%{config_dir}
|
2019-02-28 12:08:25 +00:00
|
|
|
|
2014-02-26 20:43:23 +00:00
|
|
|
%changelog
|