Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sbrabec
mt7601u
mt7601u.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mt7601u.spec of Package mt7601u
# # spec file for package mt7601u # # Copyright (c) 2014 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: mt7601u Version: 3.0.0.4~20130913 Release: 0 Summary: MediaTek Kernel Module for MT7601U Wi-Fi Devices License: GPL-2.0+ Group: System/Kernel Url: http://www.mediatek.com/en/downloads/mt7601u-usb/ Source0: DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 Source1: %{name}-kmp.preamble # PATCH-FIX-OPENSUSE mt7601u-kernel.patch sbrabec@suse.cz Patch0: mt7601u-kernel.patch # PATCH-FIX-OPENSUSE mt7601u-destdir.patch sbrabec@suse.cz Patch1: mt7601u-destdir.patch # PATCH-FIX-UPSTREAM mt7601u-xiaomi-miniwifi.patch sbrabec@suse.cz -- Enable xiaomi miniwifi support Patch2: mt7601u-xiaomi-miniwifi.patch # PATCH-FIX-UPSTREAM mt7601u-360wifi.patch hillwood@opensuse.org -- Enable 360WIFI support Patch3: mt7601u-360wifi.patch # PATCH-FIX-OPENSUSE mt7601u-fixed-datetime.patch sbrabec@suse.cz Patch4: mt7601u-fixed-datetime.patch # Time must be fixed to not trigger rebuilds. Got by: # LC_TIME=C TZ=Asia/Taipei date -r DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/chips/mt7601.c +'"%b %d %Y", "%H:%M:%S"' BuildRequires: %{kernel_module_package_buildreqs} Requires: mt7601u-kmp = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{kernel_module_package -p %{name}-kmp.preamble} %description mt7601u is a kernel module for MediaTek MT7601U Wi-Fi devices like Xiaomi MiniWifi (Mi Wifi) and 360Wifi dongle. Only client part was released by the vendor. No AP mode available. Note that this driver uses the old Wireless Extensions (wext), and not modern nl80211 stack. You may need to configure wpa_supplicant manually. %prep %setup -q -n DPO_MT7601U_LinuxSTA_3.0.0.4_20130913 %if %suse_version > 1200 %patch0 -p1 %endif %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 chmod -x iwpriv_usage.txt README_STA_usb sta_ate_iwpriv_usage.txt set -- * mkdir source mv "$@" source/ mkdir obj %build for flavor in %{flavors_to_build}; do rm -rf obj/$flavor cp -r source obj/$flavor cd obj/$flavor # UGLY HACK!!! Redirection to /dev/null to not catch serious warnings! make %{?_smp_mflags} LINUX_SRC=%{kernel_source $flavor} LINUX_SRC_MODULE=/lib/modules/$(make -s -C %{kernel_source $flavor} kernelrelease)/updates 2>/dev/null #-C %{kernel_source $flavor} modules M=$PWD/obj/$flavor cd ../.. done %install #export INSTALL_MOD_PATH=%{buildroot} #export INSTALL_MOD_DIR=updates for flavor in %{flavors_to_build}; do cd obj/$flavor make %{?_smp_mflags} LINUX_SRC=%{kernel_source $flavor} LINUX_SRC_MODULE=/lib/modules/$(make -s -C %{kernel_source $flavor} kernelrelease)/updates DESTDIR=%{buildroot} install #-C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor cd ../.. done %files %defattr(-,root,root) %doc source/iwpriv_usage.txt source/README_STA_usb source/sta_ate_iwpriv_usage.txt %config %{_sysconfdir}/Wireless %changelog
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