Only generate LICENSE.dependencies on Fedora; EL9's rust-packaging is

too old

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent 843011aba9
commit 408dd86090
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -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} %files -n %{crate}
%license LICENSE %license LICENSE
%if 0%{?fedora}
%license LICENSE.dependencies %license LICENSE.dependencies
%endif
%doc README.md %doc README.md
%{_bindir}/pore %{_bindir}/pore
@ -76,7 +78,9 @@ use the "default" feature of the "%{crate}" crate.
%build %build
%cargo_build %cargo_build
%if 0%{?fedora}
%{cargo_license} > LICENSE.dependencies %{cargo_license} > LICENSE.dependencies
%endif
%install %install
%cargo_install %cargo_install

Loading…
Cancel
Save