imagemagick.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.3.9
  34. Release: 0
  35. # list of sources
  36. Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{version}.tar.gz
  37. # build information
  38. Prefix: %{l_prefix}
  39. BuildRoot: %{l_buildroot}
  40. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  41. PreReq: OpenPKG, openpkg >= 0.9-33
  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. CC="%{l_cc}" \
  58. CFLAGS="%{l_cflags -O}" \
  59. ./configure \
  60. --prefix=%{l_prefix} \
  61. --without-magick-plus-plus \
  62. --enable-lzw \
  63. --without-perl \
  64. --without-x
  65. %{l_make} %{l_mflags -O}
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_make} %{l_mflags} install \
  69. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  70. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  71. pkgdocdir=$RPM_BUILD_ROOT%{l_prefix}/share/ImageMagick
  72. ( cd $RPM_BUILD_ROOT%{l_prefix} || exit 1
  73. rm -rf lib/ImageMagick
  74. rm -f bin/Magick-config
  75. rm -f bin/cgimagick
  76. rm -f bin/iptcutil
  77. rm -f man/man1/Magick-config.1
  78. rm -f man/man4/miff.4
  79. rm -rf include
  80. rm -rf lib
  81. rm -rf share/ImageMagick/www
  82. rm -f share/ImageMagick/*.txt
  83. rm -f share/ImageMagick/*.html
  84. rm -rf share/ImageMagick/images
  85. )
  86. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  87. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  88. %files -f files
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT