File rtl8188eu.spec of Package rtl8188eu
#
# spec file for package rtl8xxxu
#
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
# norootforbuild
#
%if 0%{?suse_version} >= 1230
%global __requires_exclude ksyms*|kernel-uname-r*
%endif
Name: rtl8188eu
Summary: RTL8188eu Linux Driver
Version: git20210519
Release: 0
Group: System/Kernel
License: GPL-2.0
Url: https://github.com/lwfinger/rtl8188eu
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}.tar.gz
Source1: preamble
Patch1: make.patch
BuildRequires: %kernel_module_package_buildreqs
BuildRequires: libelf-devel
BuildRequires: bc
Autoreqprov: on
%suse_kernel_module_package -p%_sourcedir/preamble
%description
rtl8188eu
Repository for the stand-alone RTL8188EU driver.
%package KMP
Summary: RTL8188eu Linux Driver
Group: System/Kernel
%description KMP
rtl8188eu
Repository for the stand-alone RTL8188EU driver.
Make sure you copied the firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/
%prep
echo %flavors_to_build
%setup -q -n %{name}
%patch1 -p1
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
export CONFIG_RTL8188EU=m
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -C obj/$flavor KSRC=/usr/src/linux-obj/%_target_cpu/$flavor
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
export CONFIG_RTL8188EU=m
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