glib.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## glib.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 versions
  26. %define V_glib_major 1.2
  27. %define V_glib_minor 10
  28. # package information
  29. Name: glib
  30. Summary: The Gtk Utility Library
  31. URL: http://www.gtk.org/
  32. Vendor: The Gtk Project
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [BASE]
  35. Group: Algorithm
  36. License: GPL
  37. Version: %{V_glib_major}.%{V_glib_minor}
  38. Release: 20030708
  39. # package options
  40. %option with_threads no
  41. # list of sources
  42. Source0: ftp://ftp.gtk.org/pub/gtk/v1.2/glib-%{version}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206
  47. PreReq: OpenPKG, openpkg >= 20020206
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. GLib is the low-level core library that forms the basis of GTK+
  52. and GNOME. It provides data structure handling for C, portability
  53. wrappers, and interfaces for such runtime functionality as an
  54. event loop, threads, dynamic loading, and an object system.
  55. %prep
  56. %setup -q
  57. %{l_shtool} subst \
  58. -e 's;glib-%{V_glib_major};glib;g' \
  59. Makefile.in glib-config.in glib.pc.in \
  60. gmodule/Makefile.in
  61. %build
  62. CC="%{l_cc}" \
  63. CFLAGS="%{l_cflags -O}" \
  64. ./configure \
  65. --prefix=%{l_prefix} \
  66. --disable-debug \
  67. --disable-shared \
  68. %if "%{with_threads}" == "yes"
  69. --enable-threads
  70. %else
  71. --disable-threads
  72. %endif
  73. %{l_make} %{l_mflags -O}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  77. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  79. %{l_files_std} \
  80. '%not %dir %{l_prefix}/share/aclocal'
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT