/[packages]/cauldron/imagemagick/current/SPECS/imagemagick.spec
ViewVC logotype

Diff of /cauldron/imagemagick/current/SPECS/imagemagick.spec

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

revision 5387 by pterjan, Mon Jan 10 14:29:24 2011 UTC revision 168068 by fwang, Wed Nov 16 02:16:31 2011 UTC
# Line 2  Line 2 
2  %{?_with_test: %{expand: %%global build_test 1}}  %{?_with_test: %{expand: %%global build_test 1}}
3  %{?_without_test: %{expand: %%global build_test 0}}  %{?_without_test: %{expand: %%global build_test 0}}
4    
5  %define bootstrap 0  %define bootstrap 1
6  %{?_without_bootstrap: %global bootstrap 0}  %{?_without_bootstrap: %global bootstrap 0}
7  %{?_with_bootstrap: %global bootstrap 1}  %{?_with_bootstrap: %global bootstrap 1}
8    
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.6.6  %define rversion 6.7.3
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 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    
 # S T A N D A R D   M A N D R I V A   S T U F F  
30  %define libname %mklibname magick %{major}  %define libname %mklibname magick %{major}
31  %define develname %mklibname magick -d  %define develname %mklibname magick -d
32    
# Line 47  Source12:      magick-icon_48x48.png Line 46  Source12:      magick-icon_48x48.png
46  Source13:       magick-icon_64x64.png  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
 Patch4:         ImageMagick-6.4.8-9-includedir.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
53  Patch20:        ImageMagick-6.4.8-9-fix-montageimages-test.patch  Patch20:        ImageMagick-6.4.8-9-fix-montageimages-test.patch
54    
55  Requires:       %{libname} = %{version}  Requires:       %{libname} = %{version}
56  Obsoletes:      ImageMagick < 6.3.2.9-6  Obsoletes:      ImageMagick < 6.3.2.9-6
57  Provides:       ImageMagick = %{version}-%{release}  Provides:       ImageMagick = %{version}-%{release}
58  BuildRequires:  XFree86-devel  
59  BuildRequires:  avahi-client-devel  BuildRequires:  libx11-devel
60  BuildRequires:  avahi-common-devel  BuildRequires:  libxext-devel
61  BuildRequires:  avahi-glib-devel  BuildRequires:  bzip2-devel
62  BuildRequires:  bzip2-devel  BuildRequires:  cairo-devel
63  BuildRequires:  cairo-devel  BuildRequires:  fontconfig-devel
64  BuildRequires:  chrpath  BuildRequires:  freetype2-devel >= 2.1.7
65  BuildRequires:  dbus-glib-devel  BuildRequires:  chrpath
66    BuildRequires:  graphviz-devel >= 2.9.0
67    BuildRequires:  libjasper-devel
68    BuildRequires:  libjbig-devel
69    BuildRequires:  libjpeg-devel
70    BuildRequires:  libpng-devel
71    BuildRequires:  zlib-devel
72    BuildRequires:  lcms-devel
73    BuildRequires:  lqr-devel
74    BuildRequires:  libltdl-devel
75    BuildRequires:  perl-devel
76    BuildRequires:  librsvg-devel
77    BuildRequires:  tiff-devel
78    BuildRequires:  libwmf-devel
79    BuildRequires:  libxml2-devel
80    BuildRequires:  lzma-devel
81  %if !%bootstrap  %if !%bootstrap
82  BuildRequires:  djvulibre-devel  BuildRequires:  djvulibre-devel
83  %endif  %endif
84  BuildRequires:  expat-devel  BuildRequires:  ghostscript
85  BuildRequires:  fontconfig-devel  BuildConflicts: %{develname}
 BuildRequires:  freetype2-devel >= 2.1.7  
 BuildRequires:  gd-devel  
 BuildRequires:  ghostscript  
 BuildRequires:  glib2-devel  
 BuildRequires:  gnome-vfs2-devel  
 BuildRequires:  graphviz-devel >= 2.9.0  
 BuildRequires:  lcms-devel >= 1.15  
 BuildRequires:  libGConf2-devel  
 BuildRequires:  libcroco0.6-devel  
 BuildRequires:  libexif-devel  
 BuildRequires:  libgdk_pixbuf2.0-devel  
 BuildRequires:  libgsf-devel  
 BuildRequires:  libjasper-devel  
 BuildRequires:  libjbig-devel  
 BuildRequires:  libltdl-devel >= 1.4.3-10  
 BuildRequires:  librsvg-devel  
 BuildRequires:  libwmf  
 BuildRequires:  libwmf-devel  
 BuildRequires:  libxml2-devel  
 BuildRequires:  lqr-devel  
 BuildRequires:  openssl-devel  
 BuildRequires:  pango-devel  
 BuildRequires:  perl-devel  
 BuildRequires:  pixman-devel  
 BuildRequires:  tiff-devel  
 BuildConflicts: %{develname}  
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot  
86    
87  %description  %description
88  ImageMagick is a powerful image display, conversion and manipulation tool. It  ImageMagick is a powerful image display, conversion and manipulation tool. It
# Line 103  runs in an X session. With this tool, yo Line 90  runs in an X session. With this tool, yo
90  of image formats.  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 Mandriva Linux: 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 tetex-dvips
95  transfig ufraw xdg-utils zip autotrace povray  transfig ufraw xdg-utils zip autotrace povray
96    
# Line 172  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 182  This package contains HTML/PDF documenta Line 170  This package contains HTML/PDF documenta
170    
171  %patch0 -p1 -b .docdir  %patch0 -p1 -b .docdir
172  #patch1 -p1  #patch1 -p1
 %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 199  export CFLAGS="%{optflags} -fno-strict-a Line 186  export CFLAGS="%{optflags} -fno-strict-a
