imagemagick.spec 4.1 KB

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