From 6704fa209ed755c829d2cabc72287fc748ca8b25 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:36:37 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.22.1-1mamba;Tue Nov 03 2020] --- README.md | 2 ++ rustup.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 rustup.spec diff --git a/README.md b/README.md index e22225c..c18a304 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # rustup +Rust toolchain installer. + diff --git a/rustup.spec b/rustup.spec new file mode 100644 index 0000000..3260eba --- /dev/null +++ b/rustup.spec @@ -0,0 +1,48 @@ +Name: rustup +Version: 1.22.1 +Release: 1mamba +Summary: Rust toolchain installer +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/rust-lang/rustup.git +Source: https://github.com/rust-lang/rustup.git/%{version}/rustup-%{version}.tar.bz2 +License: Apache License 2.0, MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libcurl-devel +BuildRequires: libgcc +BuildRequires: liblzma-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +Requires: /usr/bin/cargo +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Rust toolchain installer. + +%debug_package + +%prep +%setup -q + +%build +cargo build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m0755 target/debug/rustup-init %{buildroot}%{_bindir}/rustup + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/rustup +%doc LICENSE-APACHE LICENSE-MIT + +%changelog +* Tue Nov 03 2020 Silvan Calarco 1.22.1-1mamba +- package created using the webbuild interface