X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-dkms.spec.in;h=c749b087b8bba0a0876d404f5c7cf3a8f605719b;hb=14db26a85c52561d186b5c400981a0025d45864a;hp=76ecf360f0c10ee966e38e5cba47b0c071e6dd67;hpb=d61103d329bad5b92c951c8ad06a4f1b431759aa;p=fs%2Flustre-release.git diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 76ecf36..c749b08 100644 --- a/lustre-dkms.spec.in +++ b/lustre-dkms.spec.in @@ -2,6 +2,10 @@ %bcond_without zfs %bcond_with ldiskfs +# LUTF Turn off brp-python-precompile script as we don't want the python files +# to be compiled on installation +%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') + # Set the package name prefix %if %{with servers} %if %{with zfs} @@ -24,10 +28,11 @@ %define lustre_name @PACKAGE@-client %endif -%if %{_vendor}=="redhat" || %{_vendor}=="fedora" +%if "%{_vendor}" == "redhat" || "%{_vendor}" == "fedora" %global kmod_name kmod-%{lustre_name} - %define mkconf_options -%else #for Suse / Ubuntu + %define mkconf_options %{nil} +#for Suse / Ubuntu +%else %global kmod_name %{lustre_name}-kmp %define mkconf_options "-k updates" %endif @@ -59,6 +64,8 @@ Requires: dkms >= 2.2.0.3-28.git.7c3e7c5 # for lnetctl Requires: libyaml-devel Requires: zlib-devel +# for netlink support +Requires: libnl3-devel %if %{with servers} # If client package is installed when installing server, remove it since # the server package also includes the client. This can be removed if/when