Drop patch: update-compaction-instrumentation-to-3.16-kernel.patch Drop patch: update-vmscan-instrumentation-to-3.16-kernel.patch Changelog: http://git.lttng.org/?p=lttng-modules.git;a=blob_plain;f=ChangeLog;hb=2df61b9e2079ac4b8f4bc984076b7057bc5d9254 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/lttng-modules?expand=0&rev=13
89 lines
2.3 KiB
RPMSpec
89 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package lttng-modules
|
|
#
|
|
# Copyright (c) 2014 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/
|
|
#
|
|
|
|
# needssslcertforbuild
|
|
|
|
Summary: Licensing information for package lttng-modules
|
|
License: GPL-2.0 and LGPL-2.1 and MIT
|
|
Group: System/Kernel
|
|
Name: lttng-modules
|
|
Version: 2.6.2
|
|
Release: 0.<RELEASE9>
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}-preamble
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: kernel-devel
|
|
BuildRequires: kernel-syms
|
|
BuildRequires: kernel-source
|
|
BuildRequires: module-init-tools
|
|
ExclusiveArch: x86_64
|
|
|
|
%suse_kernel_module_package -p %{name}-preamble ec2 xen xenpae vmi um
|
|
|
|
%description
|
|
This package provides licensing documentation for the lttng kmp packages.
|
|
|
|
|
|
|
|
%package KMP
|
|
License: GPL-2.0 and LGPL-2.1 and MIT
|
|
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
|
|
mkdir obj
|
|
|
|
for i in "$@"; do
|
|
case $i in
|
|
LICENSE|*.txt) ;;
|
|
*) mv $i source ;;
|
|
esac
|
|
done
|
|
|
|
%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
|
|
export BRP_PESIGN_FILES="*.ko /lib/firmware"
|
|
for flavor in %flavors_to_build; do
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE lgpl-2.1.txt gpl-2.0.txt mit-license.txt
|
|
|
|
%changelog
|