Accepting request 928441 from devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/928441 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rustup?expand=0&rev=2
This commit is contained in:
commit
cce05d650e
6
_service
6
_service
@ -1,9 +1,11 @@
|
||||
<services>
|
||||
<service mode="disabled" name="obs_scm">
|
||||
<param name="url">https://github.com/rust-lang/rustup.git</param>
|
||||
<!-- <param name="url">https://github.com/rust-lang/rustup.git</param> -->
|
||||
<param name="url">https://github.com/Firstyear/rustup.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">1.24.3</param>
|
||||
<!-- <param name="revision">1.24.3</param> -->
|
||||
<param name="revision">1.24.3-patch-symlink-no-self-update</param>
|
||||
<param name="match-tag">*</param>
|
||||
<param name="versionrewrite-pattern">(\d+\.\d+\.\d+)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6c006819e8efde90a001b19f8a22fae0245bb095952aaa9b612f541e5177d708
|
||||
size 561884
|
3
rustup-1.24.3~git1.0a74fef5.tar.xz
Normal file
3
rustup-1.24.3~git1.0a74fef5.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e370cbb747ae6e1c0b7fe2940adc921823634814b71bac1ac385361e137cdf50
|
||||
size 561908
|
@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 1 00:37:07 UTC 2021 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Add ownership of directories that are considered unowned in leap15.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 11 04:25:24 UTC 2021 - william.brown@suse.com
|
||||
|
||||
- Apply patch:
|
||||
* Symlink rustup-init when in no self update mode
|
||||
- Add requires on gcc so that system linker is present as a dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 9 15:42:41 UTC 2021 - Michał Rostecki <mrostecki@suse.com>
|
||||
|
||||
- Add symlink to rustup-init. rustup and rustup-init are the same
|
||||
binary, but that binary behaves diferently based on the name it's
|
||||
executed by.
|
||||
rustup-init takes care of the initial setup, which includes
|
||||
setting PATH, modifying .bashrc etc. It's supposed to be called
|
||||
only once.
|
||||
rustup doesn't perform those steps and it only manages
|
||||
toolchains. It can be used the entire time.
|
||||
- Install bash and zsh completion.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 7 04:59:11 UTC 2021 - William Brown <william.brown@suse.com>
|
||||
|
||||
|
55
rustup.spec
55
rustup.spec
@ -16,30 +16,33 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define rust_version 1.56
|
||||
%define obsolete_rust_versioned() \
|
||||
Obsoletes: %{1}1.55%{?2:-%{2}} \
|
||||
Provides: %{1}1.55%{?2:-%{2}} \
|
||||
Obsoletes: %{1}1.54%{?2:-%{2}} \
|
||||
Provides: %{1}1.54%{?2:-%{2}} \
|
||||
Obsoletes: %{1}1.53%{?2:-%{2}} \
|
||||
Provides: %{1}1.53%{?2:-%{2}} \
|
||||
Obsoletes: %{1}1.52%{?2:-%{2}} \
|
||||
Obsoletes: %{1}1.51%{?2:-%{2}}
|
||||
Obsoletes: %{1}1.55%{?2:-%{2}} < %{rust_version} \
|
||||
Provides: %{1}1.55%{?2:-%{2}} = %{rust_version} \
|
||||
Obsoletes: %{1}1.54%{?2:-%{2}} < %{rust_version} \
|
||||
Provides: %{1}1.54%{?2:-%{2}} = %{rust_version} \
|
||||
Obsoletes: %{1}1.53%{?2:-%{2}} < %{rust_version} \
|
||||
Provides: %{1}1.53%{?2:-%{2}} = %{rust_version} \
|
||||
Obsoletes: %{1}1.52%{?2:-%{2}} < %{rust_version} \
|
||||
Obsoletes: %{1}1.51%{?2:-%{2}} < %{rust_version}
|
||||
|
||||
Name: rustup
|
||||
Version: 1.24.3~git0.ce5817a9
|
||||
Version: 1.24.3~git1.0a74fef5
|
||||
Release: 0
|
||||
Summary: A tool for managing user Rust toolchains
|
||||
License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR ISC OR MIT ) AND ( Apache-2.0 OR MIT ) AND ( MIT OR Apache-2.0 OR Zlib ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib OR Apache-2.0 OR MIT ) AND Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT
|
||||
License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT
|
||||
Group: Development/Languages/Rust
|
||||
Url: https://github.com/rust-lang/rustup
|
||||
URL: https://github.com/rust-lang/rustup
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: vendor.tar.xz
|
||||
Source2: cargo_config
|
||||
Source3: %{name}-rpmlintrc
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
# For system linker
|
||||
Requires: gcc
|
||||
ExclusiveArch: %{rust_tier1_arches}
|
||||
|
||||
%obsolete_rust_versioned rls
|
||||
@ -49,13 +52,13 @@ ExclusiveArch: %{rust_tier1_arches}
|
||||
%obsolete_rust_versioned cargo doc
|
||||
|
||||
Obsoletes: cargo-doc < %{rust_version}
|
||||
Obsoletes: rustfmt < %{rust_version}
|
||||
Obsoletes: cargo-fmt < %{rust_version}
|
||||
Obsoletes: clippy < %{rust_version}
|
||||
Obsoletes: rust-analysis < %{rust_version}
|
||||
Obsoletes: rls < %{rust_version}
|
||||
Obsoletes: rust-src < %{rust_version}
|
||||
Obsoletes: rust-analysis < %{rust_version}
|
||||
Obsoletes: rust-doc < %{rust_version}
|
||||
Obsoletes: rust-src < %{rust_version}
|
||||
Obsoletes: rustfmt < %{rust_version}
|
||||
|
||||
%description
|
||||
A tool to manager user Rust toolchains. This is generally used by developers
|
||||
@ -75,9 +78,31 @@ find vendor -type f -name \*.rs -exec chmod -x '{}' \;
|
||||
# manual process
|
||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/rustup-init %{buildroot}%{_bindir}/rustup
|
||||
# rustup-init and rustup are the same binary, but that binary behaves
|
||||
# differently based on the name it's executed by.
|
||||
# rustup-init takes care of the initial setup, which includes setting PATH,
|
||||
# modifying .bashrc etc. It's supposed to be called only once.
|
||||
# rustup doesn't perform those steps and it only manages toolchains. It
|
||||
# can be used the entire time.
|
||||
ln -sf rustup %{buildroot}%{_bindir}/rustup-init
|
||||
# shell completions
|
||||
install -D -d -m 0755 %{buildroot}%{_datadir}/bash-completion/completions
|
||||
ls %{buildroot}%{_bindir}
|
||||
ls %{buildroot}%{_bindir}/rustup
|
||||
%{buildroot}%{_bindir}/rustup completions bash > %{buildroot}%{_datadir}/bash-completion/completions/rustup
|
||||
%{buildroot}%{_bindir}/rustup completions bash cargo > %{buildroot}%{_datadir}/bash-completion/completions/cargo
|
||||
install -D -d -m 0755 %{buildroot}%{_datadir}/zsh/site-functions
|
||||
%{buildroot}%{_bindir}/rustup completions zsh > %{buildroot}%{_datadir}/zsh/site-functions/_rustup
|
||||
%{buildroot}%{_bindir}/rustup completions zsh cargo > %{buildroot}%{_datadir}/zsh/site-functions/_cargo
|
||||
|
||||
%files
|
||||
%{_bindir}/rustup
|
||||
%{_bindir}/rustup-init
|
||||
%{_datadir}/bash-completion/completions/cargo
|
||||
%{_datadir}/bash-completion/completions/rustup
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_cargo
|
||||
%{_datadir}/zsh/site-functions/_rustup
|
||||
|
||||
%changelog
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c47e3d5b404de969ec5fe883850adb79de35befb9ef6a74f1dbcff341327bd84
|
||||
size 26323964
|
||||
oid sha256:97fdb2af7ff33f1ab8a558cf6c6c349f99695edf35a119b74d63194b62322429
|
||||
size 26333848
|
||||
|
Loading…
x
Reference in New Issue
Block a user