LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File r8168.spec of Package r8168 (Project home:worldcitizen:branches:drivers:nic)

#
# spec file for package r8168
#
# Copyright (c) 2013 SUSE LINUX Products 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.035.00
Release:        0.0
Summary:        Kernel module for RealTek RTL8111/8168 PCI-Express NICs
License:        GPL-2.0+
Group:          Hardware/Other
Url:            http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
Source0:        %{name}-%{version}.tar.bz2
Source1:        preamble
BuildRequires:  kernel-source
BuildRequires:  kernel-syms
BuildRequires:  module-init-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Realtek r8168 kernel module for RealTek RTL8111/8168, Gigabit Ethernet controllers with PCI-Express interface.

%package KMP
Summary:        Kernel module for RealTek RTL8111/8168 PCI-Express NICs
Group:          System/Kernel

%description KMP
Realtek r8168 kernel module for RealTek RTL8111/8168, Gigabit Ethernet controllers with PCI-Express interface.

%suse_kernel_module_package -p %{_sourcedir}/preamble kdump um debug ec2

%prep
%setup -q
set -- *
mkdir source
mv "$@" source/

%build
mkdir obj
for flavor in %{flavors_to_build}; do
	rm -rf obj/$flavor
	cp -r source/src obj/$flavor
	make -C /usr/src/linux-obj/%{_target_cpu}/$flavor M=$PWD/obj/$flavor clean modules
done

%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
for flavor in %{flavors_to_build}; do
	make -C /usr/src/linux-obj/%{_target_cpu}/$flavor M=$PWD/obj/$flavor modules_install
done

%changelog