diff options
-rw-r--r-- | zfs-modules.spec.in | 11 | ||||
-rw-r--r-- | zfs.spec.in | 10 |
2 files changed, 11 insertions, 10 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 diff --git a/zfs.spec.in b/zfs.spec.in index 6d8734479..0066c8315 100644 --- a/zfs.spec.in +++ b/zfs.spec.in @@ -17,7 +17,7 @@ License: @ZFS_META_LICENSE@ URL: git://github.com/zfsonlinux/zfs.git BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un) Source: %{name}-%{version}.tar.gz -Requires: zlib e2fsprogs +Requires: zfs-modules spl zlib e2fsprogs BuildRequires: zlib-devel e2fsprogs-devel %description @@ -28,10 +28,10 @@ for the zfs file system. Summary: ZFS File System User Headers Group: Development/Libraries %if %{defined ch5} || %{defined el6} || %{defined fc12} -Requires: zlib libuuid libblkid +Requires: zfs zlib libuuid libblkid BuildRequires: zlib-devel libuuid-devel libblkid-devel %else -Requires: zlib e2fsprogs +Requires: zfs zlib e2fsprogs BuildRequires: zlib-devel e2fsprogs-devel %endif @@ -42,7 +42,7 @@ additional applications against the %{name} libraries. %package test Summary: ZFS File System Test Infrastructure Group: Utilities/System -Requires: parted lsscsi +Requires: zfs parted lsscsi %description test The %{name}-test package contains a test infrastructure for zpios which @@ -53,7 +53,7 @@ various system profiling tools to facilitate an in depth analysis. %package dracut Summary: ZFS Dracut Module Group: System Environment/Base -Requires: dracut +Requires: zfs dracut %description dracut The %{name}-dracut package allows dracut to construct initramfs images |