freetype.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## freetype.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_one 1.3.1
  25. %define V_two 2.0.4
  26. # package information
  27. Name: freetype
  28. Summary: A TrueType Font (TTF) Rendering Library
  29. Group: Graphics
  30. URL: http://www.freetype.org/
  31. Vendor: Free Software Foundation
  32. Packager: rse@openpkg.org
  33. Distribution: OpenPKG
  34. License: GPL
  35. Version: %{V_two}
  36. Release: 2
  37. # list of sources
  38. Source0: ftp://ftp.freetype.org/pub/freetype1/freetype-%{V_one}.tar.gz
  39. Source1: ftp://ftp.freetype.org/pub/freetype2/freetype-%{V_two}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 0.9-30
  44. PreReq: OpenPKG, openpkg >= 0.9-30
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. FreeType is a full-featured rendering library for TrueType Fonts
  49. (TTF).
  50. %prep
  51. %setup0 -q -c -n freetype-%{version}
  52. %setup1 -q -T -D -a 1
  53. %build
  54. ( cd freetype-%{V_one}
  55. CC="%{l_cc}" \
  56. CFLAGS="%{l_cflags -O}" \
  57. ./configure \
  58. --prefix=$RPM_BUILD_ROOT%{l_prefix} \
  59. --disable-shared \
  60. --disable-nls
  61. %{l_make} %{l_mflags}
  62. )
  63. ( cd freetype-%{V_two}
  64. %{l_make} %{l_mflags} setup \
  65. CFG="--prefix=$RPM_BUILD_ROOT%{l_prefix}"
  66. %{l_make} %{l_mflags}
  67. )
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. ( cd freetype-%{V_one}
  71. %{l_make} %{l_mflags} install
  72. )
  73. ( cd freetype-%{V_two}
  74. %{l_make} %{l_mflags} install
  75. %{l_rpmtool} subst \
  76. 's;^\(prefix=\).*;\1%{l_prefix};' \
  77. -- $RPM_BUILD_ROOT%{l_prefix}/bin/freetype-config
  78. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*.orig
  79. )
  80. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT