File intel-iamt-heci.spec of Package intel-iamt-heci
#
# spec file for package intel-iamt-heci (Version 3.1.0.31)
#
# 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 http://bugs.opensuse.org/
#
# 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
Version: 3.1.0.31
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
%description
Updated intel-iamt-heci kernel module for Intel iAMT
Authors:
--------
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.
Authors:
--------
Philip Oswald
%prep
%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
%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/usr/share/doc/iamt
install -m644 $PWD/obj/$flavor/README \
$RPM_BUILD_ROOT/usr/share/doc/iamt/README
done
%files
%defattr(-,root,root)
%doc /usr/share/doc/iamt
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Oct 06 2008 poswald@novell.com
- 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 andavis@novell.com
- Added to PLDP
- Bugzilla 342622