Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
r8101
> r8101.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File r8101.spec of Package r8101
# norootforbuild %define _blacklist /etc/modprobe.d/blacklist %define _blackmodule r8169 Name: r8101 Version: 1.022.00 Release: 1.0 License: GNU GPL Group: Hardware/Other Url: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false Source0: %{name}-%{version}.tar.bz2 Source1: preamble Source2: r8101.pm BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: -pesign-obs-integration BuildRequires: kernel-source kernel-syms module-init-tools Requires: pm-utils Summary: Kernel module for RealTek RTL8100/8101/8102/8103 PCI-Express NICs %description Realtek r8101 kernel module for RealTek RTL8100/8101/8102/8103 Fast Ethernet controllers with PCI-Express interface. %package KMP Group: System/Kernel Summary: Kernel module for RealTek RTL8100/8101/8102/8103 PCI-Express NICs %description KMP Realtek r8101 kernel module for RealTek RTL8100/8101/8102/8103 Fast Ethernet controllers with PCI-Express interface. %suse_kernel_module_package -p %{_sourcedir}/preamble kdump um debug ec2 %debug_package_requires %{name}-KMP = %{version}-%{release} %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 %__install -Dm 0755 %{_sourcedir}/r8101.pm %{buildroot}/%{_prefix}/lib/pm-utils/sleep.d/05r8101 %post if [ "`%__sed "/^.*#/d;/%{_blackmodule}/!d" %{_blacklist}`" == "" ]; then echo "blacklist %{_blackmodule}" >> %{_blacklist} fi %postun %__cp -p %{_blacklist} %{_blacklist}.tmp %__sed "/%{_blackmodule}/d" %{_blacklist}.tmp > %{_blacklist} %__rm -f %{_blacklist}.tmp %clean test "%{buildroot}" != "/" && %__rm -rf %{buildroot} %files %defattr(-,root,root) %dir %{_prefix}/lib/pm-utils %dir %{_prefix}/lib/pm-utils/sleep.d %{_prefix}/lib/pm-utils/sleep.d/05r8101 %changelog * Tue Jun 16 2009 bitshuffler #suse@irc.freenode.org - Removed the bnc #487557 patch since it shouldn't be necessary any longer. * Thu May 07 2009 bitshuffler #suse@irc.freenode.org - Updated to 1.012.00 * Tue Apr 14 2009 bitshuffler #suse@irc.freenode.org - Fix for unloading the driver (bnc #487557). * Wed Feb 25 2009 bitshuffler #suse@irc.freenode.org - Initial RPM