/[packages]/updates/3/imagemagick/current/SPECS/imagemagick.spec
ViewVC logotype

Diff of /updates/3/imagemagick/current/SPECS/imagemagick.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 166825 by fwang, Fri Nov 11 21:08:16 2011 UTC revision 247735 by fwang, Mon May 28 01:52:16 2012 UTC
# Line 9  Line 9 
9  # V E R S I O N   P A R T S  # V E R S I O N   P A R T S
10    
11  # their "official" version  # their "official" version
12  %define rversion 6.7.3  %define rversion 6.7.7
13    
14  # their "minor" version  # their "minor" version
15  %define minor_rev 5  %define minor_rev 2
16    
17  # some other funny version  # some other funny version
18  # (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel  # (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel
# Line 37  Release:       %mkrel 1 Line 37  Release:       %mkrel 1
37  License:        BSD-like  License:        BSD-like
38  Group:          Graphics  Group:          Graphics
39  URL:            http://www.imagemagick.org/  URL:            http://www.imagemagick.org/
40  Source0:        ftp://gd.tuwien.ac.at/pub/graphics/ImageMagick/ImageMagick-%{dversion}.tar.xz  Source0:        ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{dversion}.tar.xz
41  Source1:        ImageMagick.pdf.bz2  Source1:        ImageMagick.pdf.bz2
42  # re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png  # re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png
43  Source10:       magick-icon_16x16.png  Source10:       magick-icon_16x16.png
44  Source11:       magick-icon_32x32.png  Source11:       magick-icon_32x32.png
45  Source12:       magick-icon_48x48.png  Source12:       magick-icon_48x48.png
46  Source13:       magick-icon_64x64.png  Source13:       magick-icon_64x64.png
 Patch0:         imagemagick-docdir.diff  
47  #gw fix format strings, but it doesn't work for the perl-Magick  #gw fix format strings, but it doesn't work for the perl-Magick
48  Patch1:         ImageMagick-6.4.8-9-format-strings.patch  Patch1:         ImageMagick-6.4.8-9-format-strings.patch
49    Patch2:         ImageMagick-6.7.4-force-so.patch
50  Patch7:         imagemagick-urw.diff  Patch7:         imagemagick-urw.diff
51  Patch17:        imagemagick-fpx.diff  Patch17:        imagemagick-fpx.diff
52  Patch19:        ImageMagick-libpath.diff  Patch19:        ImageMagick-libpath.diff
# Line 91  of image formats. Line 91  of image formats.
91    
92  ImageMagick can make use of the following delegate programs, available as  ImageMagick can make use of the following delegate programs, available as
93  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp
94  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends tetex-dvips  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends texlive-texmf
95  transfig ufraw xdg-utils zip autotrace povray  transfig ufraw xdg-utils zip autotrace povray
96    
97  %package        desktop  %package        desktop
# Line 125  Provides:      libMagick-devel = %{version}-% Line 125  Provides:      libMagick-devel = %{version}-%
125  Obsoletes:      ImageMagick-devel  Obsoletes:      ImageMagick-devel
126  Provides:       libMagick5-devel = %{version}-%{release}  Provides:       libMagick5-devel = %{version}-%{release}
127  Obsoletes:      libMagick5-devel  Obsoletes:      libMagick5-devel
128    Conflicts:      %{name} < 6.7.5.0-2
129  # 2006  # 2006
130  Obsoletes:      %{mklibname Magick 8.3.2 -d}  Obsoletes:      %{mklibname Magick 8.3.2 -d}
131  # 2007.0  # 2007.0
# Line 148  Group:         Development/Perl Line 149  Group:         Development/Perl
149  Requires:       %{name} = %{version}  Requires:       %{name} = %{version}
150  Provides:       perl-Magick = %{version}-%{release}  Provides:       perl-Magick = %{version}-%{release}
151  Obsoletes:      perl-Magick  Obsoletes:      perl-Magick
 Requires:       graphviz  
 Requires:       libwmf  
152    
153  %description -n perl-Image-Magick  %description -n perl-Image-Magick
154  This is the ImageMagick perl support package. It includes perl modules and  This is the ImageMagick perl support package. It includes perl modules and
# Line 168  This package contains HTML/PDF documenta Line 167  This package contains HTML/PDF documenta
167    
168  %setup -q -n ImageMagick-%{rversion}-%minor_rev  %setup -q -n ImageMagick-%{rversion}-%minor_rev
169    
 %patch0 -p1 -b .docdir  
