Skip to content

Commit a7fda0f

Browse files
committed
move language servers to subpackages
1 parent 5aae056 commit a7fda0f

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

rust.spec

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ Rust to systemowy język programowania działający bardzo szybko,
151151
zapobiegający naruszeniom ochrony pamięci i gwarantujący
152152
bezpieczną wielowątkowość.
153153

154+
%package analyzer
155+
Summary: Implementation of Language Server Protocol for Rust
156+
Summary(pl.UTF-8): Implementacja Language Server Protocol dla Rusta
157+
Group: Development/Tools
158+
Requires: %{name} = %{version}-%{release}
159+
160+
%description analyzer
161+
Implementation of Language Server Protocol for Rust.
162+
163+
%description analyzer -l pl.UTF-8
164+
Implementacja Language Server Protocol dla Rusta.
165+
154166
%package debugger-common
155167
Summary: Common debugger pretty printers for Rust
156168
Summary(pl.UTF-8): Narzędzia wypisujące struktury Rusa wspólne dla różnych debuggerów
@@ -196,6 +208,18 @@ debugging of Rust programs.
196208
Ten pakiet zawiera skrypt rust-lldb, pozwalający na łatwiejsze
197209
odpluskwianie programów w języku Rust.
198210

211+
%package rls
212+
Summary: Rust Language Server for IDE integration
213+
Summary(pl.UTF-8): Rust Language Server do integracji z IDE
214+
Group: Development/Tools
215+
Requires: %{name} = %{version}-%{release}
216+
217+
%description rls
218+
Rust Language Server for IDE integration.
219+
220+
%description rls -l pl.UTF-8
221+
Rust Language Server do integracji z IDE.
222+
199223
%package doc
200224
Summary: Documentation for Rust
201225
Summary(pl.UTF-8): Dokumentacja do Rusta
@@ -382,8 +406,6 @@ rm -rf $RPM_BUILD_ROOT
382406
%files
383407
%defattr(644,root,root,755)
384408
%doc COPYRIGHT LICENSE-APACHE LICENSE-MIT README.md library/backtrace/crates/backtrace-sys/src/libbacktrace/LICENSE-libbacktrace
385-
%attr(755,root,root) %{_bindir}/rls
386-
%attr(755,root,root) %{_bindir}/rust-analyzer
387409
%attr(755,root,root) %{_bindir}/rustc
388410
%attr(755,root,root) %{_bindir}/rustdoc
389411
%attr(755,root,root) %{_bindir}/rustfmt
@@ -410,6 +432,10 @@ rm -rf $RPM_BUILD_ROOT
410432
%{rustlibdir}/%{rust_host_triple}/lib/*.rlib
411433
%endif
412434

435+
%files analyzer
436+
%defattr(644,root,root,755)
437+
%attr(755,root,root) %{_bindir}/rust-analyzer
438+
413439
%files debugger-common
414440
%defattr(644,root,root,755)
415441
%dir %{_datadir}/%{name}
@@ -428,6 +454,10 @@ rm -rf $RPM_BUILD_ROOT
428454
%attr(755,root,root) %{_bindir}/rust-gdbgui
429455
%{_datadir}/%{name}/etc/gdb_*.py*
430456

457+
%files rls
458+
%defattr(644,root,root,755)
459+
%attr(755,root,root) %{_bindir}/rls
460+
431461
%files doc
432462
%defattr(644,root,root,755)
433463
%dir %{_docdir}/%{name}

0 commit comments

Comments
 (0)