%build
%reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \
-%if "%_repository" == "target-circle"
- --enable-align-eight \
- --enable-cachectrl \
-%else
- --disable-cachectrl \
-%endif
- CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
+ --disable-align-eight \
+ --disable-cachectrl \
+ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?_smp_mflags}
mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
-%if "%_repository" == "target-circle"
+# make rule for tgl
mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
cp -af rules/99-libtbm_exynos.rules %{buildroot}%{_libdir}/udev/rules.d/
-%endif
%make_install
-
%post
if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
rm -rf %{_libdir}/bufmgr/libtbm_default.so
%files
%{_libdir}/bufmgr/libtbm_*.so*
%{TZ_SYS_RO_SHARE}/license/%{name}
-%if "%_repository" == "target-circle"
%{_libdir}/udev/rules.d/99-libtbm_exynos.rules
-%endif