parent
ae94c7fef0
commit
84820b54c6
@ -0,0 +1 @@
|
||||
GraphicsMagick-1.1.7.tar.bz2
|
@ -0,0 +1,26 @@
|
||||
--- GraphicsMagick-1.1.7/configure.ac.orig 2006-07-31 00:24:43.000000000 +0200
|
||||
+++ GraphicsMagick-1.1.7/configure.ac 2006-07-31 00:25:02.000000000 +0200
|
||||
@@ -1684,8 +1684,8 @@
|
||||
AC_MSG_RESULT()
|
||||
failed=0;
|
||||
passed=0;
|
||||
- AC_CHECK_HEADER(ps/iapi.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
|
||||
- AC_CHECK_HEADER(ps/errors.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
|
||||
+ AC_CHECK_HEADER(ghostscript/iapi.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
|
||||
+ AC_CHECK_HEADER(ghostscript/errors.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
|
||||
AC_CHECK_LIB(gs,gsapi_new_instance,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
|
||||
AC_MSG_CHECKING(if Ghostscript library package is complete)
|
||||
if test $passed -gt 0
|
||||
--- GraphicsMagick-1.1.7/magick/delegate.h.orig 2006-07-31 00:25:33.000000000 +0200
|
||||
+++ GraphicsMagick-1.1.7/magick/delegate.h 2006-07-31 00:25:51.000000000 +0200
|
||||
@@ -46,8 +46,8 @@
|
||||
#if defined(MAGICK_IMPLEMENTATION)
|
||||
|
||||
#if defined(HasGS)
|
||||
-#include "ps/iapi.h"
|
||||
-#include "ps/errors.h"
|
||||
+#include "ghostscript/iapi.h"
|
||||
+#include "ghostscript/errors.h"
|
||||
#endif
|
||||
|
||||
#ifndef gs_main_instance_DEFINED
|
@ -0,0 +1,239 @@
|
||||
Summary: An GraphicsMagick fork, offering faster image generation and better quality
|
||||
Name: GraphicsMagick
|
||||
Version: 1.1.7
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
Group: Applications/Multimedia
|
||||
Source0: http://download.sourceforge.net/graphicsmagick/GraphicsMagick-%{version}.tar.bz2
|
||||
Patch0: GraphicsMagick-gslib.patch
|
||||
|
||||
Url: http://www.graphicsmagick.org/
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||
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: ghostscript-devel
|
||||
BuildRequires: libwmf-devel
|
||||
BuildRequires: libX11-devel, libXext-devel, libXt-devel
|
||||
BuildRequires: lcms-devel, libxml2-devel, librsvg2-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: Static libraries and header files for GraphicsMagick app development
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libX11-devel, libXext-devel, libXt-devel
|
||||
Requires: ghostscript-devel
|
||||
Requires: bzip2-devel
|
||||
Requires: libtiff-devel
|
||||
Requires: libjpeg-devel
|
||||
Requires: lcms-devel
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
GraphicsMagick-devel contains the static 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 >= 5.6.0
|
||||
%define perl_vendorarch %(perl -MConfig -le 'print $Config{installvendorarch}')
|
||||
BuildRequires: %{perl_vendorarch}
|
||||
|
||||
%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 static 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
|
||||
%patch0 -p 1 -b .gslib
|
||||
# Regenerating configure script
|
||||
autoconf
|
||||
|
||||
%build
|
||||
%configure --enable-shared \
|
||||
--with-modules \
|
||||
--with-perl \
|
||||
--with-x \
|
||||
--with-threads \
|
||||
--with-magick_plus_plus \
|
||||
--with-gslib \
|
||||
--with-wmf \
|
||||
--with-lzw \
|
||||
--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'" \
|
||||
--with-windows-font-dir=%{_datadir}/fonts/default/TrueType \
|
||||
--without-dps
|
||||
|
||||
make
|
||||
|
||||
%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
|
||||
%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 <<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 %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%post c++ -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%postun c++ -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog Copyright.txt
|
||||
%doc index.html www/ images/
|
||||
%doc README.txt AUTHORS NEWS
|
||||
%attr(755,root,root) %{_libdir}/libGraphicsMagick.so.*
|
||||
%attr(755,root,root) %{_libdir}/libGraphicsMagickWand.so.*
|
||||
%{_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
|
||||
%{_includedir}/GraphicsMagick/
|
||||
%{_mandir}/man1/GraphicsMagick-config.*
|
||||
%{_mandir}/man1/GraphicsMagickWand-config.*
|
||||
|
||||
%files c++
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libGraphicsMagick++.so.*
|
||||
|
||||
%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
|
||||
* Sun Nov 26 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-2
|
||||
- Fixed various stuff
|
||||
|
||||
|
||||
* Mon Jul 24 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-1
|
||||
- Initial Package for FE based on ImageMagick.spec
|
Loading…
Reference in new issue