186  export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"  export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
187    
188  # don't use icecream  # don't use icecream
189  export PATH=/bin:/usr/bin:/usr/X11R6/bin  export PATH=/bin:/usr/bin
190    
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 256  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' | xargs rm
247        %{buildroot}%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/filters/*.a \  rm -f %{buildroot}%{_libdir}/libltdl*
       %{buildroot}%{_libdir}/libltdl*  
248    
249  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick-config
250  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config  %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config
# Line 282  install -m 644 magick-icon_64x64.png %{b Line 268  install -m 644 magick-icon_64x64.png %{b
268    
269    
270  install -m 755 -d %{buildroot}%{_datadir}/applications/  install -m 755 -d %{buildroot}%{_datadir}/applications/
271  cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF  cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
272  [Desktop Entry]  [Desktop Entry]
273  Name=ImageMagick  Name=ImageMagick
274  Comment=Views Graphics files  Comment=Views Graphics files
# Line 290  Exec=%{_bindir}/xterm -geometry 40x15 -t Line 276  Exec=%{_bindir}/xterm -geometry 40x15 -t
276  Icon=%{name}  Icon=%{name}
277  Terminal=false  Terminal=false
278  Type=Application  Type=Application
279  Categories=X-MandrivaLinux-Office-Graphs;Graphics;Viewer;  Categories=Graphics;Viewer;
280  EOF  EOF
281    
 %if %mdkversion < 200900  
 %post desktop  
 %update_menus  
 %endif  
   
 %if %mdkversion < 200900  
 %postun desktop  
 %clean_menus  
 %endif  
   
 %if %mdkversion < 200900  
 %post -n %{libname} -p /sbin/ldconfig  
 %endif  
   
 %if %mdkversion < 200900  
 %postun -n %{libname} -p /sbin/ldconfig  
 %endif  
   
282  %clean  %clean
283  rm -rf %{buildroot}  rm -rf %{buildroot}
284    
285  %files  %files
286  %defattr(-,root,root)  %defattr(-,root,root)
287  %doc README.txt  %doc README.txt
288    %{_sysconfdir}/ImageMagick
289  %{_bindir}/animate  %{_bindir}/animate
290  %{_bindir}/compare  %{_bindir}/compare
291  %{_bindir}/composite  %{_bindir}/composite
# Line 331  rm -rf %{buildroot} Line 300  rm -rf %{buildroot}
300  %dir %{_libdir}/ImageMagick-%{rversion}  %dir %{_libdir}/ImageMagick-%{rversion}
301  %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}  %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}
302  %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders  %dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders
 %dir %{_libdir}/ImageMagick-%{rversion}/config  
303  %{_datadir}/ImageMagick-%{rversion}  %{_datadir}/ImageMagick-%{rversion}
 %{_libdir}/ImageMagick-%{rversion}/config/*.xml  
 #%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/filters  
 #%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders/*.so  
 #%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders/*.la  
304  %{_mandir}/man1/*  %{_mandir}/man1/*
305  %{_mandir}/man3/*  %{_mandir}/man3/*
306  %exclude %{_mandir}/man3/*::*.3pm*  %exclude %{_mandir}/man3/*::*.3pm*
# Line 371  rm -rf %{buildroot} Line 335  rm -rf %{buildroot}
335  %{_bindir}/MagickCore-config  %{_bindir}/MagickCore-config
336  %{_bindir}/MagickWand-config  %{_bindir}/MagickWand-config
337  %{_bindir}/Wand-config  %{_bindir}/Wand-config
 %attr(0644,root,root) %{_libdir}/*.a  
 %attr(0644,root,root) %{_libdir}/*.la  
338  %{_libdir}/*.so  %{_libdir}/*.so
339  %{_libdir}/pkgconfig/*.pc  %{_libdir}/pkgconfig/*.pc
340    
# Line 386  rm -rf %{buildroot} Line 348  rm -rf %{buildroot}
348  %defattr(-,root,root)  %defattr(-,root,root)
349  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE  %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE
350  %doc QuickStart.txt installed_docs/*  %doc QuickStart.txt installed_docs/*
   
   

Legend:
Removed from v.5387  
changed lines
  Added in v.168068

  ViewVC Help
Powered by ViewVC 1.1.30