Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mge1512:x100e
rtl8192se
rtl8192se.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rtl8192se.spec of Package rtl8192se
# # spec file for package rtl8192se (Version 0015.0127.2010) # # # Copyright (c) 2010 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/ # # norootforbuild # Name: rtl8192se BuildRequires: kernel-source kernel-syms module-init-tools dos2unix Summary: RealTek RTL8192SE Wireless LAN NIC driver Version: 0017.0507.2010 Release: 2.mge Group: System/Kernel License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %{name}_linux_2.6.%{version}.tar.bz2 Source1: %{name}.modprobe Source2: preamble Source100: %{name}.changes Patch0: %{name}-powersave.patch Autoreqprov: on %suse_kernel_module_package -n rtl8192se -p %_sourcedir/preamble kdump ec2 um %description This package contains a kernel module, firmware, some scripts and documentation for Realtek RTL8192SE PCI "draft-N" WiFi cards. The driver will be called "r8192se_pci.ko", the follwong PCI-IDs are supported: 10ec:8171 10ec:8172 10ec:8173 10ec:8174 %package KMP Summary: Linux driver for Realtek RTL8192SE PCI WiFi cards Group: System/Kernel Requires: %{name}-firmware = %{version} %description KMP This package contains a kernel module for Realtek RTL8192SE PCI "draft-N" WiFi cards. The driver will be called "r8192se_pci.ko", the follwong PCI-IDs are supported: 10ec:8171 10ec:8172 10ec:8173 10ec:8174 %package -n %{name}-firmware Summary: Firmware files for Realtek RTL8192SE PCI WiFi cards Group: Hardware/Wifi %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif # Modules: r8192se_pci.ko Supplements: modalias(pci:v000010ECd0000817[1234]sv*sd*bc*sc*i*) # Generated with: extract-modaliases r8192se_pci %description -n %{name}-firmware This package is required for running Realtek RTL8192SE PCI wireless LAN adapters. %prep %setup -q -n %{name}_linux_2.6.%{version} # set reasonable permissions find . -type f -exec chmod 0644 {} \; dos2unix ifcfg-wlan0 %patch0 -p0 set -- * mkdir source mv "$@" source/ mkdir obj %build export EXTRA_CFLAGS='-DVERSION=\"%version\"' for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ M=$PWD/obj/$flavor/HAL/rtl8192 done %install # install the firmware files mkdir -p $RPM_BUILD_ROOT/lib/firmware/RTL8192SE/ mkdir -p $RPM_BUILD_ROOT/%{_bindir} install -m 0644 source/firmware/RTL8192SE/* $RPM_BUILD_ROOT/lib/firmware/RTL8192SE/ # install the scripts install -m 0755 source/realtek/RadioPower.sh $RPM_BUILD_ROOT/%{_bindir}/%{name}-RadioPower.sh install -m 0755 source/realtek/wireless-rtl-ac-dc-power.sh $RPM_BUILD_ROOT/%{_bindir}/%{name}-ac-dc-power.sh # install the module options file mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d/ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/modprobe.d/51-%{name}.conf # install the module export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do if [ $flavor != debug ] ; then find . -iname "*.ko" -exec strip --strip-debug {} \; fi make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor/HAL/rtl8192 done %post -n %{name}-firmware test -f /.buildenv && exit 0 driver_active() { for i in /sys/class/net/*/device/driver ; do test -e $i || continue DRV=$(basename `readlink $i`) test "$DRV" = "$1" && return 0 done return 1 } driver_loaded() { lsmod | grep -q "$1" } if ! driver_active r8192se_pci ; then if driver_loaded r8192se_pci ; then echo "Reloading module r8192se_pci" modprobe -r "r8192se_pci" modprobe "r8192se_pci" fi fi exit 0 %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc source/release* source/readme* source/ifcfg-wlan0 %{_bindir}/%{name}-RadioPower.sh %{_bindir}/%{name}-ac-dc-power.sh %config(noreplace) %{_sysconfdir}/modprobe.d/51-%{name}.conf %files -n %{name}-firmware %defattr (-,root,root) %dir /lib/firmware/RTL8192SE /lib/firmware/RTL8192SE/* %changelog * Sat May 1 2010 AxelKoellhofer@web.de - 0015.0127.2010 - added modaliases to preamble (extract-modaliases) - spec cleanup * Thu Mar 18 2010 AxelKoellhofer@web.de - 0015.0127.2010 - initial package, version 0015.0127.2010
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor