const char *LIB_INSTALL_PATH = "/vendor/lib/omx/";
const char *LIB64_INSTALL_PATH = "/vendor/lib64/omx/";
#else
+#ifdef TIZEN_FEATURE_NEW_HAL_PATH
+ const char *LIB_INSTALL_PATH = HAL_LIBDIR"/omx/";
+ const char *LIB64_INSTALL_PATH = HAL_LIBDIR"/omx/";
+#else /* TIZEN_FEATURE_NEW_HAL_PATH */
const char *LIB_INSTALL_PATH = "/usr/lib/omx/";
const char *LIB64_INSTALL_PATH = "/usr/lib/omx/";
+#endif /* TIZEN_FEATURE_NEW_HAL_PATH */
#endif
return (IS_64BIT_OS)? LIB64_INSTALL_PATH:LIB_INSTALL_PATH;
Version: 0.0.2
License: Apache-2.0
Group: Development/Libraries
-Release: 4
+Release: 5
ExclusiveArch: %arm
Source: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
%description
implementation of OpenMAX IL for e9110-v4l2 for TW3
-%package devel
-Summary: OpenMAX IL for e9110-v4l2 (Developement)
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-development package for libomxil-e9110-v4l2
-
%prep
%setup -q
export CFLAGS+=" -mfpu=neon\
-DUSE_DLOG\
-DTIZEN_OMXIL_COMMERCIAL_FEATURE\
+ -DTIZEN_FEATURE_NEW_HAL_PATH\
+ -DHAL_LIBDIR=\\\"%{_hal_libdir}\\\"\
-DGST_EXT_TIME_ANALYSIS"
LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
-%configure --prefix=%{_prefix} --disable-static --enable-dlog --enable-exynos9110 --enable-tizen-allocator
+%configure --prefix=%{_prefix} --disable-static --enable-dlog --enable-exynos9110 --enable-tizen-allocator --libdir=%{_hal_libdir}
#make %{?jobs:-j%jobs}
make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
+mkdir -p %{buildroot}%{_hal_licensedir}/%{name}
+cp COPYING %{buildroot}%{_hal_licensedir}/%{name}
%make_install
%files
%manifest libomxil-e9110-v4l2.manifest
-/usr/lib/*.so*
-/usr/lib/omx/libOMX.Exynos.AVC.Decoder.so
-/usr/lib/omx/libOMX.Exynos.AVC.Encoder.so
-/usr/lib/omx/libOMX.Exynos.MPEG4.Decoder.so
-/usr/lib/omx/libOMX.Exynos.MPEG4.Encoder.so
-/usr/lib/omx/libOMX.Exynos.MPEG2.Decoder.so
-/usr/lib/omx/libOMX.Exynos.WMV.Decoder.so
-/usr/lib/omx/libOMX.Exynos.HEVC.Decoder.so
-/usr/lib/omx/libOMX.Exynos.HEVC.Encoder.so
-/usr/lib/omx/libOMX.Exynos.VP8.Decoder.so
-/usr/lib/omx/libOMX.Exynos.VP8.Encoder.so
-%license COPYING
-
-%files devel
-/usr/include/*
-/usr/lib/pkgconfig/*
+%{_hal_libdir}/*.so*
+%{_hal_libdir}/omx/libOMX.Exynos.AVC.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.AVC.Encoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.MPEG4.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.MPEG4.Encoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.MPEG2.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.WMV.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.HEVC.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.HEVC.Encoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.VP8.Decoder.so
+%{_hal_libdir}/omx/libOMX.Exynos.VP8.Encoder.so
+%{_hal_licensedir}/%{name}/*
+%exclude %{_includedir}/*