Summary: An ImageMagick fork, offering faster image generation and better quality Name: GraphicsMagick Version: 1.3.5 Release: 2%{?dist} License: MIT Group: Applications/Multimedia Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.bz2 Url: http://www.graphicsmagick.org/ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel BuildRequires: libtiff-devel, libungif-devel, zlib-devel, perl BuildRequires: freetype-devel >= 2.0.1 BuildRequires: automake >= 1.7 autoconf >= 2.58 libtool >= 1.5 BuildRequires: jasper-devel BuildRequires: libwmf-devel, perl-devel BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel BuildRequires: libX11-devel libXext-devel libXt-devel %description GraphicsMagick is a comprehensive image processing package which is initially based on ImageMagick 5.5.2, but which has undergone significant re-work by the GraphicsMagick Group to significantly improve the quality and performance of the software. %package devel Summary: Libraries and header files for GraphicsMagick app development Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: ghostscript-devel, bzip2-devel, libtiff-devel, libjpeg-devel Requires: lcms-devel, pkgconfig, libX11-devel, libXext-devel, libXt-devel %description devel GraphicsMagick-devel contains the Libraries and header files you'll need to develop GraphicsMagick applications. GraphicsMagick is an image manipulation program. If you want to create applications that will use GraphicsMagick code or APIs, you need to install GraphicsMagick-devel as well as GraphicsMagick. You do not need to install it if you just want to use GraphicsMagick, however. %package perl Summary: GraphicsMagick perl bindings Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description perl Perl bindings to GraphicsMagick. Install GraphicsMagick-perl if you want to use any perl scripts that use GraphicsMagick. %package c++ Summary: GraphicsMagick Magick++ library (C++ bindings) Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description c++ This package contains the GraphicsMagick++ library, a C++ binding to the GraphicsMagick graphics manipulation library. Install GraphicsMagick-c++ if you want to use any applications that use GraphicsMagick++. %package c++-devel Summary: C++ bindings for the GraphicsMagick library Group: Development/Libraries Requires: %{name}-c++ = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} %description c++-devel GraphicsMagick-devel contains the Libraries and header files you'll need to develop GraphicsMagick applications using the Magick++ C++ bindings. GraphicsMagick is an image manipulation program. If you want to create applications that will use Magick++ code or APIs, you'll need to install GraphicsMagick-c++-devel, ImageMagick-devel and GraphicsMagick. You don't need to install it if you just want to use GraphicsMagick, or if you want to develop/compile applications using the GraphicsMagick C interface, however. %prep %setup -q iconv -f iso-8859-2 -t utf8 < ChangeLog > ChangeLog.utf8 mv -f ChangeLog.utf8 ChangeLog # Avoid lib64 rpaths (FIXME: recheck this on newer releases) %if "%{_libdir}" != "/usr/lib" sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure %endif %build %configure --enable-shared \ --with-modules \ --with-perl \ --with-x \ --with-threads \ --with-magick_plus_plus \ --without-gslib \ --with-wmf \ --with-lcms \ --with-xml \ --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ --with-windows-font-dir=%{_datadir}/fonts/default/TrueType \ --without-dps # Avoid bogus RPATHs on x86_64 sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # perlmagick: fix perl path of demo files %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl find %{buildroot} -name "*.bs" |xargs rm -f find %{buildroot} -name ".packlist" |xargs rm -f find %{buildroot} -name "perllocal.pod" |xargs rm -f chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so # perlmagick: build files list echo "%defattr(-,root,root)" > perl-pkg-files find %{buildroot}/%{_libdir}/perl* -type f -print \ | sed "s@^%{buildroot}@@g" > perl-pkg-files find %{buildroot}%{perl_vendorarch} -type d -print \ | sed "s@^%{buildroot}@%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 %{buildroot}%{_datadir}/GraphicsMagick # Keep config rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]* rm -rf %{buildroot}%{_libdir}/libltdl.* rm -f %{buildroot}%{_libdir}/GraphicsMagick-*/modules*/*/*.a rm -f %{buildroot}%{_libdir}/*.{a,la} # fix multilib issues %ifarch x86_64 s390x ia64 ppc64 sparc64 %define wordsize 64 %else %define wordsize 32 %endif mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h \ %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config-%{wordsize}.h cat >%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.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 %{buildroot} %post -p /sbin/ldconfig %post c++ -p /sbin/ldconfig %postun -p /sbin/ldconfig %postun c++ -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc Copyright.txt %doc README.txt %doc %{_datadir}/doc/%{name}/ %{_libdir}/libGraphicsMagick.so.3* %{_libdir}/libGraphicsMagickWand.so.2* %{_bindir}/[a-z]* %{_libdir}/GraphicsMagick* %{_datadir}/GraphicsMagick* %{_mandir}/man[145]/[a-z]* %files devel %defattr(-,root,root,-) %{_bindir}/GraphicsMagick-config %{_bindir}/GraphicsMagickWand-config %{_libdir}/libGraphicsMagick.so %{_libdir}/libGraphicsMagickWand.so %{_libdir}/pkgconfig/GraphicsMagick.pc %{_libdir}/pkgconfig/GraphicsMagickWand.pc %dir %{_includedir}/GraphicsMagick/ %{_includedir}/GraphicsMagick/magick/ %{_includedir}/GraphicsMagick/wand/ %{_mandir}/man1/GraphicsMagick-config.* %{_mandir}/man1/GraphicsMagickWand-config.* %files c++ %defattr(-,root,root,-) %{_libdir}/libGraphicsMagick++.so.3* %files c++-devel %defattr(-,root,root,-) %{_bindir}/GraphicsMagick++-config %{_includedir}/GraphicsMagick/Magick++/ %{_includedir}/GraphicsMagick/Magick++.h %{_libdir}/libGraphicsMagick++.so %{_libdir}/pkgconfig/GraphicsMagick++.pc %{_mandir}/man1/GraphicsMagick++-config.* %files perl -f perl-pkg-files %defattr(-,root,root,-) %{_mandir}/man3/* %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt %changelog * Fri Jul 24 2009 Fedora Release Engineering - 1.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jun 30 2009 Rex Dieter - 1.3.5-1 - GraphicsMagick-1.3.5, ABI break (#487605) - --without-libgs (for now, per upstream advice) - BR: jasper-devel * Tue Jun 30 2009 Rex Dieter - 1.1.15-1 - GraphicsMagick-1.1.15 - fix BuildRoot - multiarch conflicts in GraphicsMagick (#341381) - broken -L in GraphicsMagick.pc (#456466) - %%files: track sonames * Mon Feb 23 2009 Fedora Release Engineering - 1.1.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Sep 11 2008 Tom "spot" Callaway - 1.1.14-3 - own all files properly * Thu Sep 11 2008 Tom "spot" Callaway - 1.1.14-2 - turns out we do need gcc43 patch * Thu Sep 11 2008 Tom "spot" Callaway - 1.1.14-1 - update to 1.1.14 - fix perl issue (bz 454087) * Sun Jun 01 2008 Dennis Gilmore - 1.1.10-4 - sparc64 is a 64 bit arch * Mon Feb 11 2008 Andreas Thienemann - 1.1.10-3 - Added patch to include cstring instead of string, fixing gcc4.3 build issue * Mon Feb 11 2008 Andreas Thienemann - 1.1.10-2 - Rebuilt against gcc 4.3 * Mon Jan 28 2008 Andreas Thienemann - 1.1.10-1 - Upgraded to 1.1.10 - Fixed linking problem with the Perl module. #365901 * Wed Aug 29 2007 Fedora Release Engineering - 1.1.8-3 - Rebuild for selinux ppc32 issue. * Sun Jul 29 2007 Andreas Thienemann - 1.1.8-2 - Building without gslib support as it results in segfaults. * Sat Jul 28 2007 Andreas Thienemann - 1.1.8-1 - Update to new maintainance release 1.1.8 * Wed Mar 07 2007 Andreas Thienemann - 1.1.7-7 - Fix potential CVE-2007-0770 issue. - Added perl-devel BuildReq * Fri Dec 01 2006 Rex Dieter - 1.1.7-6 - *really* fix magick_config-64.h (bug #217959) - make buildable on rhel4 too. * Fri Dec 01 2006 Rex Dieter - 1.1.7-5 - fix magick-config-64.h (bug #217959) * Sun Nov 29 2006 Andreas Thienemann - 1.1.7-3 - Fixed devel requirement. * Sun Nov 26 2006 Andreas Thienemann - 1.1.7-2 - Fixed various stuff * Mon Jul 24 2006 Andreas Thienemann - 1.1.7-1 - Initial Package for FE based on ImageMagick.spec