summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjy910.yun <jy910.yun@samsung.com>2013-02-26 16:06:47 +0900
committerjy910.yun <jy910.yun@samsung.com>2013-02-26 16:07:44 +0900
commitf440d7952681e9bf4540f795cc709c9010c7024d (patch)
tree216eda99728aba84d4820fcfb194e054a6dd32dd /packaging
parentcdefbf11af164d3f3a7fbfebb7dfa8ff76e2b436 (diff)
downloadlibdevice-node-f440d7952681e9bf4540f795cc709c9010c7024d.tar.gz
libdevice-node-f440d7952681e9bf4540f795cc709c9010c7024d.tar.bz2
libdevice-node-f440d7952681e9bf4540f795cc709c9010c7024d.zip
Create new Library to control OAL APIssubmit/trunk/20130226.073610
separate some code about OAL from devman This module is a Library to control OAL APIs only used by system f/w Change-Id: I8ea27904950f402922d4df315c02881c70fb65ac
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libdevice-node.manifest21
-rw-r--r--packaging/libdevice-node.spec61
2 files changed, 82 insertions, 0 deletions
diff --git a/packaging/libdevice-node.manifest b/packaging/libdevice-node.manifest
new file mode 100644
index 0000000..843f460
--- /dev/null
+++ b/packaging/libdevice-node.manifest
@@ -0,0 +1,21 @@
+<manifest>
+ <define>
+ <domain name="device"/>
+ <provide>
+ <label name="device::camera"/>
+ <label name="device::app_logging"/>
+ <label name="device::sys_logging"/>
+ <label name="device::audio"/>
+ <label name="device::recording"/>
+ <label name="device::hwcodec"/>
+ <label name="device::video"/>
+ <label name="device::radio"/>
+ <label name="device::bklight"/>
+ <label name="device::led"/>
+ <label name="device::mdnie"/>
+ </provide>
+ </define>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libdevice-node.spec b/packaging/libdevice-node.spec
new file mode 100644
index 0000000..c8a9640
--- /dev/null
+++ b/packaging/libdevice-node.spec
@@ -0,0 +1,61 @@
+Name: libdevice-node
+Summary: Library to control OAL APIs
+Version: 0.1.0
+Release: 0
+Group: System/Libraries
+License: Apache License, Version 2.0
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.manifest
+BuildRequires: cmake
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(dlog)
+
+%description
+development package of library to control OAL APIs
+
+%package devel
+Summary: Control OAL APIs (devel)
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Library to control OAL APIs (devel)
+
+
+%prep
+%setup -q
+
+%build
+CFLAGS="$CFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/device-node
+%make_install
+cp -a %{SOURCE1} %{buildroot}%{_datadir}/
+install -D -d %{buildroot}/etc/rc.d/rc3.d/
+install -D -d %{buildroot}/etc/rc.d/rc4.d/
+ln -sf ../init.d/smack_device_labeling %{buildroot}/etc/rc.d/rc3.d/S44smack_device_labeling
+ln -sf ../init.d/smack_device_labeling %{buildroot}/etc/rc.d/rc4.d/S44smack_device_labeling
+
+%post
+if [ ! -e "/lib/firmware/mdnie" ]
+then
+ mkdir -p /lib/firmware/mdnie
+fi
+
+%postun
+
+%files
+%{_libdir}/*.so.*
+%{_libdir}/udev/rules.d/*
+%{_datadir}/license/device-node
+%attr(755,root,root) %{_sysconfdir}/rc.d/*
+%manifest %{_datadir}/%{name}.manifest
+
+%files devel
+%{_includedir}/device-node/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc