# # spec file for package realtek-r8169 # # 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/ # Name: r8168 Version: 8.052.01 Release: 5.15.137 Summary: Realtek 8168 gigabit ethernet support License: GPL-2.0 Group: System/Kernel Source0: %{name}-%{version}.tar.bz2 Source1: %name-preamble # eisfair patch for use_dac=0 Patch100: r8168-dac.patch %kernel_module_package -p %name-preamble %description This package contains the kernel module providing support for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface %prep %setup -q %patch100 -p1 echo "%{name}.ko" > Module.supported set -- * mkdir source mv "$@" source/ mkdir obj %build for flavor in %{flavors_to_build}; do rm -rf obj/$flavor cp -r source obj/$flavor make -C %{kernel_source $flavor} modules \ M=$PWD/obj/${flavor}/src done %install export INSTALL_MOD_PATH=%{buildroot} export INSTALL_MOD_DIR=updates for flavor in %{flavors_to_build}; do make -C %{kernel_source $flavor} modules_install \ M=$PWD/obj/${flavor}/src done %changelog