~ikhatib/+junk/dkms-raring

« back to all changes in this revision

Viewing changes to sample-suse-10-mkkmp.spec

  • Committer: Ismail Khatib
  • Date: 2013-06-11 23:42:54 UTC
  • Revision ID: ikhatib@gmail.com-20130611234254-ljmxk7sve5olw6eq
Initial import, version 2.2.0.3-1.1ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# norootforbuild
 
2
 
 
3
Name:         novell-example
 
4
BuildRequires: kernel-source kernel-syms
 
5
License:      GPL
 
6
Group:        System/Kernel
 
7
Summary:      Example Kernel Module Package
 
8
Version:      1.1
 
9
Release:      0
 
10
Source0:      %name-%version.tar.bz2
 
11
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 
12
 
 
13
%suse_kernel_module_package kdump um
 
14
 
 
15
%description
 
16
This is an example Kernel Module Package.
 
17
 
 
18
%package KMP
 
19
Summary: Example Kernel Module
 
20
Group: System/Kernel
 
21
 
 
22
%description KMP
 
23
This is one of the sub-packages for a specific kernel. All the
 
24
sub-packages will share the same summary, group, and description.
 
25
 
 
26
%prep
 
27
%setup
 
28
set -- *
 
29
mkdir source
 
30
mv "$@" source/
 
31
mkdir obj
 
32
 
 
33
%build
 
34
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
 
35
for flavor in %flavors_to_build; do
 
36
    rm -rf obj/$flavor
 
37
    cp -r source obj/$flavor
 
38
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
 
39
        M=$PWD/obj/$flavor
 
40
done
 
41
 
 
42
%install
 
43
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
 
44
export INSTALL_MOD_DIR=updates
 
45
for flavor in %flavors_to_build; do
 
46
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
 
47
         M=$PWD/obj/$flavor
 
48
done
 
49
 
 
50
%changelog
 
51
* Sat Jan 28 2006 - agruen@suse.de
 
52
- Initial package.