diff options
author | Tony Hutter <[email protected]> | 2018-11-07 15:48:24 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-11-07 15:48:24 -0800 |
commit | d7bda38c762f7611f7f3588f762cd40dcd31a1c6 (patch) | |
tree | a7ebd8d1b82f05a297ddb65a9467b0e23509cc85 /rpm | |
parent | a2d88f778a31111fcf98ecf3a690888bab07055e (diff) |
Add BuildRequires gcc, make, elfutils-libelf-devel
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel
into our spec files. gcc has been a packaging requirement for
awhile now:
https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B
These additional BuildRequires allow us to mock build in
Fedora 29.
Reviewed-by: Neal Gompa <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #8095
Closes #8102
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs-kmod.spec.in | 4 | ||||
-rw-r--r-- | rpm/generic/zfs.spec.in | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in index 819a6fb9c..da2798c3d 100644 --- a/rpm/generic/zfs-kmod.spec.in +++ b/rpm/generic/zfs-kmod.spec.in @@ -52,6 +52,10 @@ URL: http://zfsonlinux.org/ Source0: %{module}-%{version}.tar.gz Source10: kmodtool BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n) +%if 0%{?rhel}%{?fedora} +BuildRequires: gcc, make +BuildRequires: elfutils-libelf-devel +%endif # The developments headers will conflict with the dkms packages. Conflicts: %{module}-dkms diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 3c050cb28..7c96caacf 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -93,6 +93,7 @@ Obsoletes: spl Conflicts: zfs-fuse %if 0%{?rhel}%{?fedora}%{?suse_version} +BuildRequires: gcc, make BuildRequires: zlib-devel BuildRequires: libuuid-devel BuildRequires: libblkid-devel |