## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

# Generated by go2rpm 1.8.2
%bcond_without check

# https://github.com/in-toto/in-toto-golang
%global goipath         github.com/in-toto/in-toto-golang
Version:                0.4.0

%gometa -f

%global common_description %{expand:
A Go implementation of in-toto. in-toto is a framework to protect software
supply chain integrity.}

%global golicenses      LICENSE
%global godocs          doc CHANGELOG.md README.md MAINTAINERS.md

Name:           %{goname}
Release:        %autorelease
Summary:        A Go implementation of in-toto. in-toto is a framework to protect software supply chain integrity

License:        Apache-2.0
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%build
%gobuild -o %{gobuilddir}/bin/in-toto-golang %{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 doc CHANGELOG.md README.md MAINTAINERS.md
%{_bindir}/in-toto-golang

%gopkgfiles

%changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Mon Oct 17 2022 Robert-André Mauchin <zebob.m@gmail.com> 0.4.0-1
- Initial import