File waltoptablet.spec of Package waltoptablet-kmp

# norootforbuild

Name:         waltoptablet
BuildRequires: kernel-source kernel-syms module-init-tools
License:      GPL
Group:        System/Kernel
Summary:      Waltop RS232 Tablet Input Driver
Version:      2.0
Release:      0
Source0:      %name-%version.tar.bz2
Patch:	      waltoptablet.c.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%suse_kernel_module_package kdump um

%description
Waltop RS232 Tablet Input Driver

%package KMP
Summary: Waltop RS232 Kernel Module
Group: System/Kernel

%description KMP
This is one of the sub-packages for a specific kernel. All the
sub-packages will share the same summary, group, and description.

%prep
%setup
%patch
set -- *
mkdir source
mv "$@" source/
mkdir obj

%build
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

%changelog

openSUSE Build Service is sponsored by