You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# See https://github.com/coreos/fedora-coreos-tracker/issues/1716
18
-
%if 0%{?fedora} || 0%{?rhel} >= 10
19
-
ExcludeArch: %{ix86}
20
-
%endif
21
17
BuildRequires: make
22
-
BuildRequires: cargo
23
-
# For autosetup -Sgit
24
-
BuildRequires: git
25
-
BuildRequires: openssl-devel
26
-
BuildRequires: systemd-devel
27
-
BuildRequires: systemd-rpm-macros
18
+
BuildRequires: openssl-devel
19
+
%if 0%{?rhel}
20
+
BuildRequires: rust-toolset
21
+
%else
22
+
BuildRequires: cargo-rpm-macros >= 25
23
+
%endif
24
+
BuildRequires: systemd
25
+
26
+
%global _description %{expand:
27
+
Bootloader updater}
28
+
%description %{_description}
29
+
30
+
%package -n %{crate}
31
+
Summary: %{summary}
32
+
# Apache-2.0
33
+
# Apache-2.0 OR BSL-1.0
34
+
# Apache-2.0 OR MIT
35
+
# Apache-2.0 WITH LLVM-exception
36
+
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
37
+
# BSD-3-Clause
38
+
# MIT
39
+
# MIT OR Apache-2.0
40
+
# Unlicense OR MIT
41
+
License:Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
42
+
%{?systemd_requires}
28
43
29
-
%description
30
-
%{summary}
44
+
%description -n %{crate} %{_description}
31
45
32
-
%files
46
+
%files -n %{crate}
33
47
%license LICENSE
48
+
%license LICENSE.dependencies
49
+
%license cargo-vendor.txt
34
50
%doc README.md
35
51
%{_bindir}/bootupctl
36
52
%{_libexecdir}/bootupd
@@ -50,12 +66,15 @@ directory = "vendor"
50
66
EOF
51
67
52
68
%build
53
-
cargo build --release
69
+
%cargo_build
70
+
%cargo_vendor_manifest
71
+
%cargo_license_summary
72
+
%{cargo_license} > LICENSE.dependencies
54
73
55
74
%install
56
75
%make_install INSTALL="install -p -c"
57
-
make install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p"
58
-
make install-systemd-unit DESTDIR=%{?buildroot} INSTALL="%{__install} -p"
0 commit comments