Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
rebuilds
:
ImageMagick
>
ImageMagick
> ImageMagick.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ImageMagick.spec of Package ImageMagick (Revision 7)
Currently displaying revision
7
,
show latest
%define _pversion 6.3.5 %define _plevel 9 Summary: An X application for displaying and manipulating images. Name: ImageMagick %if %{?_plevel} Version: %{_pversion}.%{_plevel} %else Version: %{_pversion} %endif Release: 1 License: freeware Group: Applications/Multimedia %if %{?_plevel} Source: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{_pversion}-%{_plevel}.tar.bz2 %else Source: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{version}.tar.bz2 %endif Source1: magick_small.png Patch1: ImageMagick-6.3.5-multilib.patch Patch2: ImageMagick-6.3.5-open.patch Url: http://www.imagemagick.org/ Buildroot: %{_tmppath}/%{name}-%{version}-root BuildPrereq: bzip2-devel freetype-devel libjpeg-devel libpng-devel BuildPrereq: libtiff-devel libungif-devel zlib-devel perl BuildRequires: freetype-devel >= 2.1 BuildRequires: automake >= 1.7 autoconf >= 2.58 libtool >= 1.5 BuildRequires: ghostscript-devel BuildRequires: libwmf-devel BuildRequires: libX11-devel libXext-devel libXt-devel BuildRequires: lcms-devel libxml2-devel librsvg2-devel %description ImageMagick(TM) is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one. ImageMagick also includes command line programs for creating animated or transparent .gifs, creating composite images, creating thumbnail images, and more. ImageMagick is one of your choices if you need a program to manipulate and dis play images. If you want to develop your own applications which use ImageMagick code or APIs, you need to install ImageMagick-devel as well. %package devel Summary: Static libraries and header files for ImageMagick app development. Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libX11-devel libXext-devel libXt-devel Requires: ghostscript-devel Requires: bzip2-devel Requires: freetype-devel Requires: libtiff-devel Requires: libjpeg-devel Requires: lcms-devel Requires: pkgconfig %description devel ImageMagick-devel contains the static libraries and header files you'll need to develop ImageMagick applications. ImageMagick is an image manipulation program. If you want to create applications that will use ImageMagick code or APIs, you need to install ImageMagick-devel as well as ImageMagick. You do not need to install it if you just want to use ImageMagick, however. %package perl Summary: ImageMagick perl bindings Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} Requires: perl >= 5.6.0 %define perl_vendorarch %(perl -MConfig -le 'print $Config{installvendorarch}') Prereq: %{perl_vendorarch} %description perl Perl bindings to ImageMagick. Install ImageMagick-perl if you want to use any perl scripts that use ImageMagick. %package c++ Summary: ImageMagick Magick++ library (C++ bindings) Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description c++ This package contains the Magick++ library, a C++ binding to the ImageMagick graphics manipulation library. 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++ = %{version} Requires: %{name}-devel = %{version} %description c++-devel ImageMagick-devel contains the static libraries and header files you'll need to develop ImageMagick applications using the Magick++ C++ bindings. ImageMagick is an image manipulation program. If you want to create applications that will use Magick++ code or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and ImageMagick. You don't need to install it if you just want to use ImageMagick, or if you want to develop/compile applications using the ImageMagick C interface, however. %prep %setup -q -n %{name}-%{_pversion} %patch1 -p1 -b .multilib %patch2 -p1 -b .open_args %build %configure --enable-shared \ --with-modules \ --with-perl \ --with-x \ --with-threads \ --with-magick_plus_plus \ --with-gslib \ --with-wmf \ --with-lcms \ --with-rsvg \ --with-xml \ --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ --without-windows-font-dir \ --without-dps %__make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # perlmagick: fix perl path of demo files %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl find $RPM_BUILD_ROOT -name "*.bs" |xargs rm -f find $RPM_BUILD_ROOT -name ".packlist" |xargs rm -f find $RPM_BUILD_ROOT -name "perllocal.pod" |xargs rm -f # perlmagick: build files list echo "%defattr(-,root,root)" > perl-pkg-files find $RPM_BUILD_ROOT/%{_libdir}/perl* -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" > perl-pkg-files find $RPM_BUILD_ROOT%{perl_vendorarch} -type d -print | \ sed "s@^$RPM_BUILD_ROOT@%dir @g" | \ grep -v '^%dir %{perl_vendorarch}$' | \ grep -v '/auto$' >> perl-pkg-files if [ -z perl-pkg-files ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi rm -rf $RPM_BUILD_ROOT%{_libdir}/ImageMagick # Keep config rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{_pversion}/[a-b,d-z,A-Z]* rm -rf $RPM_BUILD_ROOT%{_libdir}/libltdl.* rm -f $RPM_BUILD_ROOT%{_libdir}/ImageMagick-*/modules*/*/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} # fix multilib issues %ifarch x86_64 s390x ia64 ppc64 alpha %define wordsize 64 %else %define wordsize 32 %endif mv $RPM_BUILD_ROOT%{_includedir}/magick/magick-config.h \ $RPM_BUILD_ROOT%{_includedir}/magick/magick-config-%{wordsize}.h cat >$RPM_BUILD_ROOT%{_includedir}/magick/magick-config.h <<EOF #ifndef ORBIT_MULTILIB #define ORBIT_MULTILIB #include <bits/wordsize.h> #if __WORDSIZE == 32 # include "magick-config-32.h" #elif __WORDSIZE == 64 # include "magick-config-64.h" #else # error "unexpected value for __WORDSIZE macro" #endif #endif EOF %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %post c++ -p /sbin/ldconfig %postun -p /sbin/ldconfig %postun c++ -p /sbin/ldconfig %files %defattr(-,root,root) %doc QuickStart.txt ChangeLog Platforms.txt %doc README.txt LICENSE NOTICE AUTHORS NEWS %attr(755,root,root) %{_libdir}/libMagick.so.* %attr(755,root,root) %{_libdir}/libWand.so.* %{_bindir}/[a-z]* %{_libdir}/ImageMagick* %{_datadir}/ImageMagick* %{_mandir}/man[145]/[a-z]* %{_mandir}/man1/ImageMagick.* %{_datadir}/doc/ImageMagick* %files devel %defattr(-,root,root) %{_bindir}/Magick-config %{_bindir}/Wand-config %{_libdir}/libMagick.so %{_libdir}/libWand.so %{_libdir}/pkgconfig/ImageMagick.pc %{_libdir}/pkgconfig/Wand.pc %{_includedir}/magick %{_includedir}/wand %{_mandir}/man1/Magick-config.* %{_mandir}/man1/Wand-config.* %files c++ %defattr(-,root,root) %{_libdir}/libMagick++.so.* %files c++-devel %defattr(-,root,root) %{_bindir}/Magick++-config %{_includedir}/Magick++ %{_includedir}/Magick++.h %{_libdir}/libMagick++.so %{_libdir}/pkgconfig/ImageMagick++.pc %{_mandir}/man1/Magick++-config.* %files perl -f perl-pkg-files %defattr(-,root,root) %{_mandir}/man3/* %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt %changelog * Thu Oct 16 2008 Carsten Schoene <cs@linux-administrator.com> - rebuild for CentOS 5