From 408dd86090cfab8dd6c68262764ca275465852de Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 2 Jan 2023 16:59:15 -0600 Subject: [PATCH] Only generate LICENSE.dependencies on Fedora; EL9's rust-packaging is too old Signed-off-by: Michel Alexandre Salim --- rust-pore.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust-pore.spec b/rust-pore.spec index 66a2b12..838c50b 100644 --- a/rust-pore.spec +++ b/rust-pore.spec @@ -37,7 +37,9 @@ License: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) A %files -n %{crate} %license LICENSE +%if 0%{?fedora} %license LICENSE.dependencies +%endif %doc README.md %{_bindir}/pore @@ -76,7 +78,9 @@ use the "default" feature of the "%{crate}" crate. %build %cargo_build +%if 0%{?fedora} %{cargo_license} > LICENSE.dependencies +%endif %install %cargo_install