giflib.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## giflib.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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. # package information
  26. Name: giflib
  27. Summary: Graphics Interchange Format Library
  28. URL: http://prtr-13.ucsc.edu/~badger/software/libungif/
  29. Vendor: Gershon Elbor, Eric S. Raymond, Toshio Kuratomi
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: Graphics
  33. License: LGPL
  34. Version: 4.1.0
  35. Release: 20020405
  36. # list of sources
  37. Source0: ftp://prtr-13.ucsc.edu/pub/libungif/giflib-%{version}.tar.gz
  38. Source1: ftp://prtr-13.ucsc.edu/pub/libungif/libungif-%{version}.tar.gz
  39. Source2: ftp://ftp.gnu.org/gnu/libtool/libtool-1.3.5.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020206
  44. PreReq: OpenPKG, openpkg >= 20020206
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. These are manipulation libraries for Graphics Interchange Format
  49. (GIF) images. This package contains both giflib (supports
  50. compression but requires licensing) and libungif (supports no
  51. compression, hence does not require licensing). Both are source and
  52. binary compatible.
  53. %prep
  54. %setup0 -q -c
  55. %setup1 -q -T -D -a 1
  56. %setup2 -q -T -D -a 2
  57. for file in ltmain.sh ltconfig config.guess config.sub; do
  58. cp libtool-*/$file giflib-%{version}/
  59. cp libtool-*/$file libungif-%{version}/
  60. done
  61. %build
  62. ( cd giflib-%{version}
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --without-x \
  68. --disable-shared
  69. %{l_make} %{l_mflags -O}
  70. )
  71. ( cd libungif-%{version}
  72. CC="%{l_cc}" \
  73. CFLAGS="%{l_cflags -O}" \
  74. ./configure \
  75. --prefix=%{l_prefix} \
  76. --without-x \
  77. --disable-shared
  78. %{l_make} %{l_mflags -O}
  79. )
  80. %install
  81. rm -rf $RPM_BUILD_ROOT
  82. ( cd giflib-%{version}
  83. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  84. )
  85. ( cd libungif-%{version}
  86. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  87. )
  88. rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin
  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