From: Dmitry Eremin Date: Mon, 11 Jul 2016 16:00:44 +0000 (+0300) Subject: LU-8426 rpmbuild: fix build with option "--without lustre_utils" X-Git-Tag: 2.8.56~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F21228%2F3;p=fs%2Flustre-release.git LU-8426 rpmbuild: fix build with option "--without lustre_utils" Fix issue with not existing directory when build without lustre_utils Test-Parameters: trivial Change-Id: I2db1f4daa619f62e808f352a1a3265267085dc63 Signed-off-by: Dmitry Eremin Reviewed-on: http://review.whamcloud.com/21228 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: James Simmons Reviewed-by: Christopher J. Morrone Reviewed-by: Oleg Drokin --- diff --git a/lustre.spec.in b/lustre.spec.in index eba78aa..1173208 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -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