File rtl8188eu.spec of Package rtl8188eu
#
# spec file for package rtl8188eu
#
#
# Copyright (c) 2025 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
# needssslcertforbuild
Name: rtl8188eu
Summary: RTL8188eu Linux Driver
Version: git20250710
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
Patch2: leap155.patch
Patch3: kernel615.patch
Patch4: kernel616.patch
BuildRequires: %kernel_module_package_buildreqs
%if 0%{?sle_version} > 150600
BuildRequires: suse-module-tools-scriptlets
%endif
BuildRequires: pesign-obs-integration
BuildRequires: bc
Autoreqprov: on
%kernel_module_package -n rtl8188eu -x debug -x trace -c %_sourcedir/_projectcert.crt -p %_sourcedir/preamble
%description
rtl8188eu
Repository for the stand-alone RTL8188EU driver.
Frequently asked Questions
The network manager says: "Device is not ready"!
Make sure you copied the firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/
NetworkManager does not list SSID
NetworkManager changes the Wi-Fi MAC address during scanning to improve privacy
but this adapter does not support it. To address this issue,
please create /etc/NetworkManager/conf.d/80-wifi.conf with content:
[device]
wifi.scan-rand-mac-address=no
%package KMP
Summary: RTL8188eu Linux Driver
Group: System/Kernel
Requires: %{name}-blacklist-rtl8xxxu = %{version}
%description KMP
rtl8188eu
Repository for the stand-alone RTL8188EU driver.
Frequently asked Questions
The network manager says: "Device is not ready"!
Make sure you copied the firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/
NetworkManager does not list SSID
NetworkManager changes the Wi-Fi MAC address during scanning to improve privacy
but this adapter does not support it. To address this issue,
please create /etc/NetworkManager/conf.d/80-wifi.conf with content:
[device]
wifi.scan-rand-mac-address=no
%package blacklist-rtl8xxxu
Summary: To favour rtl8188eu blacklist the rtl8xxxu device driver
Group: Hardware/Wifi
##BuildArch: noarch
Requires: %{name}-kmp = %{version}
%description blacklist-rtl8xxxu
On many Realtek Ethernet controllers the old device driver rtl8xxxu does
not work reliably. To solve this the rtl8xxxu kernel module has to be
blacklisted to enable the system to load the new device driver rtl8188eu.
%prep
echo %flavors_to_build
%setup -q -n %{name}
%patch -P 1 -p1
%if 0%{?sle_version} == 150500
%patch -P 2 -p1
%endif
%patch -P 3 -p1
%patch -P 4 -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
export BRP_PESIGN_FILES='*.ko'
export BRP_PESIGN_COMPRESS_MODULE="xz"
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
M=$PWD/obj/$flavor
done
%{__mkdir_p} %{buildroot}%{_sysconfdir}/modprobe.d/
cat > %{buildroot}%{_sysconfdir}/modprobe.d/50-blacklist-rtl8xxxu.conf<<-'EOF'
#On many Realtek Ethernet controllers the old device driver rtl8xxxu does
#not work reliably. To solve this the rtl8xxxu kernel module has to be
#blacklisted to enable the system to load the new device driver rtl8188eu.
blacklist rtl8xxxu
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files blacklist-rtl8xxxu
%defattr(-, root, root)
%config %{_sysconfdir}/modprobe.d/50-blacklist-rtl8xxxu.conf
%changelog