X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-dkms.spec.in;h=19ef9c6d1a3c224dcb93e2f40c7ff40afea3da25;hb=afa4c31087f21fef8d64f572e08a7bec77bc7325;hp=16d229e79222945eda2d82d49d79e0651870f263;hpb=64a49a1d42b44dfdbc2f951177be3cbb9cd368f9;p=fs%2Flustre-release.git diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 16d229e..19ef9c6 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,12 +28,13 @@ %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" + %define mkconf_options -k updates %endif %define buildid 1 @@ -58,20 +63,25 @@ BuildArch: noarch 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 # the packages are split into independent client/server/common packages. Obsoletes: @PACKAGE@-client < %{version} %if %{with zfs} -Requires: spl-dkms >= 0.6.5 Requires: zfs-dkms >= 0.6.5 Requires: @PACKAGE@-osd-zfs-mount Conflicts: @PACKAGE@-ldiskfs-dkms Conflicts: @PACKAGE@-client-dkms +# lustre-zfs-dkms replicates the functionality old lustre-dkms package +Provides: @PACKAGE@-dkms Obsoletes: @PACKAGE@-dkms %endif %if %{with ldiskfs} +Requires: patch Requires: %{ext4_source_rpm} Requires: @PACKAGE@-osd-ldiskfs-mount Conflicts: @PACKAGE@-zfs-dkms @@ -150,6 +160,8 @@ dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade exit 0 %changelog +* Wed May 16 2018 Joe Grund +- Add patch requirement * Mon Aug 1 2016 Nathaniel Clark - Add option to build either ldiskfs or zfs flavour of server version * Sat Jan 23 2016 Bruno Faccini