summaryrefslogtreecommitdiff
path: root/linux-firmware.spec
blob: adbdf79a23d5b387f5a3860fc271f411cf617717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# TODO
# - subpackages for various firmwares?
# - (since 5.3) compress firmware: https://git.kernel.org/linus/82fd7a8142a10b8eb41313074b3859d82c0857dc
%define		rel	1
%define		ver	20200519
Summary:	Firmware files used by the Linux kernel
Summary(pl.UTF-8):	Pliki firmware'u używane przez jądro Linuksa
Name:		linux-firmware
Version:	%{ver}
Release:	%{rel}
License:	GPL+ and GPL v2+ and MIT and Redistributable, no modification permitted
Group:		Base/Kernel
# in case git snapshot is needed
#Source0:	https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/%{name}-%{version}.tar.gz
# upstream tarball
Source0:	https://www.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.xz
# Source0-md5:	04968ac1bc835ca142359e28df4a901d
URL:		https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
BuildRequires:	tar >= 1:1.22
BuildRequires:	xz
Obsoletes:	microcode-data-amd
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		no_install_post_strip	1

%description
This package includes firmware files required for some devices to
operate.

%description -l pl.UTF-8
Ten pakiet zawiera pliki firmware'u wymagane do działania niektórych
urządzeń.

%package -n iwl100-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 100 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 100
Version:	39.31.5.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl100-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl100 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl100-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl100. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl105-firmware
Summary:	Firmware for Intel(R) Centrino Wireless-N 105 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii Centrino Wireless-N 105
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl105-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl105 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl105-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl105. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl135-firmware
Summary:	Firmware for Intel(R) Centrino Wireless-N 135 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii Centrino Wireless-N 135
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl135-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl135 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl135-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl135. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl1000-firmware
Summary:	Firmware for Intel(R) PRO/Wireless 1000 B/G/N network adaptors
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii Pro/Wireless 1000 B/G/N
Version:	39.31.5.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwl1000-firmware < 1:39.31.5.1-3
Obsoletes:	iwlwifi-1000-ucode

%description -n iwl1000-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl1000 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl1000-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl1000. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl2000-firmware
Summary:	Firmware for Intel(R) Centrino Wireless-N 2000 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii Centrino Wireless-N 2000
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl2000-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl2000 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl2000-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl2000. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl2030-firmware
Summary:	Firmware for Intel(R) Centrino Wireless-N 2030 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii Centrino Wireless-N 2030
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl2030-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl2030 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl2030-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl2030. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl3160-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 3160 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 3160
Version:	25.30.13.0
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl3160-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl3160 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl3160-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl3160. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl3945-firmware
Summary:	Firmware for Intel(R) PRO/Wireless 3945 A/B/G network adaptors
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii PRO/Wireless 3945 A/B/G
Version:	15.32.2.9
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-3945-ucode

%description -n iwl3945-firmware
This package contains the firmware required by the iwl3945 driver for
Linux. Usage of the firmware is subject to the terms and conditions
contained inside the provided LICENSE file. Please read it carefully.

%description -n iwl3945-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagany przez linuksowy sterownik
iwl3945. Używanie firmware'u podlega warunkom opisanym w załączonym
pliku LICENSE.

%package -n iwl4965-firmware
Summary:	Firmware for Intel(R) PRO/Wireless 4965 A/G/N network adaptors
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii PRO/Wireless 4965 A/G/N
Version:	228.61.2.24
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-4965-ucode

%description -n iwl4965-firmware
This package contains the firmware required by the iwl4965 driver for
Linux. Usage of the firmware is subject to the terms and conditions
contained inside the provided LICENSE file. Please read it carefully.

%description -n iwl4965-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagany przez linuksowy sterownik
iwl4965. Używanie firmware'u podlega warunkom opisanym w załączonym
pliku LICENSE.

%package -n iwl5000-firmware
Summary:	Firmware for Intel(R) PRO/Wireless 5000 A/G/N network adaptors
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii PRO/Wireless 5000 A/G/N
Version:	8.83.5.1_1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-5000-ucode

%description -n iwl5000-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl5000 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl5000-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl5000. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl5150-firmware
Summary:	Firmware for Intel(R) PRO/Wireless 5150 A/G/N network adaptors
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii PRO/Wireless 5150 A/G/N
Version:	8.24.2.2
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-5150-ucode

