- updated to 5.2.20_25672.20171213, works with kernel 4.15
[packages/rtl8812au.git] / rtl8812au.spec
1 #
2 # Conditional build:
3 %bcond_with     verbose         # verbose build (V=1)
4
5 # nothing to be placed to debuginfo package
6 %define         _enable_debug_packages  0
7
8 %define         rel     0.1
9 %define         snap    20180131
10 %define         pname   rtl8812au
11 Summary:        Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
12 Name:           %{pname}%{_alt_kernel}
13 Version:        5.2.20_25672.20171213
14 Release:        0.%{snap}.%{rel}%{?_pld_builder:@%{_kernel_ver_str}}
15 License:        GPL
16 Group:          Base/Kernel
17 Source0:        https://github.com/gordboy/rtl8812au/archive/master/%{pname}-%{version}-%{snap}.tar.gz
18 # Source0-md5:  5fc6e00f86ce93feabf3fd3655207e12
19 # good luck finding this chip on Realtek website :/
20 #URL:           http://www.realtek.com.tw/
21 URL:            https://github.com/gordboy/rtl8812au
22 Patch0:         gcc-4.9.patch
23 BuildRequires:  rpmbuild(macros) >= 1.701
24 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
25 BuildRoot:      %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
26
27 %description
28 Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter.
29
30 %define kernel_pkg()\
31 %package -n kernel%{_alt_kernel}-net-rtl8812au\
32 Summary:        Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
33 Release:        %{rel}@%{_kernel_ver_str}\
34 Group:          Base/Kernel\
35 Requires(post,postun):  /sbin/depmod\
36 %requires_releq_kernel\
37 Requires(postun):       %releq_kernel\
38 \
39 %description -n kernel%{_alt_kernel}-net-rtl8812au\
40 Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
41 \
42 %files -n kernel%{_alt_kernel}-net-rtl8812au\
43 %defattr(644,root,root,755)\
44 %doc Realtek_Changelog.txt README.md\
45 /lib/modules/%{_kernel_ver}/kernel/drivers/net/wireless/*.ko*\
46 \
47 %post   -n kernel%{_alt_kernel}-net-rtl8812au\
48 %depmod %{_kernel_ver}\
49 \
50 %postun -n kernel%{_alt_kernel}-net-rtl8812au\
51 %depmod %{_kernel_ver}\
52 %{nil}
53
54 %define build_kernel_pkg()\
55 %{__make} clean KVER=%{_kernel_ver} KSRC=%{_kernelsrcdir}\
56 %{__make} modules KVER=%{_kernel_ver} KSRC=%{_kernelsrcdir}\
57 %install_kernel_modules -D installed -m 8812au -d kernel/drivers/net/wireless\
58 %{nil}
59
60 %{expand:%create_kernel_packages}
61
62 %prep
63 %setup -q -n %{pname}-master
64 %patch0 -p1
65
66 %build
67 %{expand:%build_kernel_packages}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT
72
73 cp -a installed/* $RPM_BUILD_ROOT
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
This page took 0.086992 seconds and 3 git commands to generate.