# Generated by go2rpm 1.3
%bcond_without check

# https://github.com/brunnre8/go.notmuch
%global goipath         github.com/brunnre8/go.notmuch
%global commit          caa2daf7093c998ed18e1b85a42c4105713e9dda

%gometa

%global godevelheader %{expand:
Requires:       notmuch-devel}

%global common_description %{expand:
Go language bindings for notmuch mail.}

%global golicenses      COPYING license.txt
%global godocs          example AUTHORS README-INTERNALS.md README.md

Name:           %{goname}
Version:        0
Release:        0.6%{?dist}
Summary:        Go language bindings for notmuch mail

License:        GPLv3
URL:            %{gourl}
Source0:        %{gosource}
Source1:        https://notmuchmail.org/releases/test-databases/database-v1.tar.xz

BuildRequires:  notmuch-devel

%description
%{common_description}

%gopkg

%prep
%goprep
sed -i "s|github.com/zenhack/go.notmuch|github.com/brunnre8/go.notmuch|" $(find . -name "*.go" -type f)

# Unzip fixtures for tests
tar -C fixtures -xf %{SOURCE1}

%install
%gopkginstall

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

%gopkgfiles

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

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

* Fri Jun 17 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.4
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191,
  CVE-2022-29526, CVE-2022-30629

* 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

* Wed Dec 09 11:03:14 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20201209gitcaa2daf
- Initial package