Name: dali-adaptor
Summary: The DALi Tizen Adaptor
-Version: 1.4.41
+Version: 1.4.48
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: giflib
+Provides: libdali-adaptor-cxx11.so
+Provides: libdali-adaptor-cxx11.so.0
+Provides: libdali-adaptor-cxx11.so.0.0.0
%define tizen_platform_config_supported 1
BuildRequires: pkgconfig(libtzplatform-config)
%define user_shader_cache_dir %{dali_data_ro_dir}/core/shaderbin/
%define dali_plugin_sound_files /plugins/sounds/
-%define dev_include_path %{_includedir}
##############################
# Build
ln -sf libdali-adaptor.so libdali-adaptor-cxx11.so.0.0.0
popd
+# Create a symbolic link in integration-api to preserve legacy repo build
+pushd %{buildroot}%{_includedir}/dali/integration-api
+ln -sf adaptor-framework adaptors
+popd
+
##############################
# Upgrade order:
# 1 - Pre Install new package
exit 0
%post
+pushd %{_libdir}
+for i in mobile tv wearable ivi; do [[ -f libdali-adaptor.so.$i ]] && ln -sf libdali-adaptor.so.$i libdali-adaptor.so.0.0.0; done
+popd
/sbin/ldconfig
exit 0
%files devel
%defattr(-,root,root,-)
-%{dev_include_path}/dali/dali.h
-%{dev_include_path}/dali/public-api/*
-%{dev_include_path}/dali/devel-api/*
-%{dev_include_path}/dali/doc/*
+%{_includedir}/dali/dali.h
+%{_includedir}/dali/public-api/*
+%{_includedir}/dali/devel-api/*
+%{_includedir}/dali/doc/*
%{_libdir}/pkgconfig/dali-adaptor.pc
%files integration-devel
%defattr(-,root,root,-)
-%{dev_include_path}/dali/integration-api/adaptors/*
+%{_includedir}/dali/integration-api/adaptor-framework/*
+%{_includedir}/dali/integration-api/adaptors
%{_libdir}/pkgconfig/dali-adaptor-integration.pc