## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 14; 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 # Int overflow in tests %ifnarch %{ix86} %bcond_without check %endif %bcond_with bootstrap # https://github.com/zmap/zcrypto %global goipath github.com/zmap/zcrypto %global commit 2d0ffdec8a9b194bc861525e243d7b9b0fbfbba1 %gometa %global goipaths0 github.com/zmap/zcrypto %global goipathsex0 github.com/zmap/zcrypto/verifier %if %{without bootstrap} %global goipaths1 github.com/zmap/zcrypto/verifier %endif %global common_description %{expand: Liberal Go TLS + X.509 Library for Research.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md ct/README.md x509/README.md Name: %{goname} Version: 0 Release: %autorelease Summary: Liberal Go TLS + X.509 Library for Research # Upstream license specification: Apache-2.0 # Main library: ASL 2.0 # Code from Google: ISC # util/isURL.go: MIT License: ASL 2.0 and ISC and MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/mreiferson/go-httpclient) BuildRequires: golang(github.com/op/go-logging) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/weppos/publicsuffix-go/publicsuffix) BuildRequires: golang(github.com/zmap/rc2) %if %{without bootstrap} BuildRequires: golang(github.com/zmap/zcertificate) %endif BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/ed25519) BuildRequires: golang(golang.org/x/net/context) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check for test in "TestFetchRemote" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %if %{with bootstrap} %gocheck -d verifier -d tls %else %gocheck -d tls %endif %endif %gopkgfiles %changelog * Fri Feb 25 2022 Robert-André Mauchin 0-14 - Disable tests on 32bits arches * Fri Feb 25 2022 Robert-André Mauchin 0-13 - Bump to commit 2d0ffdec8a9b194bc861525e243d7b9b0fbfbba1 (fix FTBFS) Close: rhbz#2045632 * Thu Jan 20 2022 Fedora Release Engineering - 0-0.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0-0.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0-0.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 19 18:51:25 CEST 2020 Robert-André Mauchin - 0-0.4.20200619git4d17126 - Bump to commit 4d171263147247189025e53b13fd2d5828d59755 * Tue Feb 04 23:23:46 CET 2020 Robert-André Mauchin - 0-0.3.20200204git127181a - Bump to commit 127181aff13da671788fc183661626ebe235389e * Wed Jan 29 2020 Fedora Release Engineering - 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Jul 29 21:42:12 CEST 2019 Robert-André Mauchin - 0-0.1.20190729git9051775 - Initial package