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
|
|
|
#
|
2024-01-03 09:50:04 +00:00
|
|
|
# Copyright (c) 2024 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
|
2023-03-14 13:36:39 +00:00
|
|
|
%define mfr_version %{maj}.1.1
|
2024-04-08 15:24:54 +00:00
|
|
|
%define mfr_revision 29
|
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}
|
2021-06-21 11:10:04 +00:00
|
|
|
%define clibver 10
|
|
|
|
%define cwandver 10
|
2021-02-09 11:14:21 +00:00
|
|
|
%define cxxlibver 5
|
2019-02-28 12:08:25 +00:00
|
|
|
%define libspec -%{maj}_Q%{quantum_depth}HDRI
|
2023-09-29 13:19:50 +00:00
|
|
|
%define test_verbose 1
|
2018-04-10 17:22:37 +00:00
|
|
|
# bsc#1088463
|
|
|
|
%define urw_base35_fonts 0
|
2023-02-24 11:31:44 +00:00
|
|
|
# do/don't pull djvulibre dependency
|
2023-03-02 13:16:16 +00:00
|
|
|
%bcond_without djvu
|
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/
|
2022-07-18 07:32:05 +00:00
|
|
|
Source0: https://imagemagick.org/archive/releases/ImageMagick-%{mfr_version}-%{mfr_revision}.tar.xz
|
2017-03-29 08:10:26 +00:00
|
|
|
Source1: baselibs.conf
|
2022-07-18 07:32:05 +00:00
|
|
|
Source2: https://imagemagick.org/archive/releases/ImageMagick-%{mfr_version}-%{mfr_revision}.tar.xz.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
|
2023-09-29 14:12:02 +00:00
|
|
|
#%%ifarch i586
|
|
|
|
#%%if %%{?suse_version} < 1550
|
|
|
|
Patch4: ImageMagick-filter.t-disable-Contrast.patch
|
|
|
|
#%%endif
|
|
|
|
#%%endif
|
|
|
|
#%%ifarch s390x
|
|
|
|
Patch5: ImageMagick-s390x-disable-tests.patch
|
|
|
|
#%%endif
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: chrpath
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: dejavu-fonts
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: libjbig-devel
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libwmf-devel
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: pkgconfig
|
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
|
2017-08-30 08:09:59 +00:00
|
|
|
BuildRequires: pkgconfig(OpenEXR)
|
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(fftw3)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: pkgconfig(ijs)
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libexif)
|
2021-01-04 09:52:26 +00:00
|
|
|
BuildRequires: pkgconfig(libheif)
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: pkgconfig(libopenjp2) >= 2.1.0
|
2021-02-16 09:56:44 +00:00
|
|
|
BuildRequires: pkgconfig(libraw)
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4) >= 4.0.3
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
|
|
|
BuildRequires: pkgconfig(libwebpmux)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2023-03-02 13:16:16 +00:00
|
|
|
BuildRequires: pkgconfig(lqr-1)
|
2018-04-10 17:15:14 +00:00
|
|
|
BuildRequires: pkgconfig(pango)
|
2023-03-02 13:16:16 +00:00
|
|
|
%if %{with djvu}
|
|
|
|
BuildRequires: pkgconfig(ddjvuapi)
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1500
|
2023-01-09 08:55:12 +00:00
|
|
|
BuildRequires: pkgconfig(libjxl)
|
|
|
|
%endif
|
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
|
2024-01-30 16:21:32 +00:00
|
|
|
Obsoletes: ImageMagick-config-7-SUSE < 7.1.1.27
|
2024-01-16 15:07:59 +00:00
|
|
|
Provides: ImageMagick-config-7-SUSE = %{version}
|
2024-01-30 16:21:32 +00:00
|
|
|
Obsoletes: ImageMagick-config-7-upstream < 7.1.1.27
|
|
|
|
Obsoletes: ImageMagick-config-7-upstream-open < 7.1.1.27
|
|
|
|
Obsoletes: ImageMagick-config-7-upstream-secure < 7.1.1.27
|
|
|
|
Obsoletes: ImageMagick-config-7-upstream-websafe < 7.1.1.27
|
|
|
|
Obsoletes: imagemagick-config-7-upstream-limited < 7.1.1.27
|
2024-03-04 07:19:45 +00:00
|
|
|
Requires(pre): update-alternatives
|
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-08-30 08:09:59 +00:00
|
|
|
Requires: pkgconfig(bzip2)
|
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
|
2023-03-02 13:16:16 +00:00
|
|
|
Recommends: ghostscript
|
2024-01-16 15:07:59 +00:00
|
|
|
Suggests: ImageMagick-extra = %{version}
|
2024-01-16 15:22:51 +00:00
|
|
|
Recommends: ImageMagick
|
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
|
2024-01-16 15:22:51 +00:00
|
|
|
Recommends: ImageMagick
|
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++
|
2024-01-16 15:22:51 +00:00
|
|
|
Recommends: ImageMagick
|
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-08-31 11:52:59 +00:00
|
|
|
Requires: pkgconfig(ImageMagick) = %{mfr_version}
|
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
|
2010-02-11 18:41:27 +00:00
|
|
|
BuildArch: noarch
|
2009-08-28 18:20:14 +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.
|
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%prep
|
2014-05-27 14:02:17 +00:00
|
|
|
%setup -q -n ImageMagick-%{source_version}
|
2024-02-22 08:02:24 +00:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 2 -p1
|
2023-09-29 14:12:02 +00:00
|
|
|
%ifarch i586
|
|
|
|
%if %{?suse_version} < 1550
|
2024-02-22 08:02:24 +00:00
|
|
|
%patch -P 4 -p1
|
2023-09-29 14:12:02 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
2024-02-22 08:02:24 +00:00
|
|
|
%patch -P 5 -p1
|
2023-09-29 14:12:02 +00:00
|
|
|
%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}
|
2023-03-02 13:16:16 +00:00
|
|
|
--with-urw-base35-font-dir=%{_datadir}/fonts/truetype \
|
2018-04-10 17:22:37 +00:00
|
|
|
%else
|
2023-03-02 13:16:16 +00:00
|
|
|
--with-gs-font-dir=%{_datadir}/fonts/ghostscript \
|
2018-04-10 17:22:37 +00:00
|
|
|
%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 \
|
2023-03-02 13:16:16 +00:00
|
|
|
%if %{with ddjvuapi}
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-djvu \
|
2023-02-24 11:31:44 +00:00
|
|
|
%endif
|
2021-05-04 06:26:18 +00:00
|
|
|
--with-fftw \
|
2017-08-30 08:09:59 +00:00
|
|
|
--with-lcms \
|
2015-07-24 14:48:42 +00:00
|
|
|
--with-jbig \
|
|
|
|
--with-openjp2 \
|
|
|
|
--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 \
|
2024-01-16 15:07:59 +00:00
|
|
|
--disable-openmp \
|
2024-02-28 12:55:46 +00:00
|
|
|
--with-security-policy=open # open for %%check
|
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
|
2023-03-02 13:16:16 +00:00
|
|
|
%make_build all
|
|
|
|
%make_build -j1 perl-build
|
2024-01-15 12:50:16 +00:00
|
|
|
# mostly because */demo is used later with %%check
|
2017-03-29 08:10:26 +00:00
|
|
|
# polutting dir with .libs etc.
|
|
|
|
cp -r Magick++/demo Magick++/examples
|
|
|
|
cp -r PerlMagick/demo PerlMagick/examples
|
|
|
|
# other improvements
|
|
|
|
chmod -x PerlMagick/demo/*.pl
|
2023-09-22 07:51:12 +00:00
|
|
|
exit 0
|
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
|
2023-03-02 13:16:16 +00:00
|
|
|
%make_build 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
|
2023-09-29 13:19:50 +00:00
|
|
|
%if %{test_verbose}
|
|
|
|
sed -i 's:TEST_VERBOSE=0:TEST_VERBOSE=1:' Makefile
|
|
|
|
%endif
|
2023-03-02 13:16:16 +00:00
|
|
|
%make_build test
|
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
|
2024-01-16 15:07:59 +00:00
|
|
|
%make_install pkgdocdir=%{_defaultdocdir}/ImageMagick-%{maj}/
|
|
|
|
# suse modified secure policy as a default
|
|
|
|
cp config/policy-secure.xml %{buildroot}/etc/ImageMagick-%{maj}/policy.xml
|
|
|
|
ln -s ./MagickCore %{buildroot}%{_includedir}/ImageMagick-%{maj}/magick
|
|
|
|
ln -s ./MagickWand %{buildroot}%{_includedir}/ImageMagick-%{maj}/wand
|
2024-01-15 12:50:16 +00:00
|
|
|
# these will be included via %%doc
|
2024-01-16 15:07:59 +00:00
|
|
|
rm -r %{buildroot}%{_datadir}/doc/ImageMagick-%{maj}/
|
2017-03-29 08:10:26 +00:00
|
|
|
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
|
2024-01-16 15:07:59 +00:00
|
|
|
%fdupes -s %{buildroot}%{_defaultdocdir}/ImageMagick-%{maj}
|
|
|
|
%fdupes -s %{buildroot}%{_includedir}/ImageMagick-%{maj}
|
2015-07-24 14:48:42 +00:00
|
|
|
%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
|
2023-09-22 07:51:12 +00:00
|
|
|
|
2024-03-04 07:19:45 +00:00
|
|
|
%pre
|
|
|
|
if readlink -q /etc/ImageMagick-7 > /dev/null 2>&1 ; then
|
|
|
|
/usr/sbin/update-alternatives --remove-all ImageMagick-7
|
|
|
|
fi
|
|
|
|
|
2007-01-15 22:49:14 +00:00
|
|
|
%files
|
2018-04-10 17:15:14 +00:00
|
|
|
%license LICENSE
|
2022-05-10 14:22:59 +00:00
|
|
|
%doc NEWS.txt
|
2024-01-16 15:07:59 +00:00
|
|
|
%doc config/policy-{open,limited,secure,websafe}.xml
|
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}
|
2024-01-16 15:07:59 +00:00
|
|
|
%dir %{_sysconfdir}/ImageMagick-%{maj}
|
|
|
|
%config(noreplace) %{_sysconfdir}/ImageMagick-%{maj}/*
|
|
|
|
%{_datadir}/ImageMagick-%{maj}
|
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
|
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.*
|
|
|
|
%exclude %{_libdir}/ImageMagick*/modules*/*/jp2.*
|
2023-03-02 13:16:16 +00:00
|
|
|
%if %{with djvu}
|
2007-07-27 10:11:34 +00:00
|
|
|
%exclude %{_libdir}/ImageMagick*/modules*/*/djvu.*
|
2023-02-24 11:31:44 +00:00
|
|
|
%endif
|
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
|
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
|
2023-03-02 13:16:16 +00:00
|
|
|
%if %{with djvu}
|
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
|
2023-02-24 11:31:44 +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
|
2023-03-02 13:16:16 +00:00
|
|
|
%{_mandir}/man1/*-config.1%{?ext_man}
|
2017-08-30 08:09:59 +00:00
|
|
|
%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
|
2023-03-02 13:16:16 +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
|
2024-01-16 15:07:59 +00:00
|
|
|
%{_defaultdocdir}/ImageMagick-%{maj}
|
2023-09-22 07:51:12 +00:00
|
|
|
|
2014-02-26 20:43:23 +00:00
|
|
|
%changelog
|