# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/letsencrypt/pebble %global goipath github.com/letsencrypt/pebble/v2 Version: 2.10.0 %gometa -L -f Name: pebble Release: %autorelease Summary: A miniature version of Boulder, Pebble is a small RFC 8555 ACME test server not suited for a production certificate authority # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description A miniature version of Boulder, Pebble is a small RFC 8555 ACME test server not suited for a production certificate authority. %prep %goprep -p1 tar -xf %{S:1} mv cmd/pebble-challtestsrv/README.md README-challtestsrv.md %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/{pebble,pebble-challtestsrv} ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) ./$cmd done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs CODE_OF_CONDUCT.md README.md README-challtestsrv.md %{_bindir}/pebble %{_bindir}/pebble-challtestsrv %changelog %autochangelog