File acx.spec of Package acx

#
# spec file for package acx (Version 20080210)
#
# Copyright (c) 2009 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
# nodebuginfo


Name:           acx
BuildRequires:  kernel-source kernel-syms module-init-tools
Summary:        Kernel Module for ACX100 and ACX111 Cards
Version:        20080210
Release:        2.<RELEASE1>
Group:          System/Kernel
License:        GPL v2 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://acx100.sourceforge.net/
AutoReqProv:    on
Source:         acx-%{version}.tar.bz2
Source100:      preamble
Patch:          acx-iwe_stream-info.patch
ExclusiveArch:  %ix86 x86_64 ppc ppc64
%suse_kernel_module_package -n acx -p %_sourcedir/preamble kdump um ec2

%description
This package contains a driver for wireless LAN adapters based on Texas
Instruments ACX100 and ACX111 chipsets.



Authors:
--------
    ACX100/ACX111 OSS Driver Development Team

%package -n acx-KMP
Group:          System/Kernel
License:        GPL v2 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Summary:        Kernel Module for ACX100 and ACX111 Cards

%description -n acx-KMP
This package contains a driver for wireless LAN adapters based on Texas
Instruments ACX100 and ACX111 chipsets.



Authors:
--------
    ACX100/ACX111 OSS Driver Development Team

%prep
%setup -q
%patch

%build
cd ..
mkdir obj
echo "flavors_to_build: %{flavors_to_build}"
for flavor in %flavors_to_build; do
  rm -rf obj/$flavor
  cp -r acx-* obj/$flavor
  make -k -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
        M=$PWD/obj/$flavor
done

%install
cd ..
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

%clean
rm -rf $RPM_BUILD_ROOT

%changelog