dbus.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. ##
  2. ## dbus.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://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. # FIXME: rse: filesystem layout has to be still adjusted for non-versioned subdirs
  25. # FIXME: rse: a run-command script is required for the daemon
  26. # package information
  27. Name: dbus
  28. Summary: Message Bus System
  29. URL: http://www.freedesktop.org/Software/dbus
  30. Vendor: Freedesktop Project
  31. Packager: OpenPKG
  32. Distribution: OpenPKG
  33. Class: EVAL
  34. Group: System
  35. License: AFL/GPL
  36. Version: 0.91
  37. Release: 20060725
  38. # list of sources
  39. Source0: http://dbus.freedesktop.org/releases/dbus-%{version}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, pkgconfig
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. BuildPreReq: libxml
  46. PreReq: libxml
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. D-BUS is a message bus system, a simple way for applications to
  51. talk to one another. D-BUS supplies both a system daemon and a
  52. per-user-login-session daemon. Also, the message bus is built on top
  53. of a general one-to-one message passing framework, which can be used
  54. by any two apps to communicate directly (without going through the
  55. message bus daemon).
  56. %track
  57. prog dbus = {
  58. version = %{version}
  59. url = http://dbus.freedesktop.org/releases/
  60. regex = dbus-(__VER__)\.tar\.gz
  61. }
  62. %prep
  63. %setup -q
  64. %{l_shtool} subst \
  65. -e 's;#! /bin/bash;#!%{l_bash};' \
  66. tools/run-with-tmp-session-bus.sh
  67. %build
  68. CC="%{l_cc}" \
  69. CFLAGS="%{l_cflags -O}" \
  70. CPPFLAGS="%{l_cppflags}" \
  71. LDFLAGS="%{l_ldflags}" \
  72. ./configure \
  73. --prefix=%{l_prefix} \
  74. --localstatedir=%{l_prefix}/var/dbus \
  75. --without-x \
  76. --disable-qt \
  77. --disable-qt3 \
  78. --disable-glib \
  79. --disable-gtk \
  80. --disable-tests \
  81. --disable-ansi \
  82. --disable-verbose-mode \
  83. --disable-asserts \
  84. --disable-checks \
  85. --disable-xml-docs \
  86. --disable-doxygen-docs \
  87. --disable-gcov \
  88. --disable-abstract-sockets \
  89. --disable-gcj \
  90. --disable-mono \
  91. --disable-mono-docs \
  92. --disable-python \
  93. --disable-selinux \
  94. --disable-dnotify \
  95. --disable-shared \
  96. --with-xml=libxml \
  97. --with-session-socket-dir=%{l_prefix}/var/dbus/run \
  98. --with-system-pid-file=%{l_prefix}/var/dbus/run \
  99. --with-system-socket=%{l_prefix}/var/dbus/run/dbus.socket \
  100. --with-console-auth-dir=%{l_prefix}/var/dbus/run \
  101. --with-dbus-user=%{l_rusr}
  102. %{l_make} %{l_mflags -O}
  103. %install
  104. rm -rf $RPM_BUILD_ROOT
  105. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  106. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  107. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  108. %files -f files
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT