aboutsummaryrefslogtreecommitdiffstats
path: root/zfs-modules.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-01-17 16:20:43 -0800
committerBrian Behlendorf <[email protected]>2012-01-18 12:19:52 -0800
commitb4b599d2508296a9dac0abe29532fc0884f299b7 (patch)
tree9a7d8ae8899b18c334d6ffdcc622e7f5228e9fe5 /zfs-modules.spec.in
parentb40a77aefca3d0832396edd35f597100d152f163 (diff)
Fix rpm dependencies
This change updates the rpm spec files to have strictly correct package dependencies. That means a few things: * The zfs-modules package is now tied to a specific build of the spl-modules packages based on the kernel version. This ensures that the correct spl-modules packages will always get installed and not just the newest. * The zfs package now requires both the zfs-modules and spl packages. Thus a 'yum install zfs' will pull in the minimal set of packages required for a functional system. * The zfs-devel packages now require the zfs package to be installed which is normal behavior for -devel packages. * Remove the redundant distribution release extension. This is already added once because it is part of the kernel package release name. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'zfs-modules.spec.in')
-rw-r--r--zfs-modules.spec.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in
index c1c135649..4c13adf63 100644
--- a/zfs-modules.spec.in
+++ b/zfs-modules.spec.in
@@ -198,20 +198,22 @@
%define krequires %{kpkg}
%endif
%define splrequires %{splpkg}
+%define spldevrequires %{spldevpkg}
%else
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
%define release @ZFS_META_RELEASE@_%{relext}
%if %{defined kpkg}
%define krequires %{kpkg} %{koppkg} %{kverpkg}
%endif
-%define splrequires %{splpkg} = %{splverpkg}
+%define splrequires %{splpkg} = %{splverpkg}_%{relext}
+%define spldevrequires %{spldevpkg} = %{splverpkg}_%{relext}
%endif
Summary: ZFS File System
Group: Utilities/System
Name: %{name}
Version: %{version}
-Release: %{release}%{?dist}
+Release: %{release}
License: @ZFS_META_LICENSE@
URL: git://github.com/zfsonlinux/zfs.git
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
@@ -236,11 +238,10 @@ Group: Development/Libraries
%if %{defined krequires}
Requires: %{krequires}
%endif
-Requires: %{splrequires}
%if %{defined kdevpkg}
-BuildRequires: %{kdevpkg}
+Requires: %{kdevpkg}
%endif
-BuildRequires: %{spldevpkg}
+Requires: %{spldevrequires}
%description devel
The %{name}-devel package contains the kernel header files and