%description -n iwl5150-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl5150 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl5150-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl5150. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl6000-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 6000 AGN Adapter
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 6000 AGN
Version:	9.221.4.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-6000-ucode

%description -n iwl6000-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl6000 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl6000-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl6000. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl6000g2a-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 6005 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 6005
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted

%description -n iwl6000g2a-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl6000g2a hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl6000g2a-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl6000g2a. Używanie firmware'u
podlega warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl6000g2b-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 6030 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 6030
Version:	18.168.6.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-6030-ucode

%description -n iwl6000g2b-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl6000g2b hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl6000g2b-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl6000g2b. Używanie firmware'u
podlega warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl6050-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 6050 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 6050
Version:	41.28.5.1
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-6050-ucode

%description -n iwl6050-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl6050 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl6050-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl6050. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n iwl7260-firmware
Summary:	Firmware for Intel(R) Wireless WiFi Link 726x/8000/9000/AX200/AX201 Series Adapters
Summary(pl.UTF-8):	Firmware dla kart bezprzewodowych Intela z serii WiFi Link 726x/8000/9000/AX200/AX201
Version:	25.228.9.0
Release:	%{ver}.%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	iwlwifi-7260-ucode
Conflicts:	linux-firmware < 20181008-4

%description -n iwl7260-firmware
This package contains the firmware required by the Intel wireless
drivers for Linux to support the iwl7260 hardware. Usage of the
firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.

%description -n iwl7260-firmware -l pl.UTF-8
Ten pakiet zawiera firmware wymagane przez linuksowe sterowniki do
kart bezprzewodowych Intela typu iwl7260. Używanie firmware'u podlega
warunkom opisanym w załączonym pliku LICENSE.

%package -n libertas-sd8686-firmware
Summary:	Firmware for Marvell Libertas SD 8686 Network Adapter
Summary(pl.UTF-8):	Firmware dla kart sieciowych Marvell Libertas SD 8686
Version:	0.%{ver}
Release:	%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	libertas-sd8686-firmware < 9.70.20.p0-4

%description -n libertas-sd8686-firmware
Firmware for Marvell Libertas SD 8686 Network Adapter.

%description -n libertas-sd8686-firmware -l pl.UTF-8
Firmware dla kart sieciowych Marvell Libertas SD 8686.

%package -n libertas-sd8787-firmware
Summary:	Firmware for Marvell Libertas SD 8787 Network Adapter
Summary(pl.UTF-8):	Firmware dla kart sieciowych Marvell Libertas SD 8787
Version:	0.%{ver}
Release:	%{rel}
License:	Redistributable, no modification permitted

%description -n libertas-sd8787-firmware
Firmware for Marvell Libertas SD 8787 Network Adapter.

%description -n libertas-sd8787-firmware -l pl.UTF-8
Firmware dla kart sieciowych Marvell Libertas SD 8787.

%package -n libertas-usb8388-firmware
Summary:	Firmware for Marvell Libertas USB 8388 Network Adapter
Summary(pl.UTF-8):	Firmware dla kart sieciowych Marvell Libertas USB 8388
Version:	0.%{ver}
Release:	%{rel}
License:	Redistributable, no modification permitted
Obsoletes:	libertas-usb8388-firmware < 2:5.110.22.p23-8

%description -n libertas-usb8388-firmware
Firmware for Marvell Libertas USB 8388 Network Adapter.

%description -n libertas-usb8388-firmware -l pl.UTF-8
Firmware dla kart sieciowych Marvell Libertas USB 8388.

%package -n libertas-usb8388-olpc-firmware
Summary:	OLPC firmware for Marvell Libertas USB 8388 Network Adapter
Summary(pl.UTF-8):	Firmware OLPC dla kart sieciowych Marvell Libertas USB 8388
Version:	0.%{ver}
Release:	%{rel}
License:	Redistributable, no modification permitted

%description -n libertas-usb8388-olpc-firmware
Firmware for Marvell Libertas USB 8388 Network Adapter with OLPC mesh
network support.

%description -n libertas-usb8388-olpc-firmware -l pl.UTF-8
Firmware dla kart sieciowych Marvell Libertas USB 8388 z obsługą
punktów sieci OLPC.

%prep
%setup -q

# Remove firmware shipped in separate packages already
# Perhaps these should be built as subpackages of linux-firmware?
# - ql{2100,2200,2300,2322,2400,2500}-firmware.spec
%{__rm} ql{2100,2200,2300,2322,2400,2500}_fw.bin LICENCE.qla2xxx
# - alsa-firmware.spec
%{__rm} -r ess korg sb16 yamaha
# We have _some_ ralink firmware in separate packages already. (which packages???)
%{__rm} rt73.bin rt2561.bin rt2561s.bin rt2661.bin
# And _some_ conexant firmware. (which packages???)
%{__rm} v4l-cx23418-apu.fw v4l-cx23418-cpu.fw v4l-cx23418-dig.fw v4l-cx25840.fw
# Netxen firmware (which package???)
%{__rm} phanfw.bin LICENCE.phanfw
# - radeon-ucode.spec
%{__rm} radeon/{ARUBA,BARTS,BONAIRE,BTC,CAICOS,CAYMAN,CEDAR,CYPRESS,HAINAN,HAWAII,JUNIPER,KABINI,KAVERI,MULLINS,OLAND,PALM,PITCAIRN,R700,REDWOOD,SUMO,SUMO2,TAHITI,TURKS,VERDE,bonaire,hainan,hawaii,kabini,kaveri,mullins,oland,pitcairn,tahiti,verde}_*.bin
# R{100,200,300,420,520}_cp.bin, R600_{me,pfp}.bin, RS{600,690}_cp.bin, RS780_{me,pfp}.bin, RV610_{me,pfp}.bin RV620_{me,pfp}.bin, RV630_{me,pfp}.bin, RV635_{me,pfp}.bin, RV710-{me,pfp}.bin, RV730_{me,pfp}.bin RV770_{me,pfp}.bin are missing in radeon_ucode
%{__rm} radeon/R600_{rlc,uvd}.bin
%{__rm} radeon/RS780_uvd.bin
%{__rm} radeon/RV710_{smc,uvd}.bin
%{__rm} radeon/RV730_smc.bin
%{__rm} radeon/RV740_smc.bin
%{__rm} radeon/RV770_{smc,uvd}.bin

# No need to install old firmware versions where we also provide newer versions
# which are preferred and support the same (or more) hardware
%{__rm} libertas/sd8686_v8*
%{__rm} libertas/usb8388_v5.bin

# Remove source files we don't need to install
%{__rm} */*.asm dsp56k/{Makefile,concat-bootstrap.pl} isci/{Makefile,README,*.[ch]}
%{__rm} -r carl9170fw usbdux
%{__rm} Makefile configure

%{__mv} rtw88/README README.rtw88

%install
rm -rf $RPM_BUILD_ROOT

./copy-firmware.sh $RPM_BUILD_ROOT/lib/firmware

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc WHENCE LICENCE.* LICENSE.* README README.rtw88 TDA7706_OM_v*_boot.txt
/lib/firmware/3com
/lib/firmware/TDA7706_OM_v*_boot.txt
# links to qcom/a300_*.fw
/lib/firmware/a300_pfp.fw
/lib/firmware/a300_pm4.fw
/lib/firmware/acenic
/lib/firmware/adaptec
/lib/firmware/advansys
/lib/firmware/agere_*_fw.bin
/lib/firmware/amd
/lib/firmware/amdgpu
/lib/firmware/amd-ucode
/lib/firmware/ar3k
/lib/firmware/ar5523.bin
/lib/firmware/ar7010*.fw
/lib/firmware/ar9170-*.fw
/lib/firmware/ar9271.fw
/lib/firmware/as102_data1_st.hex
/lib/firmware/as102_data2_st.hex
/lib/firmware/ath10k
/lib/firmware/ath3k-1.fw
/lib/firmware/ath6k
/lib/firmware/ath9k_htc
/lib/firmware/atmel
/lib/firmware/atmsar11.fw
/lib/firmware/atusb
/lib/firmware/av7110
/lib/firmware/bnx2
/lib/firmware/bnx2x
/lib/firmware/bnx2x-e1-*.fw
/lib/firmware/bnx2x-e1h-*.fw
/lib/firmware/brcm
/lib/firmware/cadence
/lib/firmware/carl9170-1.fw
/lib/firmware/cavium
/lib/firmware/cbfw-*.bin
/lib/firmware/cis
/lib/firmware/cmmb_*_12mhz.inp
/lib/firmware/cpia2
/lib/firmware/ct2fw-*.bin
/lib/firmware/ctefx.bin
/lib/firmware/ctfw-*.bin
/lib/firmware/ctspeq.bin
/lib/firmware/cxgb3
/lib/firmware/cxgb4
/lib/firmware/dabusb
%dir /lib/firmware/dpaa2
%dir /lib/firmware/dpaa2/mc
/lib/firmware/dpaa2/mc/mc_10.10.0_ls1088a.itb
/lib/firmware/dpaa2/mc/mc_10.10.0_ls2088a.itb
/lib/firmware/dpaa2/mc/mc_10.10.0_lx2160a.itb
/lib/firmware/dpaa2/mc/mc_10.14.3_ls1088a.itb
/lib/firmware/dpaa2/mc/mc_10.14.3_ls2088a.itb
/lib/firmware/dpaa2/mc/mc_10.14.3_lx2160a.itb
/lib/firmware/dpaa2/mc/mc_10.16.2_ls1088a.itb
/lib/firmware/dpaa2/mc/mc_10.16.2_ls2088a.itb
/lib/firmware/dpaa2/mc/mc_10.16.2_lx2160a.itb
/lib/firmware/dpaa2/mc/mc_10.18.0_ls1088a.itb
/lib/firmware/dpaa2/mc/mc_10.18.0_ls2088a.itb
/lib/firmware/dpaa2/mc/mc_10.18.0_lx2160a.itb
/lib/firmware/dsp56k
/lib/firmware/dvb-fe-xc4000-*.fw
/lib/firmware/dvb-fe-xc5000c-*.fw
/lib/firmware/dvb-fe-xc5000-*.fw
/lib/firmware/dvb_nova_12mhz*.inp
/lib/firmware/dvb-usb-dib0700-*.fw
/lib/firmware/dvb-usb-it9135-01.fw
/lib/firmware/dvb-usb-it9135-02.fw
/lib/firmware/dvb-usb-terratec-h5-drxk.fw
/lib/firmware/e100
/lib/firmware/edgeport
/lib/firmware/emi26
/lib/firmware/emi62
/lib/firmware/ene-ub6250
/lib/firmware/f2255usb.bin
/lib/firmware/go7007
/lib/firmware/hfi1_dc8051.fw
/lib/firmware/hfi1_fabric.fw
/lib/firmware/hfi1_pcie.fw
/lib/firmware/hfi1_sbus.fw
/lib/firmware/htc_7010.fw
/lib/firmware/htc_9271.fw
/lib/firmware/i2400m-fw-usb-*.sbcf
/lib/firmware/i6050-fw-usb-*.sbcf
/lib/firmware/i915
/lib/firmware/imx
%dir /lib/firmware/inside-secure
%dir /lib/firmware/inside-secure/eip197_minifw
/lib/firmware/inside-secure/eip197_minifw/ifpp.bin
/lib/firmware/inside-secure/eip197_minifw/ipue.bin
/lib/firmware/intel
/lib/firmware/intelliport2.bin
/lib/firmware/isci
/lib/firmware/isdbt_*.inp
/lib/firmware/kaweth
/lib/firmware/keyspan
/lib/firmware/keyspan_pda
/lib/firmware/lbtf_usb.bin
/lib/firmware/lgs8g75.fw
%dir /lib/firmware/libertas
/lib/firmware/libertas/cf8381*.bin
/lib/firmware/libertas/cf8385*.bin
/lib/firmware/libertas/gspi8682*.bin
/lib/firmware/libertas/gspi8686_v9*.bin
/lib/firmware/libertas/gspi8688*.bin
/lib/firmware/libertas/lbtf_sdio.bin
/lib/firmware/libertas/sd8385*.bin
/lib/firmware/libertas/sd8682*.bin
# links to mrvl/sd8688*
/lib/firmware/libertas/sd8688*.bin
/lib/firmware/libertas/usb8682.bin
/lib/firmware/liquidio
/lib/firmware/matrox
%dir /lib/firmware/mediatek
/lib/firmware/mediatek/mt7610e.bin
/lib/firmware/mediatek/mt7610u.bin
/lib/firmware/mediatek/mt7615_cr4.bin
/lib/firmware/mediatek/mt7615_n9.bin
/lib/firmware/mediatek/mt7615_rom_patch.bin
/lib/firmware/mediatek/mt7622_n9.bin
/lib/firmware/mediatek/mt7622_rom_patch.bin
/lib/firmware/mediatek/mt7622pr2h.bin
/lib/firmware/mediatek/mt7650e.bin
/lib/firmware/mediatek/mt7662u.bin
/lib/firmware/mediatek/mt7662u_rom_patch.bin
/lib/firmware/mediatek/mt7663_n9_rebb.bin
/lib/firmware/mediatek/mt7663_n9_v3.bin
/lib/firmware/mediatek/mt7663pr2h.bin
/lib/firmware/mediatek/mt7663pr2h_rebb.bin
/lib/firmware/mediatek/mt7668pr2h.bin
/lib/firmware/mediatek/mt7915_rom_patch.bin
/lib/firmware/mediatek/mt7915_wa.bin
/lib/firmware/mediatek/mt7915_wm.bin
/lib/firmware/mediatek/mt8173
/lib/firmware/mediatek/mt8183
/lib/firmware/meson
%dir /lib/firmware/microchip
/lib/firmware/microchip/mscc_vsc8574_revb_int8051_29e8.bin
/lib/firmware/microchip/mscc_vsc8584_revb_int8051_fb48.bin
/lib/firmware/mellanox
/lib/firmware/moxa
%dir /lib/firmware/mrvl
/lib/firmware/mrvl/pcie8897_uapsta.bin
/lib/firmware/mrvl/pcie8997_wlan_v4.bin
/lib/firmware/mrvl/pcieuart8997_combo_v4.bin
/lib/firmware/mrvl/pcieusb8997_combo_v4.bin
/lib/firmware/mrvl/sd8688*.bin
/lib/firmware/mrvl/sd8797_uapsta.bin
/lib/firmware/mrvl/sd8801_uapsta.bin
/lib/firmware/mrvl/sd8887_uapsta.bin
/lib/firmware/mrvl/sd8897_uapsta.bin
/lib/firmware/mrvl/sdsd8977_combo_v2.bin
/lib/firmware/mrvl/sdsd8997_combo_v4.bin
/lib/firmware/mrvl/usb8766_uapsta.bin
/lib/firmware/mrvl/usb8797_uapsta.bin
/lib/firmware/mrvl/usb8801_uapsta.bin
/lib/firmware/mrvl/usb8897_uapsta.bin
/lib/firmware/mrvl/usbusb8997_combo_v4.bin
/lib/firmware/mt7601u.bin
/lib/firmware/mt7650.bin
/lib/firmware/mt7662*.bin
/lib/firmware/mts_*.fw
/lib/firmware/mwl8k
/lib/firmware/mwlwifi
/lib/firmware/myri10ge_*.dat
/lib/firmware/myricom
/lib/firmware/netronome
/lib/firmware/nvidia
/lib/firmware/ositech
/lib/firmware/qat_895xcc.bin
/lib/firmware/qat_895xcc_mmp.bin
/lib/firmware/qat_c3xxx.bin
/lib/firmware/qat_c3xxx_mmp.bin
/lib/firmware/qat_c62x.bin
/lib/firmware/qat_c62x_mmp.bin
# link to qat_895xcc_mmp.bin
/lib/firmware/qat_mmp.bin
/lib/firmware/qca
/lib/firmware/qcom
%dir /lib/firmware/qed
/lib/firmware/qed/qed_init_values-8.10.9.0.bin
/lib/firmware/qed/qed_init_values-8.14.6.0.bin
/lib/firmware/qed/qed_init_values-8.18.9.0.bin
/lib/firmware/qed/qed_init_values-8.20.0.0.bin
/lib/firmware/qed/qed_init_values-8.30.12.0.bin
/lib/firmware/qed/qed_init_values-8.33.12.0.bin
/lib/firmware/qed/qed_init_values-8.37.7.0.bin
/lib/firmware/qed/qed_init_values-8.40.33.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.10.10.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.10.5.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.15.3.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.20.0.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.33.1.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.33.11.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.37.2.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.37.7.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.4.2.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.7.3.0.bin
/lib/firmware/qed/qed_init_values_zipped-8.42.2.0.bin
/lib/firmware/qlogic
/lib/firmware/r128
/lib/firmware/r8a779x_usb3_v1.dlmem
/lib/firmware/r8a779x_usb3_v2.dlmem
/lib/firmware/r8a779x_usb3_v3.dlmem
/lib/firmware/radeon
%dir /lib/firmware/rockchip
/lib/firmware/rockchip/dptx.bin
/lib/firmware/rp2.fw
/lib/firmware/rsi
/lib/firmware/rsi_91x.fw
/lib/firmware/rt2860.bin
/lib/firmware/rt2870.bin
# link to rt2870.bin
/lib/firmware/rt3070.bin
/lib/firmware/rt3071.bin
# link to rt2860.bin
/lib/firmware/rt3090.bin
/lib/firmware/rt3290.bin
/lib/firmware/RTL8192E
/lib/firmware/rtl_bt
/lib/firmware/rtl_nic
/lib/firmware/rtlwifi
%dir /lib/firmware/rtw88
/lib/firmware/rtw88/rtw8723d_fw.bin
/lib/firmware/rtw88/rtw8821c_fw.bin
/lib/firmware/rtw88/rtw8822b_fw.bin
/lib/firmware/rtw88/rtw8822c_fw.bin
/lib/firmware/rtw88/rtw8822c_wow_fw.bin
# links to go7007/s2250*
/lib/firmware/s2250*.fw
/lib/firmware/s5p-mfc.fw
/lib/firmware/s5p-mfc-v6.fw
/lib/firmware/s5p-mfc-v6-v2.fw
/lib/firmware/s5p-mfc-v7.fw
/lib/firmware/s5p-mfc-v8.fw
/lib/firmware/sdd_sagrad_*.bin
/lib/firmware/slicoss
/lib/firmware/sms1xxx-*.fw
/lib/firmware/sun
/lib/firmware/sxg
/lib/firmware/tdmb_nova_12mhz.inp
/lib/firmware/tehuti
/lib/firmware/ti_3410.fw
/lib/firmware/ti_5052.fw
/lib/firmware/ti-connectivity
/lib/firmware/tigon
/lib/firmware/ti-keystone
/lib/firmware/tlg2300_firmware.bin
/lib/firmware/tr_smctr.bin
/lib/firmware/ttusb-budget
/lib/firmware/ueagle-atm
/lib/firmware/usbdux*_firmware.bin
/lib/firmware/v4l-cx*.fw
/lib/firmware/vicam
/lib/firmware/vntwusb.fw
/lib/firmware/vpu_d.bin
/lib/firmware/vpu_p.bin
/lib/firmware/vxge
/lib/firmware/whiteheat*.fw
/lib/firmware/wil6210.brd
/lib/firmware/wil6210.fw
/lib/firmware/wsm_22.bin
/lib/firmware/yam

%files -n iwl100-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-100-5.ucode

%files -n iwl105-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-105-*.ucode

%files -n iwl135-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-135-*.ucode

%files -n iwl1000-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-1000-*.ucode

%files -n iwl2000-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-2000-*.ucode

%files -n iwl2030-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-2030-*.ucode

%files -n iwl3160-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-3160-*.ucode
/lib/firmware/iwlwifi-3168-*.ucode

%files -n iwl3945-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-3945-*.ucode

%files -n iwl4965-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-4965-*.ucode

%files -n iwl5000-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-5000-*.ucode

%files -n iwl5150-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-5150-*.ucode

%files -n iwl6000-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000-*.ucode

%files -n iwl6000g2a-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000g2a-*.ucode

%files -n iwl6000g2b-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6000g2b-*.ucode

%files -n iwl6050-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-6050-*.ucode

%files -n iwl7260-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.iwlwifi_firmware
/lib/firmware/iwlwifi-7260-*.ucode
/lib/firmware/iwlwifi-7265-*.ucode
/lib/firmware/iwlwifi-7265D-*.ucode
/lib/firmware/iwlwifi-8000C-*.ucode
/lib/firmware/iwlwifi-8265-*.ucode
/lib/firmware/iwlwifi-9000-pu-b0-jf-b0-*.ucode
/lib/firmware/iwlwifi-9260-th-b0-jf-b0-*.ucode
/lib/firmware/iwlwifi-Qu*.ucode
/lib/firmware/iwlwifi-cc-a0-*.ucode

%files -n libertas-sd8686-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas
/lib/firmware/libertas/sd8686_v9*.bin

%files -n libertas-sd8787-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.Marvell
%dir /lib/firmware/mrvl
/lib/firmware/mrvl/sd8787_uapsta.bin

%files -n libertas-usb8388-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas
/lib/firmware/libertas/usb8388_v9.bin

%files -n libertas-usb8388-olpc-firmware
%defattr(644,root,root,755)
%doc WHENCE LICENCE.Marvell
%dir /lib/firmware/libertas
/lib/firmware/libertas/usb8388_olpc.bin