Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37378414
en ru br
ALT Linux repos
S:7.1.1.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.3.7
%define drelease 2
%define qlev Q16
%define mgkdir ImageMagick

%def_enable librsvg

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

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.2.9-libtool.patch
Patch2: ImageMagick-6.3.2-Magick-config.patch
Patch3: ImageMagick-6.3.6-0-perlMagick.patch
Patch4: ImageMagick-6.3.3-aclocal.patch
Patch5: %name-%version-xwindow.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
%if_enabled librsvg
BuildRequires: librsvg-devel
%endif

%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.

%def_disable static

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

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p2

%__subst 's,2.4.1,2.3.2,' configure.ac
%__subst 's,2.60,2.59,' configure.ac

%build
%__autoreconf
%configure \
--with-modules \
--with-fontpath=%_datadir/fonts/type1/urw \
--with-gs-font-dir=%_datadir/fonts/type1/urw \
--with-gvc=yes \
--disable-hdri \
--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 -lMagick,' Makefile
%make

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

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

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

%__rm %buildroot%_libdir/%mgkdir-%dversion/config/type-{solaris,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

%postun
%clean_menus

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files
%_docdir/%name-%dversion
%exclude %_docdir/%name-%dversion/www/api
%exclude %_docdir/%name-%dversion/www/Magick++
%_bindir/[a-z]*
%_datadir/applications/%name.desktop
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%_man1dir/%name.1*
%_man1dir/[a-z]*.1*

%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