imagemagick.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. %define V_major 5.3.9
  25. %define V_minor .1
  26. # package information
  27. Name: imagemagick
  28. Summary: Graphic Image Conversion Tool
  29. URL: http://www.imagemagick.org/
  30. Vendor: John Cristy
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Graphics
  34. License: GPL
  35. Version: %{V_major}%{V_minor}
  36. Release: %{l_branch}.0
  37. # list of sources
  38. Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20011023.0
  43. PreReq: OpenPKG, openpkg >= 20011023.0
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. ImageMagick is a robust collection of tools and libraries to read,
  48. write, and manipulate an image in many image formats (over 68 major
  49. formats) including popular formats like TIFF, JPEG, PNG, PDF, Photo
  50. CD, and GIF. With ImageMagick you can create images dynamically,
  51. making it suitable for Web applications. You can also resize,
  52. rotate, sharpen, color reduce, or add special effects to an image
  53. and save your completed work in the same or differing image format.
  54. Image processing operations are available from the command line, as
  55. well as through C, C++, and PERL-based programming interfaces.
  56. %prep
  57. %setup -q -n ImageMagick-%{V_major}
  58. %build
  59. CC="%{l_cc}" \
  60. CFLAGS="%{l_cflags -O}" \
  61. ./configure \
  62. --prefix=%{l_prefix} \
  63. --without-magick-plus-plus \
  64. --enable-lzw \
  65. --without-perl \
  66. --without-x
  67. %{l_make} %{l_mflags -O}
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. %{l_make} %{l_mflags} install \
  71. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  72. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  73. pkgdocdir=$RPM_BUILD_ROOT%{l_prefix}/share/ImageMagick
  74. ( cd $RPM_BUILD_ROOT%{l_prefix} || exit 1
  75. rm -rf lib/ImageMagick
  76. rm -f bin/Magick-config
  77. rm -f bin/cgimagick
  78. rm -f bin/iptcutil
  79. rm -f man/man1/Magick-config.1
  80. rm -f man/man4/miff.4
  81. rm -rf include
  82. rm -rf lib
  83. rm -rf share/ImageMagick/www
  84. rm -f share/ImageMagick/*.txt
  85. rm -f share/ImageMagick/*.html
  86. rm -rf share/ImageMagick/images
  87. )
  88. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  89. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  90. %files -f files
  91. %clean
  92. rm -rf $RPM_BUILD_ROOT