# Generated by go2rpm 1.3 %bcond_without check # https://github.com/path-network/go-mmproxy %global goipath github.com/path-network/go-mmproxy Version: 2.1 %global tag 2.1 %gometa %global common_description %{expand: go-mmproxy is a standalone application that unwraps HAProxy's PROXY protocol (also adopted by other projects such as NGINX) so that the network connection to the end server comes from client's - instead of proxy server's - IP address and port number.} %global golicenses LICENSE %global godocs README.md benchmark.png Name: %{goname} Release: %autorelease Summary: Golang implementation of MMProxy # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(go.uber.org/zap) %description %{common_description} %package -n go-mmproxy Summary: %{summary} %description -n go-mmproxy %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/go-mmproxy %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm0644 -t %{buildroot}%{_datadir}/go-mmproxy path-prefixes.txt %if %{with check} %check %gocheck %endif %files -n go-mmproxy %license LICENSE %doc README.md benchmark.png go-mmproxy.service.example %{_bindir}/* %{_datadir}/go-mmproxy %gopkgfiles %changelog %autochangelog