55 lines
1.1 KiB
RPMSpec
55 lines
1.1 KiB
RPMSpec
Summary: LTTng 2.0 Kernel Tracing Modules
|
|
Name: lttng-modules
|
|
Version: 2.0.0
|
|
License: GPL
|
|
Release: 0
|
|
Group: System/Kernel
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: %kernel_module_package_buildreqs
|
|
%suse_kernel_module_package ec2 xen xenpae vmi um
|
|
|
|
%description
|
|
This package contains the necessary LTTng 2.0 kmp subpackages.
|
|
|
|
%package KMP
|
|
Summary: LTTng 2.0 Kernel Tracing Modules
|
|
Group: System/Kernel
|
|
|
|
%description KMP
|
|
This package contains the LTTng 2.0 Kernel Modules necessary for instrumenting
|
|
kernel subsystems.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
set -- *
|
|
mkdir source
|
|
mv "$@" source/
|
|
mkdir obj
|
|
|
|
%build
|
|
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
|
|
for flavor in %flavors_to_build; do
|
|
rm -rf obj/$flavor
|
|
cp -r source obj/$flavor
|
|
make -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 -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor
|
|
done
|
|
|
|
%post
|
|
/sbin/depmod -a
|
|
|
|
%postun
|
|
/sbin/depmod -a
|
|
|
|
%changelog
|
|
|