File dvb-usb-rtl2832u.spec of Package dvb-usb-rtl2832u

#
# spec file for package dvb-usb-rtl2832u
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:		dvb-usb-rtl2832u
BuildRequires:	kernel-source < 3.7.0
BuildRequires:  kernel-syms < 3.7.0
BuildRequires:  module-init-tools
Summary:	Kernel module for RTL2832U DVB USB stick
Version:	2.2.1
Release:	1.0
Group:		System/Kernel
License:	GPL
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Url:		http://www.dfragkopoulos.gr/tag/rtl2832u/
Source:		dvb-usb-rtl2832u.tar.bz2
Source1:	preamble
Autoreqprov:	on
%suse_kernel_module_package -n dvb-usb-rtl2832u -p %_sourcedir/preamble kdump um debug

%description
This package contains kernel modules for RTL2832U DVB USB stick

Info for package see :
http://forum.ubuntuusers.de/topic/dvb-t-key-msi-digivox-mini-ii-v3-0-aktuell-vo
http://www.dfragkopoulos.gr/tag/rtl2832u/

%prep
%setup -q -n dvb-usb-rtl2832u

set -- *
mkdir source
mv "$@" source/
mkdir obj


%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export EXTRA_CFLAGS='-DVERSION=\"%version\" -g'

for flavor in %flavors_to_build; do
	rm -rf obj/$flavor
	cp -r source obj/$flavor
	export KLIB_BUILD=/usr/src/linux-obj/%_target_cpu/$flavor
	make -C /usr/src/linux-obj/%_target_cpu/$flavor \
		M=$PWD/obj/$flavor modules
done

%install

export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
	export KLIB_BUILD=/usr/src/linux-obj/%_target_cpu/$flavor
	make -C /usr/src/linux-obj/%_target_cpu/$flavor \
		M=$PWD/obj/$flavor modules_install
done

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by