Whamcloud - gitweb
LU-4070 build: RPM build errors 60/7860/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Sat, 5 Oct 2013 10:27:04 +0000 (14:27 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Oct 2013 02:52:38 +0000 (02:52 +0000)
Move %{_bindir}/mcreate and %{_bindir}/munlink files under
condition %{with lustre_tests}.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I888086f672f690d9e3518f16edbf090edc8d0f14
Reviewed-on: http://review.whamcloud.com/7860
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
lustre.spec.in

index e9b3bc2..f6c3e9a 100644 (file)
@@ -332,8 +332,6 @@ cat >lustre.files <<EOF
 %attr(-, root, root) %{_bindir}/llobdstat
 %attr(-, root, root) %{_bindir}/llstat
 %attr(-, root, root) %{_bindir}/lustre_req_history
-%attr(-, root, root) %{_bindir}/mcreate
-%attr(-, root, root) %{_bindir}/munlink
 %attr(-, root, root) %{_bindir}/plot-llstat
 %attr(-, root, root) %{_bindir}/req_layout
 %attr(-, root, root) %{_libdir}/libptlctl.a
@@ -385,6 +383,8 @@ fi
 
 %if %{with lustre_tests}
 echo '%attr(-, root, root) %{_libdir}/lustre/tests/*' >lustre-tests.files
+echo '%attr(-, root, root) %{_bindir}/mcreate' >>lustre-tests.files
+echo '%attr(-, root, root) %{_bindir}/munlink' >>lustre-tests.files
 echo '%attr(-, root, root) %{?rootdir}/lib/modules/%{kversion}/updates/kernel/fs/lustre/llog_test.*' >>lustre-tests.files
 if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/liblustre/tests ] ; then
   echo '%attr(-, root, root) %{_libdir}/lustre/liblustre/tests/*' >>lustre-tests.files