## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 1;
    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.1
%bcond_without check
%global debug_package %{nil}

# https://github.com/opencontainers/image-spec
%global goipath         github.com/opencontainers/image-spec
Version:                1.1.0~rc2
%global tag             v1.1.0-rc2
%global distprefix      %nil

%gometa

%global common_description %{expand:
The OCI Image Format project creates and maintains the software shipping
container image format spec (OCI Image Format).}

%global golicenses      LICENSE
%global godocs          EMERITUS.md GOVERNANCE.md HACKING.md README.md\\\
                        RELEASES.md annotations.md config.md\\\
                        considerations.md conversion.md descriptor.md image-\\\
                        index.md image-layout.md implementations.md layer.md\\\
                        media-types.md project.md spec.md artifact.md\\\
                        manifest.md

Name:           %{goname}
Release:        %autorelease
Summary:        OCI Image Format Specification

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

BuildRequires:  golang(gopkg.in/russross/blackfriday.v1)

%description %{common_description}

%gopkg

%prep
%goprep
sed -i 's|github.com/russross/blackfriday|gopkg.in/russross/blackfriday.v1|' $(find . -iname "*.go" -type f)

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Sat Nov 05 2022 Robert-André Mauchin <zebob.m@gmail.com> 1.1.0~rc2-1
- Update to 1.1.0~rc2

* Sun Sep 18 2022 Robert-André Mauchin <zebob.m@gmail.com> 1.1.0~rc1-1
- Bump to commit decdb1500673e7ef4fd912e0741f67a49e35d502

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

* Sat Feb 05 2022 Robert-André Mauchin <zebob.m@gmail.com> 1.0.2-4
- Bump to commit 8b9d41f48198a7d6d0a5c1a12dc2d1f7f47fc97f

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

* Sat Nov 20 2021 Maxwell G <gotmax@e.email> - 1.0.2-1
- Update to 1.0.2. Fixes rhbz#2024388.
- Mitigates CVE-2021-41190. Fixes rhbz#2024938 and rhbz#2024939.

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

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Thu Jul 30 17:39:24 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.1-5.20200730git79b036d
- Bump to commit 79b036d80240ae530a8de15e1d21c7ab9292c693

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Thu May 02 00:08:44 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.1-1.20190626gitda296dc
- Initial package