X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre.spec.in;h=800d31e43b836a01c99906831bcb4308ef3504fb;hb=81530fe44c6b8d8819b8e70ea99ef7014c23a05b;hp=dfbd28240be263e05e398e5d25d239a9d738ff30;hpb=9b16459fbcbd6587f1a8669490352cc389a7a410;p=fs%2Flustre-release.git diff --git a/lustre.spec.in b/lustre.spec.in index dfbd282..800d31e 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -65,7 +65,7 @@ %{!?kobjdir: %global kobjdir %(if [ "%{kdir}" = "/lib/modules/%{_kver}/source" ]; then echo "/lib/modules/%{_kver}/build"; else echo "%{kdir}"; fi)} %if 0%{?suse_version} >= 1310 && %{defined _take_kobj} - %global _flavor %(basename "%{kobjdir}") + %global _flavor %(echo %{_kver} | sed -e 's/^.*-//') %else %global _flavor default %endif @@ -276,8 +276,8 @@ echo $TMPFILE %if %{with lustre_utils} %package osd-ldiskfs-mount Summary: osd-ldiskfs-mount contains mount's ldiskfs specific dso. -BuildRequires: e2fsprogs-devel >= 1.44.3 -Requires: ldiskfsprogs > 1.45.6 +BuildRequires: e2fsprogs-devel >= 1.44.3 libmount-devel +Requires: ldiskfsprogs > 1.45.6 libmount Provides: lustre-osd-mount = %{version} Provides: %{name}-osd-mount = %{version} Obsoletes: %{name}-osd-mount < %{version} @@ -297,6 +297,8 @@ LDISKFS hooks for mount/mkfs into a dynamic library. %if %{with lustre_utils} %package osd-zfs-mount Summary: osd-zfs-mount contains mount's zfs specific dso. +BuildRequires: libmount-devel +Requires: libmount Provides: %{name}-osd-mount = %{version} Obsoletes: lustre-osd-mount < %{version} # Tests also require zpool from zfs package: @@ -370,8 +372,10 @@ BuildRequires: openmpi-devel %else BuildRequires: openmpi2-devel %endif -%endif # openmpi -%endif # mpi +# openmpi +%endif +# mpi +%endif %description tests This package contains a set of test binaries and scripts that are intended @@ -488,13 +492,14 @@ fi %endif %if %{with mpi} -%if %{mpi_name} == "mpich" +%if "%{mpi_name}" == "mpich" %{?_mpich_load} %endif -%if %{mpi_name} == "openmpi" +%if "%{mpi_name}" == "openmpi" %{?_openmpi_load} %endif -%endif # mpi +# mpi +%endif %if %{with mofed} o2ib_path=$(find /usr/src/ofa_kernel/ -type d -name ofed_scripts | xargs dirname) @@ -539,24 +544,26 @@ fi make %{?_smp_mflags} -s %{?make_args} %if %{with mpi} -%if %{mpi_name} == "mpich" +%if "%{mpi_name}" == "mpich" %{?_mpich_unload} %endif -%if %{mpi_name} == "openmpi" +%if "%{mpi_name}" == "openmpi" %{?_openmpi_unload} %endif -%endif # mpi +# mpi +%endif %install %if %{with mpi} -%if %{mpi_name} == "mpich" +%if "%{mpi_name}" == "mpich" %{?_mpich_load} %endif -%if %{mpi_name} == "openmpi" +%if "%{mpi_name}" == "openmpi" %{?_openmpi_load} %endif -%endif # mpi +# mpi +%endif make install DESTDIR=$RPM_BUILD_ROOT @@ -668,13 +675,14 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/liblustreapi.la %if %{with lustre_tests} :> lustre-tests.files %if %{with mpi} -%if %{mpi_name} == "mpich" +%if "%{mpi_name}" == "mpich" %{?_mpich_load} %endif -%if %{mpi_name} == "openmpi" +%if "%{mpi_name}" == "openmpi" %{?_openmpi_load} %endif -%endif # mpi +# mpi +%endif echo '%{_libdir}/lustre/tests/*' >>lustre-tests.files echo '%{_bindir}/mcreate' >>lustre-tests.files echo '%{_bindir}/munlink' >>lustre-tests.files