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>
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