pango.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ##
  2. ## pango.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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 version
  26. %define V_pango 1.2.5
  27. %define V_glib_major 2.2
  28. %define V_gtk_major 2.2
  29. # package information
  30. Name: pango
  31. Summary: The GTK Accessability Toolkit
  32. URL: http://www.pango.org/
  33. Vendor: The Gtk Project
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [PLUS]
  36. Group: XWindow
  37. License: GPL
  38. Version: %{V_pango}
  39. Release: 20030827
  40. # list of sources
  41. Source0: ftp://ftp.gtk.org/pub/gtk/v%{V_gtk_major}/pango-%{V_pango}.tar.gz
  42. Patch0: pango.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20021218, X11, make, gcc
  47. BuildPreReq: glib2 >= %{V_glib_major}, libiconv, freetype, fontconfig
  48. PreReq: OpenPKG, openpkg >= 20021218, X11
  49. PreReq: glib2 >= %{V_glib_major}, libiconv, freetype, fontconfig
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. Pango is a library for layout and rendering of text, with an
  54. emphasis on internationalization. Pango can be used anywhere that
  55. text layout is needed; however, most of the work on Pango was done
  56. using the Gtk+ widget toolkit as a test platform. Pango forms the
  57. core of text and font handling for Gtk+.
  58. %prep
  59. %setup -q -n pango-%{version}
  60. %patch -p0
  61. %{l_shtool} subst \
  62. -e 's;/pango-1\.0;/pango;g' \
  63. -e 's;lib\(p[a-zA-Z0-9]*\)-1.0;lib\1;g' \
  64. -e 's;lib\(p[a-zA-Z0-9]*\)-\$(PANGO_API_VERSION);lib\1;g' \
  65. -e 's;-@PANGO_API_VERSION@;;g' \
  66. -e '/moduledir =/s;/\$(PANGO_MODULE_VERSION);;g' \
  67. -e 's;\(pango_querymodules_LDFLAGS *=\);\1 -static;' \
  68. Makefile.in */Makefile.in */*/Makefile.in \
  69. pango\*.pc.in
  70. # hangul requires Xft2
  71. %{l_shtool} subst \
  72. -e 's;\$hangul_modules,;;' \
  73. configure
  74. %build
  75. CC="%{l_cc}" \
  76. CFLAGS="%{l_cflags -O}" \
  77. CPPFLAGS="%{l_cppflags}" \
  78. LDFLAGS="%{l_ldflags}" \
  79. ./configure \
  80. --prefix=%{l_prefix} \
  81. --with-x \
  82. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  83. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  84. --with-html-dir="%{l_prefix}/share/pango" \
  85. --disable-nls \
  86. --with-native-locale=no \
  87. --with-included-modules=yes \
  88. --enable-shm \
  89. --disable-debug \
  90. --disable-rebuilds \
  91. --enable-static
  92. %{l_make} %{l_mflags -O}
  93. %install
  94. rm -rf $RPM_BUILD_ROOT
  95. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  96. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  97. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
  98. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.so
  99. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.so.*
  100. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/pango/modules/*.la
  101. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/pango/modules/*.a
  102. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc
  103. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  104. %{l_files_std} \
  105. '%not %dir %{l_prefix}/lib/pkgconfig'
  106. %files -f files
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT