File upd72020x-firmware.spec of Package upd72020x-firmware

58
 
1
#
2
# spec file for package upd72020x-firmware
3
#
4
# Copyright (c) 2023 Packman team: http://packman.links2linux.org/
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.links2linux.org/
16
#
17
18
%if 0%{?sle_version}
19
%define _firmwaredir /lib/firmware
20
%endif
21
Name:           upd72020x-firmware
22
Version:        1.0.0+git2
23
Release:        0
24
Summary:        Firmware for Renesas upd72020x USB 3.0 controllers
25
License:        SUSE-Firmware
26
URL:            https://github.com/denisandroid/uPD72020x-Firmware
27
Source0:        %{name}-%{version}.tar.xz
28
# for directory ownership purposes
29
BuildRequires:  kernel-firmware
30
BuildArch:      noarch
31
32
%description
33
Provides firmware for USB 3.0 controllers based on Renesas upd72020x.
34
35
%prep
36
%autosetup -p1
37
38
%build
39
# nothing to do here
40
41
%install
42
install -Dm0644 UPDATE.mem %{buildroot}%{_firmwaredir}/renesas_usb_fw.mem
43
44
%post
45
%{?regenerate_initrd_post}
46
47
%postun
48
%{?regenerate_initrd_post}
49
50
%posttrans
51
%{?regenerate_initrd_posttrans}
52
53
%files
54
%license LICENSE.md
55
%{_firmwaredir}/renesas_usb_fw.mem
56
57
%changelog
58