Merge commit 'refs/top-bases/linux-symbol-collisions' into linux-symbol-collisions

This commit is contained in:
Brian Behlendorf 2010-03-08 16:24:12 -08:00
commit 347501970c
1 changed files with 13 additions and 7 deletions

View File

@ -125,14 +125,11 @@
# Unsupported distro: # Unsupported distro:
%if %{undefined kver} %if %{undefined kver}
%define kver X %define kver %(uname -r)
%endif %endif
%define kpkg kernel
%define kdevpkg kernel-devel
%define kverpkg %{kver} %define kverpkg %{kver}
%define koppkg =
%if %{undefined kdir} %if %{undefined kdir}
%define kdir %{_usrsrc}/kernels/%{kver} %define kdir /lib/modules/%{kver}/build
%endif %endif
%if %{undefined kobj} %if %{undefined kobj}
%define kobj %{kdir} %define kobj %{kdir}
@ -183,7 +180,6 @@
%define version @VERSION@ %define version @VERSION@
%define debug_package %{nil} %define debug_package %{nil}
# The kernel version should only be appended to a binary RPM. When # The kernel version should only be appended to a binary RPM. When
# building a source RPM it must be kernel version agnostic. This means # building a source RPM it must be kernel version agnostic. This means
# the source RPM must never specify a required kernel version, but the # the source RPM must never specify a required kernel version, but the
@ -195,7 +191,9 @@
%else %else
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g') %define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
%define release @ZFS_META_RELEASE@_%{relext} %define release @ZFS_META_RELEASE@_%{relext}
%if %{defined kpkg}
%define krequires %{kpkg} %{koppkg} %{kverpkg} %define krequires %{kpkg} %{koppkg} %{kverpkg}
%endif
%define splrequires %{splpkg} = %{splverpkg} %define splrequires %{splpkg} = %{splverpkg}
%endif %endif
@ -208,9 +206,13 @@ License: @LICENSE@
URL: git://eris.llnl.gov/zfs.git URL: git://eris.llnl.gov/zfs.git
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
Source: @PACKAGE@-%{version}.tar.gz Source: @PACKAGE@-%{version}.tar.gz
%if %{defined krequires}
Requires: %{krequires} Requires: %{krequires}
Requires: %{splrequires} %endif
%if %{defined kdevpkg}
BuildRequires: %{kdevpkg} BuildRequires: %{kdevpkg}
%endif
Requires: %{splrequires}
BuildRequires: %{spldevpkg} BuildRequires: %{spldevpkg}
%description %description
@ -220,9 +222,13 @@ the %{name} file system.
%package devel %package devel
Summary: ZFS File System Headers and Symbols Summary: ZFS File System Headers and Symbols
Group: Development/Libraries Group: Development/Libraries
%if %{defined krequires}
Requires: %{krequires} Requires: %{krequires}
%endif
Requires: %{splrequires} Requires: %{splrequires}
%if %{defined kdevpkg}
BuildRequires: %{kdevpkg} BuildRequires: %{kdevpkg}
%endif
BuildRequires: %{spldevpkg} BuildRequires: %{spldevpkg}
%description devel %description devel