- consistent versioning
[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     1
9 %define         snap    20190102
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.2
14 Epoch:          1
15 Release:        0.%{snap}.%{rel}%{?_pld_builder:@%{_kernel_ver_str}}
16 License:        GPL
17 Group:          Base/Kernel
18 Source0:        https://github.com/gordboy/rtl8812au/archive/master/%{pname}-%{version}-%{snap}.tar.gz
19 # Source0-md5:  10d0ba4b39f0e5f7349eabbd772084f8
20 # good luck finding this chip on Realtek website :/
21 #URL:           http://www.realtek.com.tw/
22 URL:            https://github.com/gordboy/rtl8812au
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:        0.%{snap}.%{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
65 %build
66 %{expand:%build_kernel_packages}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT
71
72 cp -a installed/* $RPM_BUILD_ROOT
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
This page took 0.100815 seconds and 3 git commands to generate.