Accepting request 763684 from devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/763684 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust?expand=0&rev=47
This commit is contained in:
commit
b83cea7382
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 8 16:44:17 UTC 2020 - Federico Mena Quintero <federico@suse.com>
|
||||||
|
|
||||||
|
- Bump version of libssh2 for SLE15; we now need a version with
|
||||||
|
libssh2_userauth_publickey_frommemory(), which appeared in libssh2
|
||||||
|
1.6.0.
|
||||||
|
- Use the bundled libssh2 prior to SLE15. SLE12 has 1.4.3, which is
|
||||||
|
too old for the ssh crate now.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 30 03:48:37 UTC 2019 - Luke Jones <luke@ljones.dev>
|
Mon Dec 30 03:48:37 UTC 2019 - Luke Jones <luke@ljones.dev>
|
||||||
|
|
||||||
|
20
rust.spec
20
rust.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package rust
|
# spec file for package rust
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2019 Luke Jones, luke@ljones.dev
|
# Copyright (c) 2019 Luke Jones, luke@ljones.dev
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ Release: 0
|
|||||||
Summary: A systems programming language
|
Summary: A systems programming language
|
||||||
License: MIT OR Apache-2.0
|
License: MIT OR Apache-2.0
|
||||||
Group: Development/Languages/Rust
|
Group: Development/Languages/Rust
|
||||||
URL: https://www.rust-lang.org
|
Url: https://www.rust-lang.org
|
||||||
Source0: %{dl_url}/rustc-%{version}-src.tar.xz
|
Source0: %{dl_url}/rustc-%{version}-src.tar.xz
|
||||||
Source99: %{name}-rpmlintrc
|
Source99: %{name}-rpmlintrc
|
||||||
Source100: %{dl_url}/rust-%{version_bootstrap}-x86_64-unknown-linux-gnu.tar.xz
|
Source100: %{dl_url}/rust-%{version_bootstrap}-x86_64-unknown-linux-gnu.tar.xz
|
||||||
@ -162,8 +162,8 @@ BuildRequires: gcc7-c++
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
# The following requires must mirror: LIBSSH2_SYS_USE_PKG_CONFIG
|
# The following requires must mirror: LIBSSH2_SYS_USE_PKG_CONFIG
|
||||||
%if !%with rust_bootstrap || 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120500
|
%if !%{with rust_bootstrap} && 0%{?sle_version} >= 150000
|
||||||
BuildRequires: pkgconfig(libssh2) >= 1.4.3
|
BuildRequires: pkgconfig(libssh2) >= 1.6.0
|
||||||
%endif
|
%endif
|
||||||
# Real LLVM minimum version should be 7.x, but rust has a fallback
|
# Real LLVM minimum version should be 7.x, but rust has a fallback
|
||||||
# mode
|
# mode
|
||||||
@ -467,9 +467,8 @@ export RUSTFLAGS="%{rustflags}"
|
|||||||
export CC=gcc-7
|
export CC=gcc-7
|
||||||
export CXX=g++-7
|
export CXX=g++-7
|
||||||
%endif
|
%endif
|
||||||
# Cargo use system libs if not bootstrapping
|
# Make cargo use system libs if not bootstrapping
|
||||||
# restircted only to libssh due to version changes causing with cargo rpm deps
|
%if !%{with rust_bootstrap} && 0%{?sle_version} >= 150000
|
||||||
%if !%with rust_bootstrap || 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120500
|
|
||||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||||
%endif
|
%endif
|
||||||
# eliminate complain from RPMlint
|
# eliminate complain from RPMlint
|
||||||
@ -492,9 +491,8 @@ export RUSTFLAGS="%{rustflags}"
|
|||||||
export CC=gcc-7
|
export CC=gcc-7
|
||||||
export CXX=g++-7
|
export CXX=g++-7
|
||||||
%endif
|
%endif
|
||||||
# Cargo use system libs if not bootstrapping
|
# Make cargo use system libs if not bootstrapping
|
||||||
# restircted only to libssh due to version changes causing with cargo rpm deps
|
%if !%{with rust_bootstrap} && 0%{?sle_version} >= 150000
|
||||||
%if !%with rust_bootstrap || 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120500
|
|
||||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||||
%endif
|
%endif
|
||||||
# eliminate complain from RPMlint
|
# eliminate complain from RPMlint
|
||||||
|
Loading…
Reference in New Issue
Block a user