## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.2 %bcond_without check %global debug_package %{nil} # https://github.com/quic-go/qtls-go1-20 %global goipath github.com/quic-go/qtls-go1-20 Version: 0.1.0~rc.1 %global tag v%{version_no_tilde} %gometa %global common_description %{expand: This repository contains a modified version of the standard library's TLS implementation, modified for the QUIC protocol. It is used by quic-go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Go standard library TLS 1.3 implementation, modified for QUIC. License: BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/qtls-go1-20 %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/qtls-go1-20 %gopkgfiles %changelog * Wed Jan 18 2023 Maxwell G 0.1.0~rc.1-1 - Initial package