modify spec file to make dev package 79/92079/1 accepted/tizen/3.0/common/20161114.112322 accepted/tizen/common/20161021.110942 accepted/tizen/ivi/20161028.150329 accepted/tizen/mobile/20161028.150240 accepted/tizen/tv/20161028.150253 accepted/tizen/wearable/20161028.150310 submit/tizen/20161021.011247 submit/tizen_3.0_common/20161104.104000
authorgreatim <jaewon81.lim@samsung.com>
Thu, 13 Oct 2016 07:30:08 +0000 (16:30 +0900)
committergreatim <jaewon81.lim@samsung.com>
Thu, 13 Oct 2016 07:30:08 +0000 (16:30 +0900)
To support pkgconfig for sdbd plugin,
modify spec file to make dev package

Change-Id: Ic9095cab424273d1ca3c526a779f5a4c23556abb
Signed-off-by: greatim <jaewon81.lim@samsung.com>
packaging/sdbd.pc [new file with mode: 0755]
packaging/sdbd.spec

diff --git a/packaging/sdbd.pc b/packaging/sdbd.pc
new file mode 100755 (executable)
index 0000000..8221e52
--- /dev/null
@@ -0,0 +1,9 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: sdbd
+Description: sdb daemon
+Version: 3.0
+Cflags: -I${includedir}/sdb
index a880c80aff5467efa793b7d2d5b4d98f781d5e84..1cf6758280b268f5fee11a27407b44bf82db6411 100644 (file)
@@ -30,6 +30,12 @@ Requires: dbus
 %description
 Description: SDB daemon.
 
+%package -n sdbd-devel
+Summary:       SDBD plugin API
+Group:         Development/Libraries
+
+%description -n sdbd-devel
+SDBD plugin API library
 
 %prep
 %setup -q
@@ -85,6 +91,12 @@ install -m 755 script/sdk_launch %{buildroot}%{_prefix}/sbin/
 mkdir -p %{buildroot}%{TZ_SYS_BIN}
 install -m 755 script/profile_command %{buildroot}%{TZ_SYS_BIN}/
 
+mkdir -p %{buildroot}%{_includedir}/sdb/
+install -m 0644 src/sdbd_plugin.h %{buildroot}%{_includedir}/sdb/
+
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -m 0644 packaging/sdbd.pc %{buildroot}%{_libdir}/pkgconfig/
+
 %post
 . %{_sysconfdir}/tizen-platform.conf
 if ! getent passwd "${TZ_SDK_USER_NAME}" > /dev/null; then
@@ -113,4 +125,8 @@ fi
 /usr/share/license/%{name}
 %{TZ_SYS_BIN}/profile_command
 
+%files -n sdbd-devel
+%{_includedir}/sdb/sdbd_plugin.h
+%{_libdir}/pkgconfig/sdbd.pc
+
 %changelog