A new user interface for you! Read more...

File realtek-r8169.spec of Package realtek-r8169

#
# 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:           realtek-r8169
Version:        2.3
Release:        0
Summary:        Realtek 8169 gigabit ethernet support
License:        GPL-2.0
Group:          System/Kernel
Source0:        r8169.c
Source1:        Makefile
Patch0:         0001-r8169-print-unmasked-XID.patch
BuildRequires:  %{kernel_module_package_buildreqs}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%kernel_module_package -p %_sourcedir/preamble

%description
This package contains the kernel module providing support for PCI and PCIe
RealTek 8169/8168/8101 ethernet controllers.

It is based on net/ethernet/realtek/r8169.c from the net-next branch of the
linux kernel sources.

%prep
%setup -T -c
echo "r8169.ko" > Module.supported
cp %{SOURCE0} .
cp %{SOURCE1} .
%patch0 -p5
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
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
done

%changelog