/[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 175843 by fwang, Sun Dec 4 04:35:23 2011 UTC revision 273919 by fwang, Mon Jul 23 23:50:32 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.8
13    
14  # their "minor" version  # their "minor" version
15  %define minor_rev 10  %define minor_rev 6
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 47  Source13:      magick-icon_64x64.png Line 47  Source13:      magick-icon_64x64.png
47  Patch0:         imagemagick-docdir.diff  Patch0:         imagemagick-docdir.diff
48  #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
49  Patch1:         ImageMagick-6.4.8-9-format-strings.patch  Patch1:         ImageMagick-6.4.8-9-format-strings.patch
50    Patch2:         ImageMagick-6.7.4-force-so.patch
51  Patch7:         imagemagick-urw.diff  Patch7:         imagemagick-urw.diff
52  Patch17:        imagemagick-fpx.diff  Patch17:        imagemagick-fpx.diff
53  Patch19:        ImageMagick-libpath.diff  Patch19:        ImageMagick-libpath.diff
54  Patch20:        ImageMagick-6.4.8-9-fix-montageimages-test.patch  Patch20:        ImageMagick-6.7.7-9-fix-montageimages-test.patch
55    
56  Requires:       %{libname} = %{version}  Requires:       %{libname} = %{version}
57  Obsoletes:      ImageMagick < 6.3.2.9-6  Obsoletes:      ImageMagick < 6.3.2.9-6
# Line 70  BuildRequires:  libjpeg-devel Line 71  BuildRequires:  libjpeg-devel
71  BuildRequires:  libpng-devel  BuildRequires:  libpng-devel
72  BuildRequires:  zlib-devel  BuildRequires:  zlib-devel
73  BuildRequires:  lcms-devel  BuildRequires:  lcms-devel
74    BuildRequires:  lcms2-devel
75    BuildRequires:  fftw-devel
76  BuildRequires:  lqr-devel  BuildRequires:  lqr-devel
77  BuildRequires:  libltdl-devel  BuildRequires:  libltdl-devel
78  BuildRequires:  perl-devel  BuildRequires:  perl-devel
# Line 82  BuildRequires:  lzma-devel Line 85  BuildRequires:  lzma-devel
85  BuildRequires:  djvulibre-devel  BuildRequires:  djvulibre-devel
86  %endif  %endif
87  BuildRequires:  ghostscript  BuildRequires:  ghostscript
88    BuildRequires:  subversion
89  BuildConflicts: %{develname}  BuildConflicts: %{develname}
90    
91  %description  %description
# Line 91  of image formats. Line 95  of image formats.
95    
96  ImageMagick can make use of the following delegate programs, available as  ImageMagick can make use of the following delegate programs, available as
97  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp
98  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends tetex-dvips  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends texlive-texmf
99  transfig ufraw xdg-utils zip autotrace povray  transfig ufraw xdg-utils zip autotrace povray
100    
101  %package        desktop  %package        desktop
# Line 125  Provides:      libMagick-devel = %{version}-% Line 129  Provides:      libMagick-devel = %{version}-%
129  Obsoletes:      ImageMagick-devel  Obsoletes:      ImageMagick-devel
130  Provides:       libMagick5-devel = %{version}-%{release}  Provides:       libMagick5-devel = %{version}-%{release}
131  Obsoletes:      libMagick5-devel  Obsoletes:      libMagick5-devel
132    Conflicts:      %{name} < 6.7.5.0-2
133  # 2006  # 2006
134  Obsoletes:      %{mklibname Magick 8.3.2 -d}  Obsoletes:      %{mklibname Magick 8.3.2 -d}
135  # 2007.0  # 2007.0
# Line 148  Group:         Development/Perl Line 153  Group:         Development/Perl
153  Requires:       %{name} = %{version}  Requires:       %{name} = %{version}
154  Provides:       perl-Magick = %{version}-%{release}  Provides:       perl-Magick = %{version}-%{release}
155  Obsoletes:      perl-Magick  Obsoletes:      perl-Magick
 Requires:       graphviz  
 Requires:       libwmf  
156    
157  %description -n perl-Image-Magick  %description -n perl-Image-Magick
158  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 169  This package contains HTML/PDF documenta Line 172  This package contains HTML/PDF documenta
172  %setup -q -n ImageMagick-%{rversion}-%minor_rev  %setup -q -n ImageMagick-%{rversion}-%minor_rev
173    
174  %patch0 -p1 -b .docdir  %patch0 -p1 -b .docdir
175  #patch1 -p1  %patch2 -p0 -b .so
176  %patch7 -p0 -b .urw  %patch7 -p0 -b .urw
177  %patch17 -p0 -b .fpx  %patch17 -p0 -b .fpx
178  %patch19 -p1 -b .libpath  %patch19 -p1 -b .libpath
# Line 177  This package contains HTML/PDF documenta Line 180  This package contains HTML/PDF documenta
180    
181  bzcat %{SOURCE1} > ImageMagick.pdf  bzcat %{SOURCE1} > ImageMagick.pdf
182  install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} .  install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} .
183  libtoolize --copy --force; aclocal -I m4; autoconf; automake  autoreconf -fi
184    
185  %build  %build
186  #gw the format-string patch is incomplete:  #gw the format-string patch is incomplete:
# Line 203  export PATH=/bin:/usr/bin Line 206  export PATH=/bin:/usr/bin
206      --with-xml \      --with-xml \
207      --without-dps \      --without-dps \
208      --without-windows-font-dir \      --without-windows-font-dir \
209      --without-modules \      --with-modules \
210      --with-perl \      --with-perl \
211        --without-included-ltdl --with-ltdl-include=%{_includedir} \
212        --with-ltdl-lib=%{_libdir} \
213      --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'" \
214      --with-jp2 \      --with-jp2 \
215      --with-gvc \      --with-gvc \
# Line 234  make check Line 239  make check
239  %endif  %endif
240    
241  %install  %install
 rm -rf %{buildroot}  
   
