Update Rust macro usage
The rust-toolset macros in RHEL 10 are now compatible with Fedora's in terms of handling vendoring and automatic generation of license information and bundled provides.
This commit is contained in:
parent
6c182c57a8
commit
c4e4c4be49
@ -43,19 +43,13 @@ Recommends: bootupd
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -a1
|
%autosetup -p1 -a1
|
||||||
%if 0%{?rhel}
|
|
||||||
%cargo_prep -V 1
|
|
||||||
%else
|
|
||||||
%cargo_prep -v vendor
|
%cargo_prep -v vendor
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cargo_build
|
%cargo_build
|
||||||
%if !0%{?rhel}
|
|
||||||
%cargo_vendor_manifest
|
%cargo_vendor_manifest
|
||||||
%cargo_license_summary
|
%cargo_license_summary
|
||||||
%{cargo_license} > LICENSE.dependencies
|
%{cargo_license} > LICENSE.dependencies
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install INSTALL="install -p -c"
|
%make_install INSTALL="install -p -c"
|
||||||
@ -68,10 +62,8 @@ Recommends: bootupd
|
|||||||
%files
|
%files
|
||||||
%license LICENSE-MIT
|
%license LICENSE-MIT
|
||||||
%license LICENSE-APACHE
|
%license LICENSE-APACHE
|
||||||
%if !0%{?rhel}
|
|
||||||
%license LICENSE.dependencies
|
%license LICENSE.dependencies
|
||||||
%license cargo-vendor.txt
|
%license cargo-vendor.txt
|
||||||
%endif
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/bootc
|
%{_bindir}/bootc
|
||||||
%{_prefix}/lib/bootc/
|
%{_prefix}/lib/bootc/
|
||||||
|
Loading…
Reference in New Issue
Block a user