# Generated by go2rpm 1.19.0 # go2rpm -p vendor -v 0.0.27 --name olla github.com/thushan/olla %bcond check 1 %global goipath github.com/thushan/olla Version: 0.0.27 %gometa -L -f Name: olla Release: %autorelease Summary: A proxy and load balancer for LLM infrastructure # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: fdupes BuildRequires: go-vendor-tools Requires: %{name}-doc = %{version}-%{release} %description High-performance lightweight proxy and load balancer for LLM infrastructure. Intelligent routing, automatic failover and unified model discovery across local and remote inference backends. %package doc Summary: Documents for %{name} %description doc %{summary} %prep %goprep -p1 tar -xf %{S:1} # Remove hidden rm -f docs/.gitignore rm -f examples/opencode-lmstudio/.gitignore %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/olla %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # cleanup dupes %fdupes %{buildroot} %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %{_bindir}/olla %files doc %doc docs examples config readme.md %changelog %autochangelog