From c67026808d3ab28c85b93306122f623de07dcb7f Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Mon, 14 Oct 2013 16:40:53 -0300 Subject: [PATCH] Added tizen packaging Change-Id: I2a53542f9a1f8a8b84af540ad2136b0bc170381e Signed-off-by: Eduardo Lima (Etrunko) --- .gbs.conf | 3 ++ packaging/eldbus.changes | 2 ++ packaging/eldbus.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 .gbs.conf create mode 100644 packaging/eldbus.changes create mode 100644 packaging/eldbus.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..99e7cc8 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = upstream/${upstreamversion} diff --git a/packaging/eldbus.changes b/packaging/eldbus.changes new file mode 100644 index 0000000..0eeed06 --- /dev/null +++ b/packaging/eldbus.changes @@ -0,0 +1,2 @@ +* Wed Oct 16 2013 Eduardo Lima (Etrunko) upstream/1.7.8@ee47fd3 +- Added tizen packaging diff --git a/packaging/eldbus.spec b/packaging/eldbus.spec new file mode 100644 index 0000000..789e546 --- /dev/null +++ b/packaging/eldbus.spec @@ -0,0 +1,72 @@ +Name: eldbus +Summary: Easy access to D-Bus from EFL applications +Version: 1.7.8 +Release: 1 +Group: System/Libraries +License: LGPL-2.1 +Source0: %{name}-%{version}.tar.bz2 +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: pkgconfig(ecore) +BuildRequires: pkgconfig(eina) +BuildRequires: dbus-devel + +%description +Eldbus allows connecting to both system and session buses acting as +both client and service roles. + +This is a replacement for old library "edbus". Its main purpose is to +fix some core bugs and completely encapsulating D-Bus without exposing +libdbus to end-user. One day libdbus may be completely removed as a +dependency. + + +%package devel +Summary: Easy access to D-Bus from EFL applications +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Eldbus allows connecting to both system and session buses acting as +both client and service roles. + +This is a replacement for old library "edbus". Its main purpose is to +fix some core bugs and completely encapsulating D-Bus without exposing +libdbus to end-user. One day libdbus may be completely removed as a +dependency. + + +%prep +%setup -q + + +%build +export CFLAGS+=" -fvisibility=hidden -fPIC" +export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed" + +%configure --disable-static + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install +mkdir -p %{buildroot}/usr/share/license +cp %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/*.so.* +%{_bindir}/%{name}* +/usr/share/license/%{name} + +%files devel +%defattr(-,root,root,-) +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/%{name}*/ -- 2.7.4