/[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 134495 by fwang, Sat Aug 20 09:18:22 2011 UTC revision 251823 by tv, Wed May 30 19:09:46 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.1  %define rversion 6.7.7
13    
14  # their "minor" version  # their "minor" version
15  %define minor_rev 8  %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 25  Line 25 
25  # the full file version  # the full file version
26  %define dversion %{rversion}-%{minor_rev}  %define dversion %{rversion}-%{minor_rev}
27    
28  %define major 4  %define major 5
29    
30  %define libname %mklibname magick %{major}  %define libname %mklibname magick %{major}
31  %define develname %mklibname magick -d  %define develname %mklibname magick -d
# Line 33  Line 33 
33  Summary:        An X application for displaying and manipulating images  Summary:        An X application for displaying and manipulating images
34  Name:           imagemagick  Name:           imagemagick
35  Version:        %{rversion}.%{minor_rev}  Version:        %{rversion}.%{minor_rev}
36  Release:        %mkrel 1  Release:        %mkrel 2
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
# 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  Patch4:         ImageMagick-6.4.8-9-includedir.patch  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
# Line 92  of image formats. Line 92  of image formats.
92    
93  ImageMagick can make use of the following delegate programs, available as  ImageMagick can make use of the following delegate programs, available as
94  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp  packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp
95  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends tetex-dvips  gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends texlive-texmf
96  transfig ufraw xdg-utils zip autotrace povray  transfig ufraw xdg-utils zip autotrace povray
97    
98  %package        desktop  %package        desktop
# Line 126  Provides:      libMagick-devel = %{version}-% Line 126  Provides:      libMagick-devel = %{version}-%
126  Obsoletes:      ImageMagick-devel  Obsoletes:      ImageMagick-devel
127  Provides:       libMagick5-devel = %{version}-%{release}  Provides:       libMagick5-devel = %{version}-%{release}
128  Obsoletes:      libMagick5-devel  Obsoletes:      libMagick5-devel
129    Conflicts:      %{name} < 6.7.5.0-2
130  # 2006  # 2006
131  Obsoletes:      %{mklibname Magick 8.3.2 -d}  Obsoletes:      %{mklibname Magick 8.3.2 -d}
132  # 2007.0  # 2007.0
# Line 149  Group:         Development/Perl Line 150  Group:         Development/Perl
150  Requires:       %{name} = %{version}  Requires:       %{name} = %{version}
151  Provides:       perl-Magick = %{version}-%{release}  Provides:       perl-Magick = %{version}-%{release}
152  Obsoletes:      perl-Magick  Obsoletes:      perl-Magick
 Requires:       graphviz  
 Requires:       libwmf  
153    
154  %description -n perl-Image-Magick  %description -n perl-Image-Magick
155  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 160  support files for access to ImageMagick Line 159  support files for access to ImageMagick
159  Summary:        %{name} Documentation  Summary:        %{name} Documentation
160  Group:          Books/Other  Group:          Books/Other
161  Obsoletes:      ImageMagick-doc < 6.3.2.9-6  Obsoletes:      ImageMagick-doc < 6.3.2.9-6
162    BuildArch:      noarch
163    
164  %description    doc  %description    doc
165  This package contains HTML/PDF documentation of %{name}.  This package contains HTML/PDF documentation of %{name}.
# Line 169  This package contains HTML/PDF documenta Line 169  This package contains HTML/PDF documenta
169  %setup -q -n ImageMagick-%{rversion}-%minor_rev  %setup -q -n ImageMagick-%{rversion}-%minor_rev
170    
171  %patch0 -p1 -b .docdir  %patch0 -p1 -b .docdir
172  #patch1 -p1  %patch2 -p0 -b .so
 %patch4 -p1 -b .include  
173  %patch7 -p0 -b .urw  %patch7 -p0 -b .urw
174  %patch17 -p0 -b .fpx  %patch17 -p0 -b .fpx
175  %patch19 -p1 -b .libpath  %patch19 -p1 -b .libpath
# Line 192  export PATH=/bin:/usr/bin Line 191  export PATH=/bin:/usr/bin
191  %configure2_5x \  %configure2_5x \
192      --docdir=%{_defaultdocdir}/imagemagick \      --docdir=%{_defaultdocdir}/imagemagick \
193      --with-pic \      --with-pic \
194      --enable-shared \      --enable-shared --disable-static \
195      --enable-fast-install \      --enable-fast-install \
196      --disable-ltdl-install \      --disable-ltdl-install \
197      --with-threads \      --with-threads \
# Line 204  export PATH=/bin:/usr/bin Line 203  export PATH=/bin:/usr/bin
203      --with-xml \      --with-xml \
204      --without-dps \      --without-dps \
205      --without-windows-font-dir \      --without-windows-font-dir \
206      --without-modules \      --with-modules \
207      --with-perl \      --with-perl \
208        --without-included-ltdl --with-ltdl-include=%{_includedir} \
209        --with-ltdl-lib=%{_libdir} \
210      --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'" \
211      --with-jp2 \      --with-jp2 \
212      --with-gvc \      --with-gvc \
# Line 235  make check Line 236  make check
236  %endif  %endif
237    
238  %install  %install
 rm -rf %{buildroot}  
   
239  # (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
240  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs  %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs
241    
# Line 244  rm -rf %{buildroot} Line 243  rm -rf %{buildroot}
243  rm -rf installed_docs; mv %{buildroot}/installed_docs .  rm -rf installed_docs; mv %{buildroot}/installed_docs .
244    
245  # Remove unpackaged files  # Remove unpackaged files
246  rm -f %{buildroot}%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders/*.a \  find %{buildroot} -name '*.la' -delete
       %{buildroot}%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/filters/*.a \  
       %{buildroot}%{_libdir}/libltdl*  
247    
248  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config
249  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config
# Line 281  Type=Application Line 278  Type=Application
278  Categories=Graphics;Viewer;  Categories=Graphics;Viewer;
279  EOF  EOF
280    
 %clean  
 rm -rf %{buildroot}  
   
281  %files  %files
 %defattr(-,root,root)  
282  %doc README.txt  %doc README.txt
283  %{_sysconfdir}/ImageMagick  %{_sysconfdir}/ImageMagick
284  %{_bindir}/animate  %{_bindir}/animate
# Line 299  rm -rf %{buildroot} Line 292  rm -rf %{buildroot}
292  %{_bindir}/mogrify  %{_bindir}/mogrify
293  %{_bindir}/montage  %{_bindir}/montage
294  %{_bindir}/stream  %{_bindir}/stream
295  %dir %{_libdir}/ImageMagick-%{rversion}  %{_libdir}/ImageMagick-%{rversion}
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}  
 %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders  
296  %{_datadir}/ImageMagick-%{rversion}  %{_datadir}/ImageMagick-%{rversion}
297  %{_mandir}/man1/*  %{_mandir}/man1/*
298  %{_mandir}/man3/*  %exclude %{_mandir}/man1/*-config.*
 %exclude %{_mandir}/man3/*::*.3pm*  
299    
300  %files desktop  %files desktop
 %defattr(-,root,root)  
301  %{_datadir}/applications/*  %{_datadir}/applications/*
302  %{_iconsdir}/%{name}.png  %{_iconsdir}/%{name}.png
303  %{_liconsdir}/%{name}.png  %{_liconsdir}/%{name}.png
# Line 316  rm -rf %{buildroot} Line 305  rm -rf %{buildroot}
305  %{_iconsdir}/hicolor/64x64/apps/%{name}.png  %{_iconsdir}/hicolor/64x64/apps/%{name}.png
306    
307  %files -n %{libname}  %files -n %{libname}
 %defattr(-,root,root,0755)  
308  %{_libdir}/libMagick++.so.%{major}*  %{_libdir}/libMagick++.so.%{major}*
309  %{_libdir}/libMagickCore.so.%{major}*  %{_libdir}/libMagickCore.so.%{major}*
310  %{_libdir}/libMagickWand.so.%{major}*  %{_libdir}/libMagickWand.so.%{major}*
311    
312  %files -n %{develname}  %files -n %{develname}
 %defattr(-,root,root)  
313  %{_includedir}/ImageMagick  %{_includedir}/ImageMagick
314  %multiarch %{multiarch_bindir}/Magick-config  %multiarch %{multiarch_bindir}/Magick-config
315  %multiarch %{multiarch_bindir}/Magick++-config  %multiarch %{multiarch_bindir}/Magick++-config
# Line 337  rm -rf %{buildroot} Line 324  rm -rf %{buildroot}
324  %{_bindir}/MagickCore-config  %{_bindir}/MagickCore-config
325  %{_bindir}/MagickWand-config  %{_bindir}/MagickWand-config
326  %{_bindir}/Wand-config  %{_bindir}/Wand-config
 %attr(0644,root,root) %{_libdir}/*.a  
 %attr(0644,root,root) %{_libdir}/*.la  
327  %{_libdir}/*.so  %{_libdir}/*.so
328  %{_libdir}/pkgconfig/*.pc  %{_libdir}/pkgconfig/*.pc
329    %{_mandir}/man1/*-config.*
330    
331  %files -n perl-Image-Magick  %files -n perl-Image-Magick
 %defattr(-,root,root)  
332  %{perl_vendorarch}/Image  %{perl_vendorarch}/Image
333  %{perl_vendorarch}/auto/Image  %{perl_vendorarch}/auto/Image
334  %{_mandir}/man3*/*::*.3pm*  %{_mandir}/man3*/*::*.3pm*
335    
336  %files doc  %files doc
 %defattr(-,root,root)  
337  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE
338  %doc QuickStart.txt installed_docs/*  %doc QuickStart.txt installed_docs/*
   
   

Legend:
Removed from v.134495  
changed lines
  Added in v.251823

  ViewVC Help
Powered by ViewVC 1.1.30