## 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 gen-lsp-types Name: rust-gen-lsp-types Version: 0.11.0 Release: %autorelease Summary: Library of Rust LSP types generated from the official metamodel License: MIT URL: https://crates.io/crates/gen-lsp-types Source: %{crates_source} # * Ensure the source package contains “original sources” for generated code, # that is, the LSP metamodel in xtask/metaModel.json and # xtask/metaModelSchema.json. This is solely for compliance with # https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#pregenerated-code; # it is not used when building the package. # * The LSP metamodel in xtask/metaModel.json and xtask/metaModelSchema.json is # from https://github.com/microsoft/language-server-protocol, which is # licensed MIT for code and CC-BY-4.0 otherwise. We think that the metamodel # should be considered content, in which case it is licensed CC-BY-4.0, and # that nothing in the binary RPMs should be affected by the model’s license. # There’s an upstream issue requestion clarification about the nature and # license of the metamodel, # https://github.com/microsoft/language-server-protocol/issues/2221. Just to # cover all possibilities, we’ve included both LSP specification license files # as additional sources. Source10: https://github.com/ribru17/gen-lsp-types/archive/v%{version}/gen-lsp-types-%{version}.tar.gz # * CC-BY-4.0 license file for LSP specification content Source11: https://github.com/microsoft/language-server-protocol/raw/5ec9136dedbdf9df1396ffef0f54a039d9a424fb/License.txt # * MIT license file for LSP specification code Source12: https://github.com/microsoft/language-server-protocol/raw/5ec9136dedbdf9df1396ffef0f54a039d9a424fb/License-code.txt BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Library of Rust LSP types generated from the official metamodel.} %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 %doc %{crate_instdir}/README.md %{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 %package -n %{name}+fluent-uri-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fluent-uri-devel %{_description} This package contains library source intended for building other packages which use the "fluent-uri" feature of the "%{crate}" crate. %files -n %{name}+fluent-uri-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+url-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+url-devel %{_description} This package contains library source intended for building other packages which use the "url" feature of the "%{crate}" crate. %files -n %{name}+url-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 * Fri Jul 31 2026 Benjamin A. Beasley - 0.11.0-1 - Update to version 0.11.0; Fixes RHBZ#2498386 * Fri Jul 31 2026 Benjamin A. Beasley - 0.10.0-1 - Update to version 0.10.0 * Fri Jul 17 2026 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Jun 26 2026 Benjamin A. Beasley - 0.9.0-1 - Update to version 0.9.0 * Mon Jun 22 2026 Benjamin A. Beasley - 0.8.0-1 - Initial package (close RHBZ#2486510) ## END: Generated by rpmautospec