diff --git a/qt5-qttools.spec b/qt5-qttools.spec index 39f1bcb..4ebfb08 100644 --- a/qt5-qttools.spec +++ b/qt5-qttools.spec @@ -196,7 +196,18 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %make_build %if 0%{?build_tests} -%qt5_build_tests +# FIXME: qttools is special case and we cannot use qt5_build_tests macro as this +# skips many files used by qttools unit tests +#qt5_build_tests +mkdir -p %{buildroot}%{_qt5_libdir}/qt5 +find ./tests -not -path '*/\.*' -type d | while read LINE +do + mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE" +done +find ./tests -not -path '*/\.*' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE +do + cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/ +done %endif %install