170  #patch1 -p1  #patch1 -p1
171    %patch2 -p0 -b .so
172  %patch7 -p0 -b .urw  %patch7 -p0 -b .urw
173  %patch17 -p0 -b .fpx  %patch17 -p0 -b .fpx
174  %patch19 -p1 -b .libpath  %patch19 -p1 -b .libpath
# Line 203  export PATH=/bin:/usr/bin Line 202  export PATH=/bin:/usr/bin
202      --with-xml \      --with-xml \
203      --without-dps \      --without-dps \
204      --without-windows-font-dir \      --without-windows-font-dir \
205      --without-modules \      --with-modules \
206      --with-perl \      --with-perl \
207        --without-included-ltdl --with-ltdl-include=%{_includedir} \
208        --with-ltdl-lib=%{_libdir} \
209      --with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \      --with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
210      --with-jp2 \      --with-jp2 \
211      --with-gvc \      --with-gvc \
# Line 234  make check Line 235  make check
235  %endif  %endif
236    
237  %install  %install
 rm -rf %{buildroot}  
   
238  # (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module  # (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module
239  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs
240    
# Line 243  rm -rf %{buildroot} Line 242  rm -rf %{buildroot}
242  rm -rf installed_docs; mv %{buildroot}/installed_docs .  rm -rf installed_docs; mv %{buildroot}/installed_docs .
243    
244  # Remove unpackaged files  # Remove unpackaged files
245  find %{buildroot} -name '*.la' | xargs rm  find %{buildroot} -name '*.la' -delete
 rm -f %{buildroot}%{_libdir}/libltdl*  
246    
247  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config
248  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config
# Line 279  Type=Application Line 277  Type=Application
277  Categories=Graphics;Viewer;  Categories=Graphics;Viewer;
278  EOF  EOF
279    
 %clean  
 rm -rf %{buildroot}  
   
280  %files  %files
 %defattr(-,root,root)  
281  %doc README.txt  %doc README.txt
282  %{_sysconfdir}/ImageMagick  %{_sysconfdir}/ImageMagick
283  %{_bindir}/animate  %{_bindir}/animate
# Line 297  rm -rf %{buildroot} Line 291  rm -rf %{buildroot}
291  %{_bindir}/mogrify  %{_bindir}/mogrify
292  %{_bindir}/montage  %{_bindir}/montage
293  %{_bindir}/stream  %{_bindir}/stream
294  %dir %{_libdir}/ImageMagick-%{rversion}  %{_libdir}/ImageMagick-%{rversion}
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}  
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders  
295  %{_datadir}/ImageMagick-%{rversion}  %{_datadir}/ImageMagick-%{rversion}
296  %{_mandir}/man1/*  %{_mandir}/man1/*
297  %{_mandir}/man3/*  %exclude %{_mandir}/man1/*-config.*
 %exclude %{_mandir}/man3/*::*.3pm*  
298    
299  %files desktop  %files desktop
 %defattr(-,root,root)  
300  %{_datadir}/applications/*  %{_datadir}/applications/*
301  %{_iconsdir}/%{name}.png  %{_iconsdir}/%{name}.png
302  %{_liconsdir}/%{name}.png  %{_liconsdir}/%{name}.png
# Line 314  rm -rf %{buildroot} Line 304  rm -rf %{buildroot}
304  %{_iconsdir}/hicolor/64x64/apps/%{name}.png  %{_iconsdir}/hicolor/64x64/apps/%{name}.png
305    
306  %files -n %{libname}  %files -n %{libname}
 %defattr(-,root,root,0755)  
307  %{_libdir}/libMagick++.so.%{major}*  %{_libdir}/libMagick++.so.%{major}*
308  %{_libdir}/libMagickCore.so.%{major}*  %{_libdir}/libMagickCore.so.%{major}*
309  %{_libdir}/libMagickWand.so.%{major}*  %{_libdir}/libMagickWand.so.%{major}*
310    
311  %files -n %{develname}  %files -n %{develname}
 %defattr(-,root,root)  
312  %{_includedir}/ImageMagick  %{_includedir}/ImageMagick
313  %multiarch %{multiarch_bindir}/Magick-config  %multiarch %{multiarch_bindir}/Magick-config
314  %multiarch %{multiarch_bindir}/Magick++-config  %multiarch %{multiarch_bindir}/Magick++-config
# Line 337  rm -rf %{buildroot} Line 325  rm -rf %{buildroot}
325  %{_bindir}/Wand-config  %{_bindir}/Wand-config
326  %{_libdir}/*.so  %{_libdir}/*.so
327  %{_libdir}/pkgconfig/*.pc  %{_libdir}/pkgconfig/*.pc
328    %{_mandir}/man1/*-config.*
329    
330  %files -n perl-Image-Magick  %files -n perl-Image-Magick
 %defattr(-,root,root)  
331  %{perl_vendorarch}/Image  %{perl_vendorarch}/Image
332  %{perl_vendorarch}/auto/Image  %{perl_vendorarch}/auto/Image
333  %{_mandir}/man3*/*::*.3pm*  %{_mandir}/man3*/*::*.3pm*
334    
335  %files doc  %files doc
 %defattr(-,root,root)  
336  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE
337  %doc QuickStart.txt installed_docs/*  %doc QuickStart.txt installed_docs/*

Legend:
Removed from v.166825  
changed lines
  Added in v.247735

  ViewVC Help
Powered by ViewVC 1.1.30