Whamcloud - gitweb
LU-8426 rpmbuild: fix build with option "--without lustre_utils" 28/21228/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 11 Jul 2016 16:00:44 +0000 (19:00 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 6 Aug 2016 06:24:44 +0000 (06:24 +0000)
Fix issue with not existing directory when build without lustre_utils

Test-Parameters: trivial

Change-Id: I2db1f4daa619f62e808f352a1a3265267085dc63
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/21228
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre.spec.in

index eba78aa..1173208 100644 (file)
@@ -338,8 +338,9 @@ if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/snmp ] ; then
        echo '%{_libdir}/lustre/snmp' >>lustre.files
 fi
 
-find $RPM_BUILD_ROOT%{_libdir}/@PACKAGE@ \
-    -name \*.la -type f -exec rm -f {} \;
+%if %{with lustre_utils}
+find $RPM_BUILD_ROOT%{_libdir}/@PACKAGE@ -name \*.la -type f -exec rm -f {} \;
+%endif
 
 %if %{with lustre_modules}
 # mark modules executable for find-debuginfo.sh