File usb-rndis-lite.spec of Package usb-rndis-lite
#
# spec file for package usb-rndis-lite (Version 0.11)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: usb-rndis-lite
Version: 0.11_patched
Release: 1
License: GPL
Summary: Kernel module for Windows Mobile 5/6 devices
Group: System/Kernel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-0.11.tar.bz2
Source1: preamble
Patch0: %{name}-samsung.patch
Patch1: %{name}-mtu.patch
Patch2: %{name}-usbnet.patch
BuildRequires: kernel-source
BuildRequires: kernel-syms
BuildRequires: module-init-tools
%suse_kernel_module_package -p %_sourcedir/preamble debug trace xen
%description
This module allows the kernel to interact with Windows Mobile 5/6 devices. This version includes the usb-rndis-lite-samsung.patch from SynCE SVN and the mtu patch.
%package KMP
Summary: Kernel module for Windows Mobile 5/6 devices
Group: System/Kernel
%description KMP
This module allows the kernel to interact with Windows Mobile 5/6 devices. This version includes the usb-rndis-lite-samsung.patch from SynCE SVN and the mtu patch.
%prep
%setup -q -n %{name}-0.11
%patch0
%patch1
%if 0%{?suse_version} > 1110
%patch2 -p1
%endif
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=%{buildroot}
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