From: greatim Date: Thu, 13 Oct 2016 07:30:08 +0000 (+0900) Subject: modify spec file to make dev package X-Git-Tag: submit/tizen/20161021.011247^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132b5df548d46f1c378bd6e6ef2a9b5dbf65907b;p=sdk%2Ftarget%2Fsdbd.git modify spec file to make dev package To support pkgconfig for sdbd plugin, modify spec file to make dev package Change-Id: Ic9095cab424273d1ca3c526a779f5a4c23556abb Signed-off-by: greatim --- diff --git a/packaging/sdbd.pc b/packaging/sdbd.pc new file mode 100755 index 0000000..8221e52 --- /dev/null +++ b/packaging/sdbd.pc @@ -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 diff --git a/packaging/sdbd.spec b/packaging/sdbd.spec index a880c80..1cf6758 100644 --- a/packaging/sdbd.spec +++ b/packaging/sdbd.spec @@ -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