## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate lsp-server Name: rust-lsp-server Version: 0.8.0 Release: %autorelease Summary: Generic LSP server scaffold License: MIT OR Apache-2.0 URL: https://crates.io/crates/lsp-server Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Omit examples/minimal_lsp.rs because it requires the unpublished # rust-analyzer workspace crate “toolchain” # * Restore some dev-dependencies stripped during publication (!): # * gen-lsp-types 0.4.0 as lsp-types, widened downstream through 0.10, # with “url” feature # * ctrlc 3.4.7 # Do not restore those that are only for examples/minimal_lsp.rs. # * anyhow # * rustc-hash # * toolchain 0 (unpublished workspace crate) Patch: lsp-server-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Generic LSP server scaffold.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Jul 09 2026 Benjamin A. Beasley - 0.8.0-1 - Update to version 0.8.0; Fixes RHBZ#2492126 * Sat Jan 17 2026 Fedora Release Engineering - 0.7.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Aug 17 2025 Fabio Valentini - 0.7.9-1 - Update to version 0.7.9; Fixes RHBZ#2386899 * Fri Jul 25 2025 Fedora Release Engineering - 0.7.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.7.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Jan 04 2025 Fabio Valentini - 0.7.8-1 - Update to version 0.7.8; Fixes RHBZ#2333489 * Mon Oct 07 2024 Fabio Valentini - 0.7.7-1 - Update to version 0.7.7; Fixes RHBZ#2310374 * Sat Jul 20 2024 Fedora Release Engineering - 0.7.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Apr 06 2024 blinxen - 0.7.6-1 - Update to version 0.7.6 * Fri Feb 16 2024 Michel Lind - 0.7.5-1 - Initial package (rhbz#2264486) ## END: Generated by rpmautospec