File intel-iamt-heci.spec of Package intel-iamt-heci

# spec file for package intel-iamt-heci (Version
# Copyright (c) 2009 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

# nodebuginfo

Name:           intel-iamt-heci
BuildRequires:  kernel-source kernel-syms module-init-tools
ExcludeArch:    ia64 ppc ppc64 s390 s390x
License:        BSD 3-Clause; GPL v2 only; Dual BSD3/GPLv2 only
Group:          System/Kernel
Summary:        Updated intel-iamt-heci kernel module for Intel iAMT
Release:        2.<RELEASE40>
Source0:        heci-%{version}.tar.gz
Source1:        README
Patch:          heci_kbuild.patch
Patch1:         heci_pm_wd_fix.diff
Patch2:         heci_add_sysfs.diff
Patch3:         heci-fix-2.6.27-compilation.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%suse_kernel_module_package kdump um

Updated intel-iamt-heci kernel module for Intel iAMT

    Philip Oswald

%package KMP
License:        GPL v2 or later; Dual BSD3/GPLv2 only
Summary:        Updated heci kernel module for Intel iAMT
Group:          System/Kernel

%description KMP
Provide heci.ko kernel module supporting the Intel(R) iAMT.

    Philip Oswald

%setup -n HECI-%{version}
%patch -p1
%patch1 -p1
%patch2 -p3
%patch3 -p2
# mark as supported 
echo "heci.ko external" > src/Module.supported
cp %_sourcedir/README src/README
set -- *
mkdir source
mv "$@" source/
mkdir obj

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 \

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 \
    install -m755 -d $RPM_BUILD_ROOT/usr/share/doc/iamt
    install -m644 $PWD/obj/$flavor/README \

%doc /usr/share/doc/iamt


* Mon Oct 06 2008
- Required the addition of a base package for our build system so I created a base package that installs a README.
* Thu Dec 06 2007
- Added to PLDP
- Bugzilla 342622