File intel-iamt-heci.spec of Package intel-iamt-heci
#
# spec file for package intel-iamt-heci
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# nodebuginfo
Name: intel-iamt-heci
BuildRequires: kernel-source
BuildRequires: kernel-syms
BuildRequires: module-init-tools
BuildRequires: modutils
ExcludeArch: ia64 ppc ppc64 s390 s390x
%ifarch amd64 x86_64 ia32e em64t
BuildRequires: gcc-32bit
BuildRequires: gcc-c++-32bit
%endif
License: BSD-3-Clause
Group: System/Kernel
Summary: Updated intel-iamt-heci kernel module for Intel iAMT
Version: 5.0.0.30
Release: 2
Url: http://downloads.sourceforge.net/project/openamt/heci/5.0.0.30/heci-5.0.0.30.tar.gz
Source0: heci-%{version}.tar.gz
Patch1: HECI-5.0.0.30.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%suse_kernel_module_package kdump um
%description
Updated intel-iamt-heci kernel module for Intel iAMT
%package KMP
License: BSD-3-clause
Summary: Updated heci kernel module for Intel iAMT
Group: System/Kernel
# SUSE specify macro to define host kmp package
%{?suse_kernel_module_package:%suse_kernel_module_package -p %{SOURCE0} -n %{name} }
%description KMP
Provide heci.ko kernel module supporting the Intel(R) iAMT.
%prep
%setup -n HECI-%{version}
%patch1 -p1
# mark as supported
echo "heci.ko external" > src/Module.supported
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
export EXTRA_CFLAGS='-DVERSION=\"%{version}.%{release}\"'
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source/src obj/$flavor
make V=1 -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
make V=1 -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
M=$PWD/obj/$flavor
install -m755 -d $RPM_BUILD_ROOT/%{_docdir}/iamt
install -m644 source/README \
$RPM_BUILD_ROOT/%{_docdir}/iamt/README
done
%files
%defattr(-,root,root)
%doc %{_docdir}/iamt
%clean
rm -rf $RPM_BUILD_ROOT
%changelog