+# for lnetctl
+Requires: libyaml-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
+Conflicts: @PACKAGE@-client-dkms
+%if "%{module}" != "@PACKAGE@-all"
+Conflicts: @PACKAGE@-dkms
+%endif
+%endif
+%if "%{module}" != "@PACKAGE@-all"
+Conflicts: @PACKAGE@-all-dkms
+%endif
+%endif