- rel 2
[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     2
9 %define         basever 5.6.4.2
10 %define         snap    20200815
11 %define         pname   rtl8812au
12 Summary:        Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
13 Name:           %{pname}%{_alt_kernel}
14 Version:        %{basever}.%{snap}
15 Epoch:          1
16 Release:        %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
17 License:        GPL
18 Group:          Base/Kernel
19 Source0:        https://github.com/gordboy/rtl8812au-5.6.4.2/archive/master/%{pname}-%{basever}-%{snap}.tar.gz
20 # Source0-md5:  35b19b616bebf46fb6f7f27e3e6d1cb0
21 # good luck finding this chip on Realtek website :/
22 #URL:           http://www.realtek.com.tw/
23 URL:            https://github.com/gordboy/rtl8812au-5.6.4.2
24 BuildRequires:  rpmbuild(macros) >= 1.701
25 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
26 BuildRoot:      %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
27
28 %description
29 Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter.
30
31 %define kernel_pkg()\
32 %package -n kernel%{_alt_kernel}-net-rtl8812au\
33 Summary:        Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
34 Release:        %{rel}@%{_kernel_ver_str}\
35 Group:          Base/Kernel\
36 Requires(post,postun):  /sbin/depmod\
37 %requires_releq_kernel\
38 Requires(postun):       %releq_kernel\
39 \
40 %description -n kernel%{_alt_kernel}-net-rtl8812au\
41 Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
42 \
43 %files -n kernel%{_alt_kernel}-net-rtl8812au\
44 %defattr(644,root,root,755)\
45 %doc Realtek_Changelog.txt README.md\
46 /lib/modules/%{_kernel_ver}/kernel/drivers/net/wireless/*.ko*\
47 \
48 %post   -n kernel%{_alt_kernel}-net-rtl8812au\
49 %depmod %{_kernel_ver}\
50 \
51 %postun -n kernel%{_alt_kernel}-net-rtl8812au\
52 %depmod %{_kernel_ver}\
53 %{nil}
54
55 %define build_kernel_pkg()\
56 %{__make} clean KVER=%{_kernel_ver} KSRC=%{_kernelsrcdir}\
57 %{__make} modules KVER=%{_kernel_ver} KSRC=%{_kernelsrcdir}\
58 %install_kernel_modules -D installed -m 8812au -d kernel/drivers/net/wireless\
59 %{nil}
60
61 %{expand:%create_kernel_packages}
62
63 %prep
64 %setup -q -n %{pname}-%{basever}-master
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.065561 seconds and 3 git commands to generate.