Accepting request 426134 from home:KGronlund:branches:devel:languages:rust

Revised packaging for rust-gdb to handle conflict
with rustc-1_9-gdb

OBS-URL: https://build.opensuse.org/request/show/426134
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=3
This commit is contained in:
Michal Vyskocil 2016-09-09 11:49:01 +00:00 committed by Git OBS Bridge
parent 3030dfef14
commit 73e6f43584

View File

@ -81,13 +81,15 @@ Group: Development/Languages/Other
%description doc %description doc
Documentation for the Rust language. Documentation for the Rust language.
%package -n rust-%{rustc_version}-gdb %package gdb
Summary: Gdb integration for rust binaries Summary: Gdb integration for rust binaries
Group: Development/Languages/Other Group: Development/Languages/Other
Provides: rustc:/usr/bin/rust-gdb Provides: rustc:/usr/bin/rust-gdb
Provides: rust-%{rustc_version}-gdb = %{version}
Obsoletes: rust-%{rustc_build_version}-gdb
Supplements: packageand(%{name}:gdb) Supplements: packageand(%{name}:gdb)
%description -n rust-%{rustc_version}-gdb %description 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.
@ -145,7 +147,7 @@ mv %{buildroot}%{_prefix}/share/doc/rust \
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/share/doc/rust-%{version} %{_prefix}/share/doc/rust-%{version}
%files -n rust-%{rustc_version}-gdb %files gdb
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/rust-gdb %{_bindir}/rust-gdb
%{_prefix}/lib/rustlib/etc/gdb_load_rust_pretty_printers.py %{_prefix}/lib/rustlib/etc/gdb_load_rust_pretty_printers.py