Luke Jones 2017-03-23 09:01:23 +00:00 committed by Git OBS Bridge
parent 00a579d8ce
commit c3624e9af9

View File

@ -109,28 +109,34 @@ even though some of these abstractions feel like those of a
high-level language. Even then, Rust still allows precise
control like a low-level language would.
%package std
%package -n rust-std-%{version}
Summary: Standard library for Rust
Group: Development/Languages/Other
Provides: rust-std = %{version}
Conflicts: rust-std <= %{version}
Conflicts: rust-std >= %{version}
%description std
%description rust-std-%{version}
This package includes the standard libraries for building
applications written in Rust.
%package doc
%package -n rust-doc-%{version}
Summary: Rust documentation
Group: Development/Languages/Other
Provides: rust-doc = %{version}
Conflicts: rust <= %{version}
Conflicts: rust >= %{version}
%description doc
%description rust-doc-%{version}
Documentation for the Rust language.
%package gdb
%package -n rust-gdb-%{version}
Summary: Gdb integration for rust binaries
Group: Development/Languages/Other
Supplements: packageand(%{name}:gdb)
Provides: rustc:%{_bindir}/rust-gdb
%description gdb
%description rust-gdb-%{version}
This subpackage provides pretty printers and a wrapper script for
invoking gdb on rust binaries.
@ -205,7 +211,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
%{_prefix}/lib/lib*.so
%exclude %{_docdir}/%{name}/html
%files std
%files rust-std-%{version}
%defattr(-,root,root)
%dir %{_prefix}/lib/rustlib
%dir %{_prefix}/lib/rustlib/%{rust_triple}
@ -213,7 +219,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.rlib
%{_prefix}/lib/rustlib/%{rust_triple}/lib/*.so
%files gdb
%files rust-gdb-%{version}
%defattr(-,root,root,-)
%{_bindir}/rust-gdb
%dir %{_prefix}/lib/rustlib
@ -223,7 +229,7 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/{COPYRIGHT,LICENSE-APACHE,LICENSE-MIT}
%{_prefix}/lib/rustlib/etc/gdb_rust_pretty_printing.py
%{_prefix}/lib/rustlib/etc/lldb_rust_formatters.py
%files doc
%files rust-doc-%{version}
%defattr(-,root,root)
%license %{_docdir}/%{name}/html/FiraSans-LICENSE.txt
%license %{_docdir}/%{name}/html/Heuristica-LICENSE.txt