summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-24 15:28:51 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-24 15:28:51 +0900
commitfb566a5dc4dd16d5da9adb66b8fff2d2db8b64fe (patch)
tree2f41b52c523d2119812e6171395acb2a61b871e6 /packaging
parent1f4c1f8cacc59ffc401fa3af9447d35988e29809 (diff)
downloadlibtbm-sc7727-tizen_2.4.tar.gz
libtbm-sc7727-tizen_2.4.tar.bz2
libtbm-sc7727-tizen_2.4.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libtbm-sprd7727.spec44
1 files changed, 44 insertions, 0 deletions
diff --git a/packaging/libtbm-sprd7727.spec b/packaging/libtbm-sprd7727.spec
new file mode 100644
index 0000000..4921be6
--- /dev/null
+++ b/packaging/libtbm-sprd7727.spec
@@ -0,0 +1,44 @@
+Name: libtbm-sprd7727
+Version: 1.0.1
+Release: 0
+License: Samsung
+Summary: Tizen Buffer Manager - sprd7727 backend
+Group: System/Libraries
+ExcludeArch: i586
+Source0: %{name}-%{version}.tar.gz
+
+%if ("%{tizen_target_name}" != "Z130H" && "%{tizen_target_name}" != "Z300H")
+Excludearch: %arm
+%endif
+
+%description
+descriptionion: ${summary}
+
+%prep
+%setup -q
+
+%build
+
+autoreconf -vfi
+./configure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr
+
+make %{?jobs:-j%jobs}
+
+%install
+mkdir -p %{buildroot}/usr/share/license
+mkdir -p %{buildroot}%{_libdir}
+cp -af COPYING %{buildroot}/usr/share/license/%{name}
+%make_install
+
+
+%post
+if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
+ rm -rf %{_libdir}/bufmgr/libtbm_default.so
+fi
+ln -s libtbm_sprd7727.so.0.0.0 %{_libdir}/bufmgr/libtbm_default.so
+
+%postun -p /sbin/ldconfig
+
+%files
+/usr/share/license/%{name}
+%{_libdir}/bufmgr/libtbm_*.so*