## 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.5.0
%bcond_without check

# https://github.com/charmbracelet/glamour
%global goipath         github.com/charmbracelet/glamour
Version:                0.6.0

%gometa

%global common_description %{expand:
Stylesheet-based markdown rendering for your CLI apps.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Stylesheet-based markdown rendering for your CLI apps

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/alecthomas/chroma)
BuildRequires:  golang(github.com/alecthomas/chroma/quick)
BuildRequires:  golang(github.com/alecthomas/chroma/styles)
BuildRequires:  golang(github.com/microcosm-cc/bluemonday)
BuildRequires:  golang(github.com/muesli/reflow/indent)
BuildRequires:  golang(github.com/muesli/reflow/padding)
BuildRequires:  golang(github.com/muesli/reflow/wordwrap)
BuildRequires:  golang(github.com/muesli/termenv)
BuildRequires:  golang(github.com/olekukonko/tablewriter)
BuildRequires:  golang(github.com/yuin/goldmark)
BuildRequires:  golang(github.com/yuin/goldmark-emoji)
BuildRequires:  golang(github.com/yuin/goldmark-emoji/ast)
BuildRequires:  golang(github.com/yuin/goldmark/ast)
BuildRequires:  golang(github.com/yuin/goldmark/extension)
BuildRequires:  golang(github.com/yuin/goldmark/extension/ast)
BuildRequires:  golang(github.com/yuin/goldmark/parser)
BuildRequires:  golang(github.com/yuin/goldmark/renderer)
BuildRequires:  golang(github.com/yuin/goldmark/util)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Fri Nov 11 2022 Anthony Rabbito <hello@anthonyrabbito.com> 0.6.0-1
- Update to 0.6.0 (#2142022).

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

* Tue Jan 25 2022 Mikel Olasagasti Uranga <mikel@olasagasti.info> 0.5.0-1
- Update to 0.5.0 - Closes rhbz#2044677

* Sun Jan 23 2022 Mikel Olasagasti Uranga <mikel@olasagasti.info> 0.4.0-1
- Update to 0.4.0 - Closes rhbz#2040560

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

* Mon Dec 20 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> 0.3.0-2
- Rebuild for new golist

* Fri Dec 17 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> 0.3.0-1
- Initial package - Fixes rhbz#2009520