cp %{SOURCE1001} .
%build
-export QTDIR=/usr/share/qt5
+export QTDIR=%{_datadir}/qt5
touch .git
qmake -qt=5
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
%install
rm -rf %{buildroot}
# Manually copy qmldevtools static library
cp lib/libQt5QmlDevTools.a %{buildroot}%{_libdir}
-%fdupes %{buildroot}%{_libdir}
-%fdupes %{buildroot}%{_includedir}
# Manually copy examples
install -d "%{buildroot}%{_datadir}/qt5/%{name}/"
install -d "%{buildroot}%{_datadir}/icons/default/small/"
install ./tests/benchmarks/qml/painting/data/64x64.png "%{buildroot}%{_datadir}/icons/default/small/%{name}-examples.png"
+%fdupes %{buildroot}%{_libdir}
+%fdupes %{buildroot}%{_includedir}
+%fdupes %{buildroot}%{_datadir}
+
#### Pre/Post section
%post
%postun qtquickparticles
/sbin/ldconfig
+%post qtquick-widgets
+/sbin/ldconfig
+%postun qtquick-widgets
+/sbin/ldconfig
#### File section