clean spec file
authorRonan Le Martret <ronan@fridu.net>
Tue, 23 Sep 2014 11:32:24 +0000 (13:32 +0200)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Mon, 9 Nov 2015 17:27:21 +0000 (18:27 +0100)
 - improve rpmlint score

Change-Id: Ie4f5a2305fb95d8d08929d3a1adc8e569594029b
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/qt5-qtdeclarative.spec

index 4ae118f68f5a94aeabd3fce85b1e9d7c09705047..52898c82498f3829aa4be416f7e1f64bae0605c7 100644 (file)
@@ -299,11 +299,11 @@ ie: qml ./examples/quick/demos/*/*.qml
 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}
@@ -322,8 +322,6 @@ rm -rf %{buildroot}%{_includedir}/qt5/Qt
 
 # 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}/"
@@ -335,6 +333,10 @@ install %{SOURCE1011} "%{buildroot}%{_datadir}/applications/"
 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
@@ -358,6 +360,10 @@ install ./tests/benchmarks/qml/painting/data/64x64.png "%{buildroot}%{_datadir}/
 %postun qtquickparticles
 /sbin/ldconfig
 
+%post qtquick-widgets
+/sbin/ldconfig
+%postun qtquick-widgets
+/sbin/ldconfig
 
 #### File section