# Generated by go2rpm 1.3
%bcond_without check

# https://github.com/xaionaro-go/unsafetools
%global goipath         github.com/xaionaro-go/unsafetools
%global commit          4686db630395367dffebe4dc767686d62cc55e73

%gometa

%global common_description %{expand:
This package provides a FieldByName function to access to any field (including
private/unexported) of a structure. This is meant to be used for unit-tests
only.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        0.4%{?dist}
Summary:        Access to private/unexported fields of a structure

# Upstream license specification: CC0-1.0
License:        CC0
URL:            %{gourl}
Source0:        %{gosource}

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Mon May 17 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0-0.1.20210517git4686db6
- Initial package