summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
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}
+