Sisyphus repository
Last update: 11 december 2018 | SRPMs: 18648 | Visits: 12688106
en ru br
ALT Linux repos
S:6.9.10.15-alt1
5.0: 6.5.0.8-alt1
4.1: 6.3.7.2-alt1.M41.1
4.0: 6.3.7.2-alt1.M40.1
3.0: 6.2.4-alt3

Group :: Graphics
RPM: ImageMagick

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define dversion 6.5.0
%define drelease 8
%define qlev Q16
%define mgkdir ImageMagick
%undefine __libtoolize

%def_enable librsvg
%def_enable x

Name: ImageMagick
Version: %dversion.%drelease
Release: alt1

Summary: An X application for displaying and manipulating images
License: OpenSource
Group: Graphics
Url: http://www.imagemagick.org/

Packager: Anton Farygin <rider at altlinux.ru>

Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/%name-%dversion-%drelease.tar

Source1: %name.desktop
Source2: imagemagick16.png
Source3: imagemagick32.png
Source4: imagemagick48.png

Patch1: ImageMagick-6.4.5-libtool.patch
Patch2: ImageMagick-6.4.5-Magick-config.patch
Patch3: ImageMagick-6.4.5-5-perlMagick.patch

Requires: ghostscript-classic fonts-type1-urw lib%name = %version-%release

# Automatically added by buildreq on Mon Jan 01 2007

BuildRequires: bzlib-devel gcc-c++ ghostscript-classic graphviz fontconfig-devel libXext-devel libXt-devel
BuildRequires: libjasper-devel libjbig-devel liblcms-devel libtiff-devel libwmf-devel libxml2-devel perl-devel chrpath openexr-devel liblqr-devel libdjvu-devel
%if_enabled librsvg
BuildRequires: librsvg-devel
%endif

Requires: %name-tools %name-doc

%description
%name is a powerful image display, conversion and manipulation tool.
It runs in an X session.  With this tool, you can view, edit and display
a variety of image formats.

This package installs the necessary files to run %name.

%package -n lib%name
Summary: %name shared libraries
Group: System/Libraries
Obsoletes: %name-lib

%description -n lib%name
%name is a powerful image display, conversion and manipulation libraries.

%package -n lib%name-devel
Summary: Header files for %name app development
Group: Development/C
Requires: lib%name = %version-%release
Obsoletes: %name-devel
Provides: %name-devel = %version-%release

%description -n lib%name-devel
If you want to create applications that will use %name code or APIs,
you'll need to install these packages as well as %name.  These additional
packages aren't necessary if you simply want to use %name, however.

%package -n lib%name-devel-static
Summary: Static libraries for %name app development
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
If you want to create applications that will use %name code or APIs,
you'll need to install these packages as well as %name.  These additional
packages aren't necessary if you simply want to use %name, however.

lib%name-devel is an addition to %name which includes static libraries files
necessary to develop applications.

%package -n perl-Magick
Summary: Libraries and modules for access to %name from perl
Group: Development/Perl
Requires: lib%name = %version-%release

%description -n perl-Magick
This is the %name perl support package.  It includes perl modules
and support files for access to %name library from perl.

%package tools
Summary: Console tools from %name
Group: Graphics
Requires: lib%name = %version-%release

%description tools
%name is a powerful image conversion and manipulation tools.
This package installs the necessary files to run %name-tools.

%package doc
Summary: Documentation for %name
Group: Graphics
Requires: %name-tools

%description doc
Documentation for %name

%def_disable static

%prep
%setup -q -n %name-%dversion-%drelease

%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
aclocal-1.10 --force -I m4
autoconf-2.60 --force
%configure \
--with-modules \
--with-fontpath=%_datadir/fonts/type1/urw \
--with-gs-font-dir=%_datadir/fonts/type1/urw \
--with-gvc=yes \
--with-lqr=yes \
--enable-hdri \
%{subst_enable x} \
--with-perl-options="PREFIX=%prefix INSTALLDIRS=vendor" \
%{subst_enable static}
subst 's|^\(hardcode_into_libs\)=.*$|\1=no|' libtool
%make_build

cd PerlMagick
%__subst 's,^\(LDLOADLIBS.*\),\1 -L../magick -lMagickCore,' Makefile
%make

%install
%make transform='' DESTDIR=%buildroot install

%__subst "s,%_libdir/libMagickCore.la,-L%_libdir -lMagickCore," %buildroot%_libdir/%mgkdir-%dversion/modules-%qlev/*/*.la

%__mv %buildroot%_datadir/%mgkdir-%dversion/LICENSE %buildroot%_docdir/%name-%dversion/

%__rm %buildroot%_libdir/%mgkdir-%dversion/config/type-windows.xml

%__install -pD -m644 %SOURCE1 %buildroot%_datadir/applications/%name.desktop
%__install -pD -m644 %SOURCE2 %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE3 %buildroot%_niconsdir/%name.png
%__install -pD -m644 %SOURCE4 %buildroot%_liconsdir/%name.png

chrpath -d %buildroot%perl_vendor_archlib/auto/Image/Magick/Magick.so

%files

%files tools
%_bindir/[a-z]*
%_man1dir/%name.1*
%_man1dir/[a-z]*.1*
# display, menu and icons to be moved into subpackage
%_bindir/display
%_datadir/applications/%name.desktop
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%_man1dir/display*.1*

%files doc
%dir %_docdir/%name-%dversion
%dir %_docdir/%name-%dversion/www
%_docdir/%name-%dversion/LICENSE
%_docdir/%name-%dversion/images
%_docdir/%name-%dversion/index.html
%_docdir/%name-%dversion/www/*
%exclude %_docdir/%name-%dversion/www/api
%exclude %_docdir/%name-%dversion/www/Magick++

%files -n lib%name
%dir %_libdir/%mgkdir-%dversion
%dir %_libdir/%mgkdir-%dversion/modules-%qlev
%dir %_libdir/%mgkdir-%dversion/modules-%qlev/coders
%dir %_libdir/%mgkdir-%dversion/modules-%qlev/filters
%_libdir/%mgkdir-%dversion/modules-%qlev/*/*
%dir %_datadir/%mgkdir-%dversion
%dir %_datadir/%mgkdir-%dversion/config
%_datadir/%mgkdir-%dversion/config/*
%dir %_libdir/%mgkdir-%dversion
%dir %_libdir/%mgkdir-%dversion/config
%_libdir/%mgkdir-%dversion/config/*.xml
%exclude %_libdir/%mgkdir-%dversion/config/configure.xml
%_libdir/*.so.*

%files -n lib%name-devel
%dir %_docdir/%name-%dversion
%dir %_docdir/%name-%dversion/www
%_docdir/%name-%dversion/www/api
%_docdir/%name-%dversion/www/Magick++
%_bindir/*-config
%_includedir/*
%_libdir/*.so
%_libdir/%mgkdir-%dversion/config/configure.xml
%_pkgconfigdir/*.pc
%_man1dir/*-config.1*

%files -n perl-Magick
%doc www/perl-magick.html images/examples.jpg PerlMagick/demo
%perl_vendor_man3dir/*
%perl_vendor_archlib/auto/*
%perl_vendor_archlib/Image

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin