Name: glsl-analyzer Version: 1.5.1 Release: 1%{?dist} Summary: Language server for GLSL License: GPL-3.0-only URL: https://github.com/nolanderc/glsl_analyzer Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://github.com/nolanderc/glsl-samples/archive/95264d5602cc8542e9e8dbdaab6045f9619ab180.tar.gz#/glsl-samples.tar.gz Patch1: 0001-Add-fPIE-compiler-flag.patch BuildRequires: zig # testing BuildRequires: pytest BuildRequires: python3-lsprotocol BuildRequires: python3-pytest-subtests BuildRequires: python3-pytest-lsp BuildRequires: python3-typeguard %description Language server for GLSL (OpenGL Shading Language). %prep %autosetup -p1 -n glsl_analyzer-%{version} sed -i 's/b.run(&.{ "git", "describe", "--tags", "--always" })/"%{version}"/' build.zig tar -xf %{SOURCE1} -C tests/glsl-samples --strip-components=1 %build zig build install -Doptimize=ReleaseSafe --prefix ./build --verbose --verbose-cc --verbose-link --summary all %install install -m 755 -p -D -t %{buildroot}%{_bindir} build/bin/* %check export PATH="./build/bin:${PATH}" pytest tests || : # ignore for now %files %{_bindir}/glsl_analyzer %license LICENSE.md %changelog * Wed Jul 31 2024 Marian Koncek - 1.5.1-1 - Initial build