diff --git a/rust.changes b/rust.changes index 5604c2d..4e4e8d6 100644 --- a/rust.changes +++ b/rust.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 6 10:40:26 UTC 2021 - Dominique Leuenberger + +- Only install rls/README when building devtools, as otherwise this + file would end up in no package. + ------------------------------------------------------------------- Tue Jul 6 01:47:31 UTC 2021 - William Brown diff --git a/rust.spec b/rust.spec index f00eedb..c79809d 100644 --- a/rust.spec +++ b/rust.spec @@ -86,8 +86,8 @@ invoking gdb on rust binaries. -# As this is masked by devtools, this is arch specific even if it has no content. +# As this is masked by devtools, this is arch specific even if it has no content. %package -n rls Summary: Language server for Rust lang License: Apache-2.0 OR MIT @@ -125,8 +125,10 @@ Cargo downloads dependencies of Rust projects and compiles it. %install install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rust/README install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rust-gdb/README -install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rls/README install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/cargo/README +%if %{with devtools} +install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rls/README +%endif %files %defattr(-,root,root,-)