# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/go-delve/mcp-dap-server %global goipath github.com/go-delve/mcp-dap-server %global commit fd732eed6f655482408b5fcabb4272a85cf0b9eb %gometa -L -f Name: mcp-dap-server Version: 0 Release: %autorelease -p Summary: MCP server to communicate with DAP servers # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools # Required for testing. BuildRequires: delve # delve doesn't support s390x yet. ExcludeArch: s390x %description MCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X main.version=%{version}" %gobuild -o %{gobuilddir}/bin/mcp-dap-server %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs CLAUDE.md README.md skills/debug-attach.md skills/debug-binary.md %doc skills/debug-core-dump.md skills/debug-source.md %{_bindir}/mcp-dap-server %changelog %autochangelog