2024-01-05 17:35:27 +01:00
|
|
|
%define stage1 1
|
|
|
|
Name: rustc
|
2024-07-26 16:29:51 +02:00
|
|
|
Version: 1.80.0
|
2024-04-12 10:05:12 +02:00
|
|
|
Release: 1mamba
|
2024-01-05 17:35:27 +01:00
|
|
|
Summary: The Rust programming language, designed to be a safe, concurrent, practical language
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.rust-lang.org
|
|
|
|
Source: https://static.rust-lang.org/dist/rustc-%{version}-src.tar.gz
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 17:35:27 +01:00
|
|
|
BuildRequires: libcurl-devel
|
2024-01-05 17:35:27 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 17:35:36 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 17:35:27 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: rustc
|
|
|
|
%endif
|
2024-03-28 01:56:57 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Rust programming language, designed to be a safe, concurrent, practical language.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package apidocs
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
%description apidocs
|
|
|
|
This package contains the documentation for %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 17:35:45 +01:00
|
|
|
%setup -q -n %{name}-%{version}-src
|
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
cat <<EOF > config.toml
|
2024-06-22 13:46:32 +02:00
|
|
|
profile = "user"
|
|
|
|
change-id = 123711
|
2024-01-05 17:35:36 +01:00
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
[llvm]
|
2024-06-22 13:46:32 +02:00
|
|
|
link-shared = true
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
[build]
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
cargo = "/usr/bin/cargo"
|
|
|
|
rustc = "/usr/bin/rustc"
|
2024-06-22 13:46:32 +02:00
|
|
|
rustfmt = "/usr/bin/rustfmt"
|
2024-01-05 17:35:27 +01:00
|
|
|
%endif
|
2024-06-22 13:46:32 +02:00
|
|
|
locked-deps = true
|
|
|
|
vendor = true
|
2024-01-05 17:35:27 +01:00
|
|
|
extended = true
|
2024-04-07 21:09:16 +02:00
|
|
|
sanitizers = true
|
|
|
|
profiler = true
|
2024-06-22 13:46:32 +02:00
|
|
|
#build-stage = 2
|
|
|
|
#doc-stage = 2
|
|
|
|
#install-stage = 2
|
|
|
|
#test-stage = 2
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
[install]
|
|
|
|
prefix = "%{_prefix}"
|
|
|
|
libdir = "%{_lib}"
|
|
|
|
docdir = "share/doc/rust"
|
|
|
|
|
|
|
|
[rust]
|
|
|
|
# 0 or the new default of 16 is faster, but can result in worse performance
|
|
|
|
# https://github.com/rust-lang/rust/issues/47745
|
|
|
|
codegen-units = 1
|
2024-01-05 17:35:36 +01:00
|
|
|
codegen-units-std = 1
|
2024-06-22 13:46:32 +02:00
|
|
|
debuginfo-level = 1
|
2024-01-05 17:35:36 +01:00
|
|
|
debuginfo-level-std = 2
|
2024-01-05 17:35:27 +01:00
|
|
|
channel = "stable"
|
2024-06-22 13:46:32 +02:00
|
|
|
description = "openmamba %{name} %{epoch}:%{version}-%{release}"
|
2024-01-05 17:35:27 +01:00
|
|
|
rpath = false
|
2024-06-22 13:46:32 +02:00
|
|
|
frame-pointers = true
|
|
|
|
deny-warnings = false
|
|
|
|
backtrace-on-ice = true
|
|
|
|
remap-debuginfo = false
|
|
|
|
jemalloc = true
|
2024-01-05 17:35:27 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
%build
|
2024-03-28 01:56:57 +01:00
|
|
|
#:<< _EOF
|
|
|
|
#./x.py build %{_smp_mflags}
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 17:35:27 +01:00
|
|
|
DESTDIR=%{buildroot} ./x.py install %{_smp_mflags}
|
2024-01-05 17:35:27 +01:00
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
chmod +x %{buildroot}%{_libdir}/lib*.so*
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
cd %{buildroot}%{_libdir}
|
2024-01-05 17:35:27 +01:00
|
|
|
#rm rustlib/{components,manifest-rustc,rust-installer-version}
|
2024-01-05 17:35:27 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
ln -sf rustlib/i686-unknown-linux-gnu/lib/*.so .
|
|
|
|
%else
|
2024-01-05 17:35:27 +01:00
|
|
|
%ifarch arm
|
|
|
|
ln -sf rustlib/arm-unknown-linux-gnueabi/lib/*.so .
|
|
|
|
%else
|
2024-01-05 17:35:27 +01:00
|
|
|
ln -sf rustlib/%{_arch}-unknown-linux-gnu/lib/*.so .
|
|
|
|
%endif
|
2024-01-05 17:35:27 +01:00
|
|
|
%endif
|
2024-01-05 17:35:27 +01:00
|
|
|
cd -
|
|
|
|
|
|
|
|
%find_lang %{name} || touch %{name}.lang
|
|
|
|
|
|
|
|
%clean
|
2024-01-05 17:35:36 +01:00
|
|
|
#[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
%files
|
|
|
|
#-f %{name}.lang
|
2024-01-05 17:35:27 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/bash_completion.d/cargo
|
2024-01-05 17:36:08 +01:00
|
|
|
%{_bindir}/cargo*
|
|
|
|
%{_bindir}/clippy-driver*
|
|
|
|
%{_bindir}/rust*
|
2024-01-05 17:35:27 +01:00
|
|
|
%{_mandir}/man1/cargo-*.1*
|
|
|
|
%{_mandir}/man1/cargo.1*
|
|
|
|
%{_mandir}/man1/rustc.1*
|
|
|
|
%{_mandir}/man1/rustdoc.1*
|
|
|
|
%{_datadir}/zsh/site-functions/_cargo
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:35:27 +01:00
|
|
|
%{_libdir}/rustlib/src/rust/Cargo.lock
|
2024-06-22 13:46:32 +02:00
|
|
|
%{_libdir}/libLLVM-*-rust-%{version}-stable.so*
|
|
|
|
%{_libdir}/libLLVM.so.*-rust-%{version}-stable
|
2024-01-05 17:35:27 +01:00
|
|
|
%{_libdir}/librustc*.so
|
|
|
|
%{_libdir}/libstd-*.so
|
|
|
|
%dir %{_libdir}/rustlib
|
2024-01-05 17:35:27 +01:00
|
|
|
%{_libdir}/rustlib/components
|
|
|
|
%{_libdir}/rustlib/rust-installer-version
|
2024-01-05 17:35:27 +01:00
|
|
|
%dir %{_libdir}/rustlib/etc
|
|
|
|
%{_libdir}/rustlib/etc/*
|
|
|
|
%{_libdir}/rustlib/install.log
|
|
|
|
%{_libdir}/rustlib/manifest-*
|
|
|
|
%dir %{_libdir}/rustlib/src
|
|
|
|
%dir %{_libdir}/rustlib/src/rust
|
2024-01-05 17:35:27 +01:00
|
|
|
%dir %{_libdir}/rustlib/src/rust/library
|
|
|
|
%{_libdir}/rustlib/src/rust/library/*
|
2024-01-05 17:35:27 +01:00
|
|
|
%dir %{_libdir}/rustlib/src/rust/src/llvm-project
|
|
|
|
%dir %{_libdir}/rustlib/src/rust/src/llvm-project/libunwind
|
|
|
|
%{_libdir}/rustlib/src/rust/src/llvm-project/libunwind/.clang-format
|
|
|
|
%{_libdir}/rustlib/src/rust/src/llvm-project/libunwind/*
|
2024-01-05 17:35:27 +01:00
|
|
|
%{_libdir}/rustlib/uninstall.sh
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%dir %{_libdir}/rustlib/i686-unknown-linux-gnu
|
|
|
|
%{_libdir}/rustlib/i686-unknown-linux-gnu/*
|
|
|
|
%else
|
2024-01-05 17:35:27 +01:00
|
|
|
%ifarch arm
|
|
|
|
%dir %{_libdir}/rustlib/%{_arch}-unknown-linux-gnueabi
|
|
|
|
%{_libdir}/rustlib/%{_arch}-unknown-linux-gnueabi/*
|
|
|
|
%else
|
2024-01-05 17:35:27 +01:00
|
|
|
%dir %{_libdir}/rustlib/%{_arch}-unknown-linux-gnu
|
|
|
|
%{_libdir}/rustlib/%{_arch}-unknown-linux-gnu/*
|
|
|
|
%endif
|
2024-01-05 17:35:27 +01:00
|
|
|
%endif
|
2024-01-05 17:35:28 +01:00
|
|
|
%{_prefix}/libexec/rust-analyzer-proc-macro-srv
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/doc/rust
|
|
|
|
%{_datadir}/doc/rust/COPYRIGHT
|
|
|
|
%{_datadir}/doc/rust/LICENSE-*
|
|
|
|
%{_datadir}/doc/rust/README.md
|
|
|
|
%{_datadir}/doc/rust/README.md.old
|
|
|
|
%{_datadir}/doc/rust/html/.lock
|
|
|
|
%dir %{_datadir}/doc/rust/html
|
|
|
|
%{_datadir}/doc/rust/html/*
|
2024-01-05 17:35:27 +01:00
|
|
|
#%doc README.md
|
2024-01-05 17:35:27 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-07-26 16:29:51 +02:00
|
|
|
* Thu Jul 25 2024 Automatic Build System <autodist@openmamba.org> 1.80.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-22 13:46:32 +02:00
|
|
|
* Thu Jun 20 2024 Automatic Build System <autodist@openmamba.org> 1.79.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-03 10:05:14 +02:00
|
|
|
* Thu May 02 2024 Automatic Build System <autodist@openmamba.org> 1.78.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-12 10:05:12 +02:00
|
|
|
* Wed Apr 10 2024 Automatic Build System <autodist@openmamba.org> 1.77.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-07 21:09:16 +02:00
|
|
|
* Fri Apr 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.77.1-2mamba
|
|
|
|
- rebuilt with profiler = true and sanitizers = true
|
|
|
|
|
|
|
|
* Thu Mar 28 2024 Automatic Build System <autodist@openmamba.org> 1.77.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-28 01:56:57 +01:00
|
|
|
* Tue Mar 26 2024 Automatic Build System <autodist@openmamba.org> 1.77.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-11 14:30:09 +01:00
|
|
|
* Sat Feb 10 2024 Automatic Build System <autodist@openmamba.org> 1.76.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:36:24 +01:00
|
|
|
* Fri Dec 29 2023 Automatic Build System <autodist@mambasoft.it> 1.75.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:36:14 +01:00
|
|
|
* Sat Dec 23 2023 Automatic Build System <autodist@mambasoft.it> 1.74.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Oct 07 2023 Automatic Build System <autodist@mambasoft.it> 1.73.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:36:08 +01:00
|
|
|
* Wed Sep 20 2023 Automatic Build System <autodist@mambasoft.it> 1.72.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 03 2023 Automatic Build System <autodist@mambasoft.it> 1.72.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Aug 06 2023 Automatic Build System <autodist@mambasoft.it> 1.71.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:36:03 +01:00
|
|
|
* Fri Jun 02 2023 Automatic Build System <autodist@mambasoft.it> 1.70.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:58 +01:00
|
|
|
* Sat Apr 22 2023 Automatic Build System <autodist@mambasoft.it> 1.69.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:54 +01:00
|
|
|
* Wed Mar 29 2023 Automatic Build System <autodist@mambasoft.it> 1.68.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:50 +01:00
|
|
|
* Fri Mar 24 2023 Automatic Build System <autodist@mambasoft.it> 1.68.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:45 +01:00
|
|
|
* Mon Mar 13 2023 Automatic Build System <autodist@mambasoft.it> 1.68.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:39 +01:00
|
|
|
* Fri Feb 10 2023 Automatic Build System <autodist@mambasoft.it> 1.67.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:36 +01:00
|
|
|
* Fri Jan 27 2023 Automatic Build System <autodist@mambasoft.it> 1.67.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 08 2022 Automatic Build System <autodist@mambasoft.it> 1.65.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:28 +01:00
|
|
|
* Fri Sep 23 2022 Automatic Build System <autodist@mambasoft.it> 1.64.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:28 +01:00
|
|
|
* Sat Aug 13 2022 Automatic Build System <autodist@mambasoft.it> 1.63.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:28 +01:00
|
|
|
* Wed Jul 20 2022 Automatic Build System <autodist@mambasoft.it> 1.62.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Fri Jul 01 2022 Automatic Build System <autodist@mambasoft.it> 1.62.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Thu Jun 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.61.0-1mamba
|
|
|
|
- update to 1.61.0
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Fri Jan 21 2022 Automatic Build System <autodist@mambasoft.it> 1.58.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Thu Jan 13 2022 Automatic Build System <autodist@mambasoft.it> 1.58.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Fri Dec 03 2021 Automatic Build System <autodist@mambasoft.it> 1.57.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Tue Nov 02 2021 Automatic Build System <autodist@mambasoft.it> 1.56.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Wed Oct 27 2021 Automatic Build System <autodist@mambasoft.it> 1.56.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Sun Aug 15 2021 Automatic Build System <autodist@mambasoft.it> 1.54.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Tue May 11 2021 Automatic Build System <autodist@mambasoft.it> 1.52.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Sat Mar 27 2021 Automatic Build System <autodist@mambasoft.it> 1.51.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Sat Feb 27 2021 Automatic Build System <autodist@mambasoft.it> 1.50.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Tue Nov 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.47.0-1mamba
|
|
|
|
- update to 1.47.0
|
|
|
|
|
|
|
|
* Thu May 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.43.0-1mamba
|
|
|
|
- update to 1.43.0
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Thu Jul 05 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.27.0-1mamba
|
|
|
|
- update to 1.27.0
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Sat Jun 16 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26.2-1mamba
|
|
|
|
- update to 1.26.2
|
|
|
|
|
2024-01-05 17:35:27 +01:00
|
|
|
* Mon Apr 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.25.0-1mamba
|
|
|
|
- package created using the webbuild interface
|