-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from wolfy67/master
Add the kmod for RTL8188EU, adjusted to build in EL 6.8
- Loading branch information
Showing
4 changed files
with
683 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Define the kmod package name here. | ||
%define kmod_name 8188eu | ||
|
||
# If kversion isn't defined on the rpmbuild line, define it here. | ||
%{!?kversion: %define kversion 2.6.32-642.el6.%{_target_cpu}} | ||
|
||
Name: %{kmod_name}-kmod | ||
Version: 4.1.4_6773.20130222 | ||
Release: 2%{?dist} | ||
Group: System Environment/Kernel | ||
License: GPLv2 | ||
Summary: %{kmod_name} kernel module(s) | ||
URL: https://github.com/lwfinger/rtl8188eu | ||
|
||
BuildRequires: redhat-rpm-config | ||
ExclusiveArch: i686 x86_64 | ||
|
||
# Sources. | ||
Source0: rtl%{kmod_name}-master.zip | ||
Source5: GPL-v2.0.txt | ||
Source10: kmodtool-%{kmod_name}-el6.sh | ||
|
||
# Magic hidden here. | ||
%{expand:%(sh %{SOURCE10} rpmtemplate %{kmod_name} %{kversion} "")} | ||
|
||
# Disable the building of the debug package(s). | ||
%define debug_package %{nil} | ||
|
||
%description | ||
This package provides the %{kmod_name} kernel module(s). | ||
It is built to depend upon the specific ABI provided by a range of releases | ||
of the same variant of the Linux kernel and not on any one specific build. | ||
|
||
%prep | ||
%setup -q -n rtl%{kmod_name}-master | ||
echo "override %{kmod_name} * weak-updates/%{kmod_name}" > kmod-%{kmod_name}.conf | ||
|
||
%build | ||
%{__make} KSRC=%{_usrsrc}/kernels/%{kversion} | ||
|
||
%install | ||
%{__install} -d %{buildroot}/lib/modules/%{kversion}/extra/%{kmod_name}/ | ||
%{__install} %{kmod_name}.ko %{buildroot}/lib/modules/%{kversion}/extra/%{kmod_name}/ | ||
%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ | ||
%{__install} kmod-%{kmod_name}.conf %{buildroot}%{_sysconfdir}/depmod.d/ | ||
%{__install} -d %{buildroot}%{_defaultdocdir}/kmod-%{kmod_name}-%{version}/ | ||
%{__install} %{SOURCE5} %{buildroot}%{_defaultdocdir}/kmod-%{kmod_name}-%{version}/ | ||
# Set the module(s) to be executable, so that they will be stripped when packaged. | ||
find %{buildroot} -type f -name \*.ko -exec %{__chmod} u+x \{\} \; | ||
# Remove the unrequired files. | ||
%{__rm} -f %{buildroot}/lib/modules/%{kversion}/modules.* | ||
|
||
%clean | ||
%{__rm} -rf %{buildroot} | ||
|
||
%changelog | ||
* Thu Jun 23 2016 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 4.1.4_6773.20130222-2 | ||
- build against new kernel | ||
|
||
* Wed Oct 02 2013 Alan Bartlett <ajb@elrepo.org> - 4.1.4_6773.20130222-1 | ||
- Initial el6 build of the kmod package. |
Oops, something went wrong.