X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-dkms.spec.in;h=0527cb9dbd855d055287b5972b1fd3d063a2273f;hp=36ce6780afe44b0724eb9245a37c725552ecdde7;hb=03bbd4c27471751ada57282fad15e074ae01e9d7;hpb=23434f3408063164c863a7d56c661c41fa2e779f diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 36ce678..0527cb9 100644 --- a/lustre-dkms.spec.in +++ b/lustre-dkms.spec.in @@ -7,6 +7,12 @@ %define module @PACKAGE@-client %endif +%if %{_vendor}=="redhat" || %{_vendor}=="fedora" + %global requires_kmod_name kmod-%{module} +%else #for Suse + %global requires_kmod_name %{module}-kmp +%endif + %define buildid 1 Name: %{module}-dkms @@ -31,10 +37,14 @@ Requires: dkms >= 2.2.0.3-28.git.7c3e7c5 Requires: spl-dkms >= 0.6.1 Requires: zfs-dkms >= 0.6.1 Requires: %{module}-osd-zfs-mount +# 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 %endif Requires: gcc, make, perl Requires: kernel-devel -Provides: %{module}-kmod = %{version} +Provides: %{requires_kmod_name} = %{version} Provides: %{module}-modules = %{version} %if %{with servers} # Only zfs Lustre DKMS Server is supported @@ -91,10 +101,6 @@ BUILT_MODULE_LOCATION[\${#BUILT_MODULE_LOCATION[@]}]="lustre/llite/" DEST_MODULE_LOCATION[\${#DEST_MODULE_LOCATION[@]}]="/extra/lustre/" EOF -sed -i 's/BUILDID[[:print:]]*/BUILDID = %{buildid}/' META -sed -i 's/PRISTINE[[:print:]]*/PRISTINE = 1/' META -cp META ldiskfs/META - %install if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT @@ -140,5 +146,5 @@ exit 0 * Wed Oct 7 2015 Bruno Faccini - adapted for Lustre Client DKMS creation - allow for on-target reconfig to prevent static deps requires -* Fri Apr 8 2013 Brian Behlendorf - 2.3.63-1 +* Mon Apr 8 2013 Brian Behlendorf - 2.3.63-1 - First DKMS packages.