|
|
|
@ -31,8 +31,8 @@ Distribution: OpenPKG Community
|
|
|
|
|
Class: EVAL |
|
|
|
|
Group: RPC |
|
|
|
|
License: AFL/GPL |
|
|
|
|
Version: 1.1.1 |
|
|
|
|
Release: 20080101 |
|
|
|
|
Version: 1.2.16 |
|
|
|
|
Release: 20100105 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://dbus.freedesktop.org/releases/dbus/dbus-%{version}.tar.gz |
|
|
|
@ -44,8 +44,8 @@ Prefix: %{l_prefix}
|
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, pkgconfig, gcc |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20040130 |
|
|
|
|
BuildPreReq: libxml |
|
|
|
|
PreReq: libxml |
|
|
|
|
BuildPreReq: expat |
|
|
|
|
PreReq: expat |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
|
|
|
|
@ -68,61 +68,23 @@ AutoReqProv: no
|
|
|
|
|
%setup -q |
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
# adjust filesystem layout |
|
|
|
|
%build |
|
|
|
|
# configure package |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;^\(cat[^|]*|\).*;\1 sed -e "s/\\(<listen>unix:tmpdir=\\)\[^<\]\*/\\1\\/tmp/" | \\;' \ |
|
|
|
|
-e 's;#! /bin/bash;#!%{l_bash};' \ |
|
|
|
|
tools/run-with-tmp-session-bus.sh |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;/dbus-1\.0;;g' \ |
|
|
|
|
-e 's;dbus-1;dbus;g' \ |
|
|
|
|
-e 's;\(-I\${libdir}\).*;\1/dbus/include;g' \ |
|
|
|
|
dbus-1.pc.in |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;-1\.la;.la;g' \ |
|
|
|
|
test/name-test/Makefile.in dbus/Makefile.in tools/Makefile.in |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;/dbus-1\.0;;g' \ |
|
|
|
|
-e 's;/dbus-1;;g' \ |
|
|
|
|
dbus/Makefile.in tools/Makefile.in bus/Makefile.in bus/session.conf.in bus/dbus-daemon.1.in |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;\(\$(localstatedir)/run\)/dbus;\1;g' \ |
|
|
|
|
bus/Makefile.in |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;^\(dbusarchincludedir *= *\$(libdir)\)\(/include/dbus\);\1/dbus\2;g' \ |
|
|
|
|
dbus/Makefile.in |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;^\(LIBTOOL=.\)[^\ ]*;\1/bin/sh;' \ |
|
|
|
|
configure |
|
|
|
|
|
|
|
|
|
# platform specific fixes |
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
*-sunos* ) |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;readdir_r;__posix_readdir_r;' \ |
|
|
|
|
dbus/dbus-sysdeps-util-unix.c |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;^\(Libs: -L\${libdir} -ldbus[^ ]*\);\1 -lsocket -lnsl;' \ |
|
|
|
|
dbus-1.pc.in |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# configure package |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O} -pthread" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags} -pthread" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--mandir=%{l_prefix}/man \ |
|
|
|
|
--datadir=%{l_prefix}/share/dbus \ |
|
|
|
|
--sysconfdir=%{l_prefix}/etc/dbus \ |
|
|
|
|
--localstatedir=%{l_prefix}/var/dbus \ |
|
|
|
|
--without-x \ |
|
|
|
|
--disable-qt \ |
|
|
|
|
--disable-qt3 \ |
|
|
|
|
--disable-glib \ |
|
|
|
|
--disable-gtk \ |
|
|
|
|
--disable-tests \ |
|
|
|
|
--disable-ansi \ |
|
|
|
|
--disable-verbose-mode \ |
|
|
|
@ -132,14 +94,10 @@ AutoReqProv: no
|
|
|
|
|
--disable-doxygen-docs \ |
|
|
|
|
--disable-gcov \ |
|
|
|
|
--disable-abstract-sockets \ |
|
|
|
|
--disable-gcj \ |
|
|
|
|
--disable-mono \ |
|
|
|
|
--disable-mono-docs \ |
|
|
|
|
--disable-python \ |
|
|
|
|
--disable-selinux \ |
|
|
|
|
--disable-dnotify \ |
|
|
|
|
--disable-shared \ |
|
|
|
|
--with-xml=libxml \ |
|
|
|
|
--with-xml=expat \ |
|
|
|
|
--with-session-socket-dir=%{l_prefix}/var/dbus/run \ |
|
|
|
|
--with-system-pid-file=%{l_prefix}/var/dbus/run/dbus.pid \ |
|
|
|
|
--with-system-socket=%{l_prefix}/var/dbus/run/dbus.socket \ |
|
|
|
|