242  # (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
243  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs
244    
# Line 243  rm -rf %{buildroot} Line 246  rm -rf %{buildroot}
246  rm -rf installed_docs; mv %{buildroot}/installed_docs .  rm -rf installed_docs; mv %{buildroot}/installed_docs .
247    
248  # Remove unpackaged files  # Remove unpackaged files
249  find %{buildroot} -name '*.la' | xargs rm  find %{buildroot} -name '*.la' -delete
 rm -f %{buildroot}%{_libdir}/libltdl*  
250    
251  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config
252  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config
# Line 279  Type=Application Line 281  Type=Application
281  Categories=Graphics;Viewer;  Categories=Graphics;Viewer;
282  EOF  EOF
283    
 %clean  
 rm -rf %{buildroot}  
   
284  %files  %files
 %defattr(-,root,root)  
285  %doc README.txt  %doc README.txt
286  %{_sysconfdir}/ImageMagick  %{_sysconfdir}/ImageMagick
287  %{_bindir}/animate  %{_bindir}/animate
# Line 297  rm -rf %{buildroot} Line 295  rm -rf %{buildroot}
295  %{_bindir}/mogrify  %{_bindir}/mogrify
296  %{_bindir}/montage  %{_bindir}/montage
297  %{_bindir}/stream  %{_bindir}/stream
298  %dir %{_libdir}/ImageMagick-%{rversion}  %{_libdir}/ImageMagick-%{rversion}
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}  
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders  
 %dir %{_libdir}/ImageMagick-%{rversion}/config  
 %{_libdir}/ImageMagick-%{rversion}/config/*.xml  
299  %{_datadir}/ImageMagick-%{rversion}  %{_datadir}/ImageMagick-%{rversion}
300  %{_mandir}/man1/*  %{_mandir}/man1/*
301  %{_mandir}/man3/*  %exclude %{_mandir}/man1/*-config.*
 %exclude %{_mandir}/man3/*::*.3pm*  
302    
303  %files desktop  %files desktop
 %defattr(-,root,root)  
304  %{_datadir}/applications/*  %{_datadir}/applications/*
305  %{_iconsdir}/%{name}.png  %{_iconsdir}/%{name}.png
306  %{_liconsdir}/%{name}.png  %{_liconsdir}/%{name}.png
# Line 316  rm -rf %{buildroot} Line 308  rm -rf %{buildroot}
308  %{_iconsdir}/hicolor/64x64/apps/%{name}.png  %{_iconsdir}/hicolor/64x64/apps/%{name}.png
309    
310  %files -n %{libname}  %files -n %{libname}
 %defattr(-,root,root,0755)  
311  %{_libdir}/libMagick++.so.%{major}*  %{_libdir}/libMagick++.so.%{major}*
312  %{_libdir}/libMagickCore.so.%{major}*  %{_libdir}/libMagickCore.so.%{major}*
313  %{_libdir}/libMagickWand.so.%{major}*  %{_libdir}/libMagickWand.so.%{major}*
314    
315  %files -n %{develname}  %files -n %{develname}
 %defattr(-,root,root)  
316  %{_includedir}/ImageMagick  %{_includedir}/ImageMagick
317  %multiarch %{multiarch_bindir}/Magick-config  %multiarch %{multiarch_bindir}/Magick-config
318  %multiarch %{multiarch_bindir}/Magick++-config  %multiarch %{multiarch_bindir}/Magick++-config
# Line 339  rm -rf %{buildroot} Line 329  rm -rf %{buildroot}
329  %{_bindir}/Wand-config  %{_bindir}/Wand-config
330  %{_libdir}/*.so  %{_libdir}/*.so
331  %{_libdir}/pkgconfig/*.pc  %{_libdir}/pkgconfig/*.pc
332    %{_mandir}/man1/*-config.*
333    
334  %files -n perl-Image-Magick  %files -n perl-Image-Magick
 %defattr(-,root,root)  
335  %{perl_vendorarch}/Image  %{perl_vendorarch}/Image
336  %{perl_vendorarch}/auto/Image  %{perl_vendorarch}/auto/Image
337  %{_mandir}/man3*/*::*.3pm*  %{_mandir}/man3*/*::*.3pm*
338    
339  %files doc  %files doc
 %defattr(-,root,root)  
340  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE
341  %doc QuickStart.txt installed_docs/*  %doc QuickStart.txt installed_docs/*

Legend:
Removed from v.175843  
changed lines
  Added in v.273919

  ViewVC Help
Powered by ViewVC 1.1.26