diff --git a/rust.spec b/rust.spec index c22ecc5..14368dc 100644 --- a/rust.spec +++ b/rust.spec @@ -81,13 +81,15 @@ Group: Development/Languages/Other %description doc Documentation for the Rust language. -%package -n rust-%{rustc_version}-gdb +%package gdb Summary: Gdb integration for rust binaries Group: Development/Languages/Other Provides: rustc:/usr/bin/rust-gdb +Provides: rust-%{rustc_version}-gdb = %{version} +Obsoletes: rust-%{rustc_build_version}-gdb Supplements: packageand(%{name}:gdb) -%description -n rust-%{rustc_version}-gdb +%description gdb This subpackage provides pretty printers and a wrapper script for invoking gdb on rust binaries. @@ -145,7 +147,7 @@ mv %{buildroot}%{_prefix}/share/doc/rust \ %defattr(-,root,root) %{_prefix}/share/doc/rust-%{version} -%files -n rust-%{rustc_version}-gdb +%files gdb %defattr(-,root,root,-) %{_bindir}/rust-gdb %{_prefix}/lib/rustlib/etc/gdb_load_rust_pretty_printers.py