summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 12:30:18 (GMT)
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 12:30:18 (GMT)
commitc299d98bfc1832f99ec09011db22c84e1db7b457 (patch)
treee3fffbb3d65d49741f875f7df279027cf62850ec /packaging
parent694c655fdd1ea14c6fa9bba1b3f273be7efd3fc4 (diff)
downloadlibtbm-exynos4412-c299d98bfc1832f99ec09011db22c84e1db7b457.zip
libtbm-exynos4412-c299d98bfc1832f99ec09011db22c84e1db7b457.tar.gz
libtbm-exynos4412-c299d98bfc1832f99ec09011db22c84e1db7b457.tar.bz2
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libtbm-exynos4412.spec52
1 files changed, 52 insertions, 0 deletions
diff --git a/packaging/libtbm-exynos4412.spec b/packaging/libtbm-exynos4412.spec
new file mode 100644
index 0000000..fe91e61
--- /dev/null
+++ b/packaging/libtbm-exynos4412.spec
@@ -0,0 +1,52 @@
+Name: libtbm-exynos4412
+Version: 1.0.7
+Release: 1
+License: MIT
+Summary: Tizen Buffer Manager - exynos4412 backend
+Group: System/Libraries
+ExcludeArch: i586
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: pkgconfig(pthread-stubs)
+BuildRequires: pkgconfig(libdrm)
+BuildRequires: pkgconfig(libdrm_exynos)
+BuildRequires: pkgconfig(libtbm)
+BuildRequires: pkgconfig(dlog)
+
+%if ("%{tizen_profile_name}" == "wearable" && "%{_repository}" == "target-b3")
+Excludearch: %arm
+%endif
+
+%description
+descriptionion: Tizen Buffer manager backend module for exynos4412
+
+%prep
+%setup -q
+
+%build
+
+%reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr --disable-cachectrl \
+ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+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_exynos4412.so %{_libdir}/bufmgr/libtbm_default.so
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest libtbm-exynos4412.manifest
+%{_libdir}/bufmgr/libtbm_*.so*
+/usr/share/license/%{name}
+