File rtl8192eu.spec of Package rtl8192eu
#
# 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
# needssslcertforbuild
Name: rtl8192eu
Summary: RTL8192eu Linux Driver
Version: 5.6.4.git20220526
Release: 0
Group: System/Kernel
License: GPL-2.0
Url: https://github.com/Mange/rtl8192eu-linux-driver
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}.tar.gz
Source1: preamble
Patch1: leap154.patch
Patch2: leap153.patch
Patch3: leap.patch
Patch4: kernel517.patch
Patch5: kernel519.patch
BuildRequires: %kernel_module_package_buildreqs
BuildRequires: pesign-obs-integration
BuildRequires: bc
Autoreqprov: on
%kernel_module_package -n rtl8192eu -x debug -x trace -c %_sourcedir/_projectcert.crt -p %_sourcedir/preamble
%description
This package contains the rtl8192eu Driver for Linux
Its an Implacemant for some chips of the rtl8xxxu driver.
The driver will be called "8192eu.ko"
%package KMP
Summary: RTL8182eu Linux Driver
Group: System/Kernel
%description KMP
This package contains the rtl8192eu Driver for Linux
Its an Implacemant for some chips of the rtl8xxxu driver.
The driver will be called "8192eu.ko"
You need also the blacklist rpm.
%package blacklist-rtl8xxxu
Summary: To favour rtl8192eu 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 rtl8192eu.
%prep
echo %flavors_to_build
%setup -q -n %{name}
%if 0%{?sle_version} == 150300
%patch2 -p1
%endif
%patch3 -p1
%patch4 -p1
%if 0%{?sle_version} == 150400
%patch1 -p1
%endif
%patch5 -p1
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
export CONFIG_RTL8192EU=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_RTL8192EU=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 rtl8192eu.
blacklist rtl8xxxu
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files blacklist-rtl8xxxu
%defattr(-, root, root)
%config %{_sysconfdir}/modprobe.d/50-blacklist-rtl8xxxu.conf
%changelog