# Restore /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+%package -n ubsan-runtime-env
+Summary: UBSan runtime environment for target device
+Group: Development/Libraries
+Requires: libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
%package plugin-devel
Summary: GNU GCC Plugin development files
License: GPL-3.0+
/UBSAN_OPTIONS
%{_rpmconfigdir}/macros.ubsan
%{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
%endif
%files -n sanitizer-devel
# Restore /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+%package -n ubsan-runtime-env
+Summary: UBSan runtime environment for target device
+Group: Development/Libraries
+Requires: libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
%package plugin-devel
Summary: GNU GCC Plugin development files
License: GPL-3.0+
/UBSAN_OPTIONS
%{_rpmconfigdir}/macros.ubsan
%{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
%endif
%files -n sanitizer-devel
# Restore /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+%package -n ubsan-runtime-env
+Summary: UBSan runtime environment for target device
+Group: Development/Libraries
+Requires: libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
%package plugin-devel
Summary: GNU GCC Plugin development files
License: GPL-3.0+
/UBSAN_OPTIONS
%{_rpmconfigdir}/macros.ubsan
%{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
%endif
%files -n sanitizer-devel