Adding spec file for gbs build.
authorLukasz Stempien <l.stempien@samsung.com>
Wed, 4 Sep 2013 09:08:19 +0000 (11:08 +0200)
committerLukasz Stempien <l.stempien@samsung.com>
Wed, 4 Sep 2013 09:09:47 +0000 (11:09 +0200)
Change-Id: I3e0cdbf3095973c7419a448138b67407aa93e167

packaging/com.samsung.dbus.spec [new file with mode: 0644]

diff --git a/packaging/com.samsung.dbus.spec b/packaging/com.samsung.dbus.spec
new file mode 100644 (file)
index 0000000..273ca86
--- /dev/null
@@ -0,0 +1,44 @@
+Name:          com.samsung.dbus
+Summary:       D-Bus message bus with kdbus support
+Version:       1.7.5
+Release:       0
+Group:         System/Libraries
+License:       GPLv2+ or AFL
+Source0:       %{name}-%{version}.tar.gz
+BuildRequires:  which
+BuildRequires:  expat-devel
+BuildRequires:  libtool
+BuildRequires:  openssl-devel
+BuildRequires:  pkgconfig(x11)
+
+
+%description
+D-Bus message bus with kdbus support
+
+%prep
+%setup -q -n %{name}-%{version}
+
+
+%build
+./autogen.sh --enable-abstract-sockets --enable-x11-autolaunch --with-x
+
+# When compiled using gbs with --enable-abstract-sockets param autogen.sh creates a config.h in
+# /GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0 with # /* #undef HAVE_ABSTRACT_SOCKETS */.
+# Code changes it to #define HAVE_ABSTRACT_SOCKETS 1.
+if grep -q "#define HAVE_ABSTRACT_SOCKETS\s1" config.h; then
+       echo HAVE_ABSTRACT_SOCKETS found.
+else
+       echo HAVE_ABSTRACT_SOCKETS not found. Adding it.
+       sed -i 's/\/\* #undef HAVE_ABSTRACT_SOCKETS \*\//#define HAVE_ABSTRACT_SOCKETS 1/' config.h
+fi
+
+make %{?jobs:-j%jobs}
+
+%install
+
+%post
+mkdir -p /opt/var/lib/dbus
+
+
+%files
+