Rework of the spec for building.
- Restricts version required for compilation - Uses rust-build OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=99
This commit is contained in:
parent
6c6b9c9ffa
commit
6167565987
34
rust.spec
34
rust.spec
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
%global prev_rust 1.15.1
|
%global prev_rust 1.15.1
|
||||||
%global prev_cargo 0.16.0
|
%global prev_cargo 0.16.0
|
||||||
%global _version 1_16
|
|
||||||
%global abi gnu
|
%global abi gnu
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%global _arch s390x
|
%global _arch s390x
|
||||||
@ -42,7 +41,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%global rust_triple %{_arch}-unknown-linux-%{abi}
|
%global rust_triple %{_arch}-unknown-linux-%{abi}
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
Name: rust-%{_version}
|
Name: rust
|
||||||
Version: 1.16.0
|
Version: 1.16.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A systems programming language
|
Summary: A systems programming language
|
||||||
@ -68,7 +67,7 @@ Recommends: %{name}-std
|
|||||||
|
|
||||||
Provides: rust = %{version}
|
Provides: rust = %{version}
|
||||||
Conflicts: otherproviders(rust)
|
Conflicts: otherproviders(rust)
|
||||||
Conflicts: rustc-bootstrap
|
Conflicts: rustc-bootstrap
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# Restrict the architectures as building rust relies on being initially
|
# Restrict the architectures as building rust relies on being initially
|
||||||
@ -107,37 +106,34 @@ even though some of these abstractions feel like those of a
|
|||||||
high-level language. Even then, Rust still allows precise
|
high-level language. Even then, Rust still allows precise
|
||||||
control like a low-level language would.
|
control like a low-level language would.
|
||||||
|
|
||||||
%package -n rust-std-%{_version}
|
%package -n rust-std
|
||||||
Summary: Standard library for Rust
|
Summary: Standard library for Rust
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Provides: rust-std = %{version}
|
Provides: rust-std = %{version}
|
||||||
Conflicts: rust-std < %{version}
|
Conflicts: otherproviders(rust-std)
|
||||||
Conflicts: rust-std > %{version}
|
|
||||||
|
|
||||||
%description -n rust-std-%{_version}
|
%description -n rust-std
|
||||||
This package includes the standard libraries for building
|
This package includes the standard libraries for building
|
||||||
applications written in Rust.
|
applications written in Rust.
|
||||||
|
|
||||||
%package -n rust-doc-%{_version}
|
%package -n rust-doc
|
||||||
Summary: Rust documentation
|
Summary: Rust documentation
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Provides: rust-doc = %{version}
|
Provides: rust-doc = %{version}
|
||||||
Conflicts: rust-doc < %{version}
|
Conflicts: otherproviders(rust-doc)
|
||||||
Conflicts: rust-doc > %{version}
|
|
||||||
|
|
||||||
%description -n rust-doc-%{_version}
|
%description -n rust-doc
|
||||||
Documentation for the Rust language.
|
Documentation for the Rust language.
|
||||||
|
|
||||||
%package -n rust-gdb-%{_version}
|
%package -n rust-gdb
|
||||||
Summary: Gdb integration for rust binaries
|
Summary: Gdb integration for rust binaries
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Supplements: packageand(%{name}:gdb)
|
Supplements: packageand(%{name}:gdb)
|
||||||
Provides: rustc:%{_bindir}/rust-gdb
|
|
||||||
Provides: rust-gdb = %{version}
|
Provides: rust-gdb = %{version}
|
||||||
Conflicts: rust-gdb < %{version}
|
Provides: rustc:%{_bindir}/rust-gdb
|
||||||
Conflicts: rust-gdb > %{version}
|
Conflicts: otherproviders(rust-gdb)
|
||||||
|
|
||||||
%description -n rust-gdb-%{_version}
|
%description -n rust-gdb
|
||||||
This subpackage provides pretty printers and a wrapper script for
|
This subpackage provides pretty printers and a wrapper script for
|
||||||
invoking gdb on rust binaries.
|
invoking gdb on rust binaries.
|
||||||
|
|
||||||
@ -212,7 +208,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
|
|||||||
%{_prefix}/lib/lib*.so
|
%{_prefix}/lib/lib*.so
|
||||||
%exclude %{_docdir}/%{name}/html
|
%exclude %{_docdir}/%{name}/html
|
||||||
|
|
||||||
%files -n rust-std-%{_version}
|
%files -n rust-std
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_prefix}/lib/rustlib
|
%dir %{_prefix}/lib/rustlib
|
||||||
%dir %{_prefix}/lib/rustlib/%{rust_triple}
|
%dir %{_prefix}/lib/rustlib/%{rust_triple}
|
||||||
@ -220,7 +216,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
|
|||||||
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.rlib
|
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.rlib
|
||||||
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.so
|
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.so
|
||||||
|
|
||||||
%files -n rust-gdb-%{_version}
|
%files -n rust-gdb
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/rust-gdb
|
%{_bindir}/rust-gdb
|
||||||
%dir %{_prefix}/lib/rustlib
|
%dir %{_prefix}/lib/rustlib
|
||||||
@ -230,7 +226,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
|
|||||||
%{_prefix}/lib/rustlib/etc/gdb_rust_pretty_printing.py
|
%{_prefix}/lib/rustlib/etc/gdb_rust_pretty_printing.py
|
||||||
%{_prefix}/lib/rustlib/etc/lldb_rust_formatters.py
|
%{_prefix}/lib/rustlib/etc/lldb_rust_formatters.py
|
||||||
|
|
||||||
%files -n rust-doc-%{_version}
|
%files -n rust-doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license %{_docdir}/%{name}/html/FiraSans-LICENSE.txt
|
%license %{_docdir}/%{name}/html/FiraSans-LICENSE.txt
|
||||||
%license %{_docdir}/%{name}/html/Heuristica-LICENSE.txt
|
%license %{_docdir}/%{name}/html/Heuristica-LICENSE.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user