Accepting request 909459 from devel:languages:rust

OBS-URL: https://build.opensuse.org/request/show/909459
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust?expand=0&rev=67
This commit is contained in:
Dominique Leuenberger 2021-08-06 20:44:23 +00:00 committed by Git OBS Bridge
commit 9ae13d06ff
2 changed files with 20 additions and 12 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 30 03:40:08 UTC 2021 - William Brown <william.brown@suse.com>
- Update to version 1.54
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 6 10:40:26 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org> Tue Jul 6 10:40:26 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -17,18 +17,20 @@
# #
%global version_suffix 1.53 %global version_suffix 1.54
%global version_current 1.53.0 %global version_current 1.54.0
# Dev tools - these are needed for developers, vs building, so # === rust arch support tiers ===
# we don't always enable them. Some platforms have issues # https://doc.rust-lang.org/nightly/rustc/platform-support.html
# building these (IE RLS requires 64-bit atomics). # tl;dr only aarch64, x86_64 and i686 are guaranteed to work.
# As a result, we limit this to platforms that are likely used on #
# desktop arches # armv6/7, s390x, ppc[64[le]], riscv are all "guaranteed to build" only
# but may not always work.
#
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%bcond_without devtools %bcond_without tier1
%else %else
%bcond_with devtools %bcond_with tier1
%endif %endif
# Rpm specs have a limitation that if the parent package is noarch, all child packages must # Rpm specs have a limitation that if the parent package is noarch, all child packages must
@ -87,7 +89,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 tier1, this is arch specific even if it has no content.
%package -n rls %package -n rls
Summary: Language server for Rust lang Summary: Language server for Rust lang
License: Apache-2.0 OR MIT License: Apache-2.0 OR MIT
@ -126,7 +129,7 @@ Cargo downloads dependencies of Rust projects and compiles it.
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/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/rust-gdb/README
install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/cargo/README install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/cargo/README
%if %{with devtools} %if %{with tier1}
install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rls/README install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rls/README
%endif %endif
@ -138,7 +141,7 @@ install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/rls/README
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc /usr/share/doc/packages/rust-gdb %doc /usr/share/doc/packages/rust-gdb
%if %{with devtools} %if %{with tier1}
%files -n rls %files -n rls
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc /usr/share/doc/packages/rls %doc /usr/share/doc/packages/rls