## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # 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 * Thu Jan 20 2022 Fedora Release Engineering 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Aug 23 2021 Davide Cavalca 2.1-1 - Initial import; Fixes: RHBZ#1982286