Skip to content

Commit

Permalink
Merge pull request #142 from wolfy67/master
Browse files Browse the repository at this point in the history
Add the kmod for RTL8188EU, adjusted to build in EL 6.8
  • Loading branch information
wolfy67 committed Jun 26, 2016
2 parents 75d51fd + b27898b commit eda1f8e
Show file tree
Hide file tree
Showing 4 changed files with 683 additions and 0 deletions.
61 changes: 61 additions & 0 deletions 8188eu-kmod/el6/8188eu-kmod.spec
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.
Loading

0 comments on commit eda1f8e

Please sign in to comment.