Skip to content

Commit

Permalink
latest automake/autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 12, 2021
1 parent a14972b commit 1fb5916
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 34 deletions.
56 changes: 24 additions & 32 deletions ImageMagick.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,30 @@ Name: @PACKAGE_NAME@
Version: %{VERSION}
Release: %{Patchlevel}
Summary: Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images.
Group: Applications/Multimedia
License: https://imagemagick.org/script/license.php
Url: https://imagemagick.org/
Source0: https://imagemagick.org/download/%{name}/%{name}-%{VERSION}-%{Patchlevel}.tar.bz2

Requires: %{name}-libs%{?_isa} = %{version}-%{release}

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
BuildRequires: libtiff-devel, giflib-devel, zlib-devel, perl-devel >= 5.8.1
BuildRequires: ghostscript-devel, djvulibre-devel
BuildRequires: libwmf-devel
BuildRequires: perl-generators
BuildRequires: ghostscript-devel
BuildRequires: djvulibre-devel
BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel
BuildRequires: libX11-devel, libXext-devel, libXt-devel
BuildRequires: lcms2-devel, libxml2-devel, librsvg2-devel, OpenEXR-devel
BuildRequires: fftw-devel, OpenEXR-devel, libwebp-devel
BuildRequires: lcms2-devel, libxml2-devel, librsvg2-devel
BuildRequires: fftw-devel, ilmbase-devel, OpenEXR-devel, libwebp-devel
BuildRequires: jbigkit-devel
BuildRequires: openjpeg2-devel >= 2.1.0
BuildRequires: autoconf automake libtool-ltdl-devel
BuildRequires: graphviz-devel >= 2.9.0
BuildRequires: libraqm-devel
BuildRequires: liblqr-1-devel
BuildRequires: LibRaw-devel >= 0.14.8
BuildRequires: autoconf automake gcc gcc-c++
BuildRequires: make

Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description
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 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, 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.
Expand All @@ -37,14 +43,9 @@ The ImageMagick development process ensures a stable API and ABI. Before each Im

The authoritative ImageMagick web site is https://imagemagick.org. The authoritative source code repository is http://git.imagemagick.org/repos/ImageMagick. We maintain a source code mirror at GitHub.


%package devel
Summary: Library links and header files for ImageMagick application development
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libX11-devel, libXext-devel, libXt-devel, ghostscript-devel
Requires: bzip2-devel, freetype-devel, libtiff-devel, libjpeg-devel, lcms2-devel
Requires: libwebp-devel, OpenEXR-devel, openjpeg2-devel, pkgconfig
Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description devel
Expand All @@ -59,15 +60,13 @@ however.

%package libs
Summary: ImageMagick libraries to link with
Group: Applications/Multimedia

%description libs
This packages contains a shared libraries to use within other applications.


%package djvu
Summary: DjVu plugin for ImageMagick
Group: Applications/Multimedia
Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description djvu
Expand All @@ -77,7 +76,6 @@ save and load DjvU files from ImageMagick and libMagickCore using applications.

%package doc
Summary: ImageMagick HTML documentation
Group: Documentation


%description doc
Expand All @@ -89,7 +87,6 @@ https://imagemagick.org/.

%package perl
Summary: ImageMagick perl bindings
Group: System Environment/Libraries
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

Expand All @@ -103,7 +100,6 @@ ImageMagick.

%package c++
Summary: ImageMagick Magick++ library (C++ bindings)
Group: System Environment/Libraries
Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description c++
Expand All @@ -115,7 +111,6 @@ Install ImageMagick-c++ if you want to use any applications that use Magick++.

%package c++-devel
Summary: C++ bindings for the ImageMagick library
Group: Development/Libraries
Requires: %{name}-c++%{?_isa} = %{version}-%{release}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}

Expand All @@ -141,13 +136,16 @@ mkdir Magick++/examples
cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples

%build
autoconf -f -i
export CFLAGS="%{optflags} -DIMPNG_SETJMP_IS_THREAD_SAFE"
%configure --enable-shared \
--disable-static \
--with-modules \
--with-perl \
--with-x \
--with-threads \
--with-magick_plus_plus \
--with-gslib \
--with-wmf \
--with-webp \
--with-openexr \
Expand All @@ -157,7 +155,10 @@ cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
--without-dps \
--without-gcc-arch \
--with-jbig \
--with-openjp2
--with-openjp2 \
--with-raw \
--with-lqr \
--with-raqm

# Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild
make
Expand All @@ -168,9 +169,6 @@ make %{?_smp_mflags} install DESTDIR=%{buildroot} INSTALL="install -p"
cp -a www/source %{buildroot}%{_datadir}/doc/%{name}-%{VERSION}
rm %{buildroot}%{_libdir}/*.la

# fix weird perl Magick.so permissions
chmod -f 755 %{buildroot}%{perl_vendorarch}/auto/Image/Magick/*/*.so

# perlmagick: fix perl path of demo files
%{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl

Expand Down Expand Up @@ -219,16 +217,10 @@ multilibFileVersions %{buildroot}%{_includedir}/%{name}-6/magick/version.h

%check
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}
make %{?_smp_mflags} check

%post libs -p /sbin/ldconfig

%post c++ -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig

%postun c++ -p /sbin/ldconfig
%make_build check

%ldconfig_scriptlets libs
%ldconfig_scriptlets c++

%files
%doc README.txt LICENSE NOTICE AUTHORS.txt NEWS.txt ChangeLog
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4540,7 +4540,7 @@ MAGICK_PATCHLEVEL_VERSION=7

MAGICK_VERSION=6.9.12-7

MAGICK_GIT_REVISION=16553:fd23993f3:20210403
MAGICK_GIT_REVISION=16572:a14972b03:20210411


# Substitute library versioning
Expand Down Expand Up @@ -4570,7 +4570,7 @@ PACKAGE_LIB_VERSION=0x69C

PACKAGE_LIB_VERSION_NUMBER=6,9,12,7

PACKAGE_RELEASE_DATE=2021-04-03
PACKAGE_RELEASE_DATE=2021-04-11


# Ensure that make can run correctly
Expand Down

0 comments on commit 1fb5916

Please sign in to comment.