File rtw88.spec of Package rtw88
#
# spec file for package rtlwifi_new-extended
#
#
# Copyright (c) 2016 SUSE LINUX 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
#
%global __requires_exclude ksyms*|kernel-uname-r*
%if 0%{?opensuse_bs}
%bcond_with buildjobs
%endif
Name: rtw88
Summary: rtw88 supports 8822BE and 8822CE chips
Version: 20200130
Release: 0
Group: System/Kernel
License: GPL-2.0
Url: https://github.com/torvalds/linux/tree/master/drivers/net/wireless/realtek/rtw88
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}.tar.gz
Source1: preamble
BuildRequires: %kernel_module_package_buildreqs unzip
BuildRequires: libelf-devel
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
Conflicts: %{name} = %{version}
Autoreqprov: on
%suse_kernel_module_package -n rtw88 -p %_sourcedir/preamble kdump ec2 um
%description
This is a new mac80211 driver for Realtek 802.11ac wireless network chips.
rtw88 supports 8822BE and 8822CE chips, and will be able to support
multi-vif combinations in run-time.
%debug_package
%prep
%setup -q -n %{name}
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 \
%if %{with buildjobs}
M=$PWD/obj/$flavor %{?jobs:-j%jobs}
%else
M=$PWD/obj/$flavor
%endif
done
%install
#install the module
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