From 6247384b82931e8909e1e4e58bffc14f2732aacc79368a1f4dad1bd495909f3d Mon Sep 17 00:00:00 2001 From: William Brown Date: Wed, 7 Jul 2021 00:32:01 +0000 Subject: [PATCH] Accepting request 904368 from home:dimstar:Factory - Only install rls/README when building devtools, as otherwise this file would end up in no package. OBS-URL: https://build.opensuse.org/request/show/904368 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=295 --- rust.changes | 6 ++++++ rust.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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,-)