Name: zls Version: 0.16.0 Release: %autorelease Summary: Implementation of the Language Server Protocol for Zig License: MIT URL: https://zigtools.org Source0: https://github.com/zigtools/zls/archive/refs/tags/%{version}.tar.gz Source1: https://github.com/ziglibs/known-folders/archive/d6d03830968cca6b7b9f24fd97ee348346a6905d.tar.gz Source2: https://github.com/ziglibs/diffz/archive/b39fe07e7fdbcf56e43ba2890b9f484f16969f90.tar.gz Source3: https://github.com/zigtools/lsp-kit/archive/b886a2b0d5cee85ecbcc3089b863f7517cc9ff7f.tar.gz BuildRequires: (zig >= 0.16 with zig < 0.17) BuildRequires: zig-rpm-macros %define zls_build_options -Dsingle-threaded=false -Dpie=true -Dstrip=true %description ZLS is a non-official implementation of the Language Server Protocol for Zig in Zig. It provides developers with IDE features in their editor. %prep %autosetup %zig_prep %zig_fetch %{SOURCE1} %zig_fetch %{SOURCE2} %zig_fetch %{SOURCE3} %build %zig_build %zls_build_options %install %zig_install %check %zig_test %files %license LICENSE %{_bindir}/%{name} %doc README.md %changelog %autochangelog