File rtl8192se_pci.spec of Package rtl8192se_2.6.0015
#
# spec file for package rtl8191s_pci (Version 20090414)
#
#
# Copyright (c) 2008 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#
Name: rtl8192se-linux
BuildRequires: kernel-source kernel-syms module-init-tools acpid
Summary: Linux driver for Realtek RTL8192 PCI WiFi cards
Version: 20091020
Release: 0.1
Group: System/Kernel
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.bz2
#Source1: preamble
#Patch0: Makefile.patch
#Patch1: %{name}-gcc-warnings-x86_64.diff
#Patch2: %{name}-single-module.patch
Autoreqprov: on
%if 0%{?suse_version} == 1120
%suse_kernel_module_package -n rtl8192s_pci -x pae desktop
%else
%suse_kernel_module_package -n rtl8192s_pci -x pae
%endif
%description
The driver will be called "r8192s_pci.ko".
%prep
%setup -q
#%patch0 -p1
#%ifarch x86_64
#%patch1 -p0
#%endif
#%patch2 -p0
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
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/HAL/rtl8192
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD/obj/$flavor/ieee80211
#make -C obj/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates/rtl8192s
for flavor in %flavors_to_build; do
if [ $flavor != debug ] ; then
find . -iname "*.ko" -exec strip --strip-debug {} \;
fi
#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/HAL/rtl8192
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor/ieee80211
done
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Oct 14 2009 - machen@novell.com
- Use driver given by MSI to build this driver.
* Tue Aug 18 2009 - AxelKoellhofer@web.de
- added patch to build a single module (avoids conflicts with other modules using ieee80211-stack)
- removed build for openSUSE-Factory (driver is now in upstream kernel)
* Tue Aug 04 2009 - AxelKoellhofer@web.de
- fixed build for kernel 2.6.31
* Sat Jul 25 2009 - AxelKoellhofer@web.de
- disabled new "ec2"-flavor (breaks build)
* Mon Jun 01 2009 - AxelKoellhofer@web.de
- Initial package, version git20090522, sources from linux-next (staging)