Accepting request 230274 from home:jones_tony:branches:devel:tools:lttng
OBS-URL: https://build.opensuse.org/request/show/230274 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/lttng-modules?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
0e89a58ed4
commit
62fadd9511
@@ -1,2 +0,0 @@
|
||||
%defattr(644,root,root,755)
|
||||
/lib/modules/%{kverrel}.%{_target_cpu}/
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a28ef1ec21517a2d0f27b338d6e9ffc6294a915fdff4183409666b3d08099c03
|
||||
size 223869
|
3
lttng-modules-2.4.1.tar.bz2
Normal file
3
lttng-modules-2.4.1.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:53a4f84be22eec203a9f77ddea1ccf893e54da98c64dc753cc89634e51c5c1e2
|
||||
size 248047
|
@@ -1,2 +1,3 @@
|
||||
Requires: kernel-%1
|
||||
Requires: lttng-modules
|
||||
Enhances: kernel-%1
|
||||
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 15 17:51:17 UTC 2014 - tonyj@suse.com
|
||||
|
||||
- Update to version 2.4.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 10 17:23:18 UTC 2014 - tonyj@suse.com
|
||||
|
||||
- Update to release 2.3.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 17:41:39 UTC 2013 - tonyj@suse.com
|
||||
|
||||
|
@@ -1,68 +1,84 @@
|
||||
Name: lttng-modules
|
||||
Version: 2.2.1
|
||||
License: GPL-2.0 and LGPL-2.1 and MIT
|
||||
Release: 0
|
||||
Group: System/Kernel
|
||||
Summary: LTTng 2.0 Kernel Tracing Modules
|
||||
URL: http://lttng.org/lttng2.0
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
%if 0%{?fedora}
|
||||
Source1: fedora.filelist
|
||||
%else
|
||||
Source1: %{name}-preamble
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: %kernel_module_package_buildreqs
|
||||
ExclusiveArch: %ix86 x86_64
|
||||
#
|
||||
# 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.
|
||||
|
||||
%if 0%{?fedora}
|
||||
%kernel_module_package -x ec2 -x xen -x xenpae -x vmi -x um -f %{SOURCE1}
|
||||
%else
|
||||
%kernel_module_package -x ec2 -x xen -x xenpae -x vmi -x um -p %{SOURCE1}
|
||||
%endif
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global kernel_source() /usr/src/kernels/%kverrel.\$([ %%{1} = default ] || echo "%%{1}.")%_target_cpu
|
||||
%endif
|
||||
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.4.1
|
||||
Release: 0.<RELEASE9>
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: %{name}-preamble
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: kernel-devel
|
||||
BuildRequires: kernel-syms
|
||||
BuildRequires: module-init-tools
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
%suse_kernel_module_package -p %{name}-preamble ec2 xen xenpae vmi um
|
||||
|
||||
%description
|
||||
This package contains the necessary LTTng 2.0 kmp subpackages.
|
||||
This package provides licensing documentation for the lttng kmp packages.
|
||||
|
||||
|
||||
|
||||
%package KMP
|
||||
Summary: LTTng 2.0 Kernel Tracing Modules
|
||||
Group: System/Kernel
|
||||
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.
|
||||
This package contains the LTTng 2.0 Kernel Modules necessary for
|
||||
instrumenting kernel subsystems.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
set -- *
|
||||
mkdir source
|
||||
mv "$@" 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 %{kernel_source $flavor} modules M=$PWD/obj/$flavor
|
||||
done
|
||||
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=extra
|
||||
export INSTALL_MOD_DIR=updates
|
||||
export BRP_PESIGN_FILES="*.ko /lib/firmware"
|
||||
for flavor in %flavors_to_build; do
|
||||
%__make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
|
||||
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor
|
||||
done
|
||||
|
||||
%post
|
||||
/sbin/depmod -a
|
||||
|
||||
%postun
|
||||
/sbin/depmod -a
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE lgpl-2.1.txt gpl-2.0.txt mit-license.txt
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user