imagemagick.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ##
  2. ## imagemagick.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: imagemagick
  26. Summary: Graphic Image Conversion Tool
  27. URL: http://www.imagemagick.org/
  28. Vendor: John Cristy
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Graphics
  32. License: GPL
  33. Version: 5.4.0
  34. Release: 20011124.0
  35. # list of sources
  36. Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{version}-5.tar.gz
  37. # build information
  38. Prefix: %{l_prefix}
  39. BuildRoot: %{l_buildroot}
  40. BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0, make, gcc
  41. PreReq: OpenPKG, openpkg >= 0.9-20011025.0
  42. AutoReq: no
  43. AutoReqProv: no
  44. %description
  45. ImageMagick is a robust collection of tools and libraries to read,
  46. write, and manipulate an image in many image formats (over 68 major
  47. formats) including popular formats like TIFF, JPEG, PNG, PDF, Photo
  48. CD, and GIF. With ImageMagick you can create images dynamically,
  49. making it suitable for Web applications. You can also resize,
  50. rotate, sharpen, color reduce, or add special effects to an image
  51. and save your completed work in the same or differing image format.
  52. Image processing operations are available from the command line, as
  53. well as through C, C++, and PERL-based programming interfaces.
  54. %prep
  55. %setup -q -n ImageMagick-%{version}
  56. %build
  57. PATH="%{l_prefix}/bin:$PATH"; export PATH
  58. CC="%{l_cc}" \
  59. CXX="%{l_cxx}" \
  60. CFLAGS="%{l_cflags -O}" \
  61. CXXFLAGS="%{l_cflags -O}" \
  62. ./configure \
  63. --prefix=%{l_prefix} \
  64. --without-magick-plus-plus \
  65. --enable-lzw \
  66. --without-perl \
  67. --without-threads \
  68. --without-x
  69. %{l_make} %{l_mflags}
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. PATH="%{l_prefix}/bin:$PATH"; export PATH
  73. %{l_make} %{l_mflags} install \
  74. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  75. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  76. pkgdocdir=$RPM_BUILD_ROOT%{l_prefix}/share/ImageMagick
  77. ( cd $RPM_BUILD_ROOT%{l_prefix} || exit 1
  78. rm -rf lib/ImageMagick
  79. rm -f bin/Magick-config
  80. rm -f bin/cgimagick
  81. rm -f bin/iptcutil
  82. rm -f man/man1/Magick-config.1
  83. rm -f man/man4/miff.4
  84. rm -rf include
  85. rm -rf lib
  86. rm -rf share/ImageMagick/www
  87. rm -f share/ImageMagick/*.txt
  88. rm -f share/ImageMagick/*.html
  89. rm -rf share/ImageMagick/images
  90. )
  91. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  92. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  93. %files -f files
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT