X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre.spec.in;h=d14a6f5f7d585c9456bcca90835f12f858eedbe4;hb=47818dfe877ec6f55baea7f0e1df581ea593c9b0;hp=6e7a28366b01ab14c3e91b82405229d3899278a6;hpb=ba31efdecb860b6b680f743ba2666cefb2fc6ee5;p=fs%2Flustre-release.git diff --git a/lustre.spec.in b/lustre.spec.in index 6e7a283..d14a6f5 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -41,6 +41,9 @@ #%%global _use_internal_dependency_generator 0 %define is_client %(bash -c "if [[ %{lustre_name} = *-client ]]; then echo -n '1'; else echo -n '0'; fi") +# for those uses that don't want the -smp/-bigsmp (or the .arch) on the end +# of %kversion +%define krequires %(bash -c "echo %{kversion} | sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'") %define sles10 %(bash -c "if [ "%sles_version" = "10" ]; then echo -n '1'; else echo -n '0'; fi") @@ -73,8 +76,8 @@ Summary: Kernel Lustre modules for Linux %{kversion} Requires: kernel-%{flavor} %else %if %{_vendor}=="redhat" || %{_vendor}=="fedora" -# for RHEL we need to require the specific kernel still since weak-modules support on RH -# is, well, weak, to be punny about it +# for RHEL we need to require the specific kernel still since weak-modules +# support on RH is, well, weak, to be punny about it Requires: kernel = %{krequires} %endif %endif