# Generated by go2rpm %bcond_without check # https://gitlab.com/golang-commonmark/markdown %global goipath gitlab.com/golang-commonmark/markdown %global forgeurl https://gitlab.com/golang-commonmark/markdown %global commit 772775880e1fbf39a7804149ed11c0f714ec89fe %gometa %global goaltipaths github.com/golang-commonmark/markdown %global common_description %{expand: Package Golang-commonmark/markdown provides a CommonMark-compliant markdown parser and renderer, written in Go.} %global golicenses LICENSE %global godocs AUTHORS README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: CommonMark-compliant markdown parser and renderer in Go # Upstream license specification: BSD-2-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(gitlab.com/golang-commonmark/html) BuildRequires: golang(gitlab.com/golang-commonmark/linkify) BuildRequires: golang(gitlab.com/golang-commonmark/mdurl) BuildRequires: golang(gitlab.com/golang-commonmark/puny) %if %{with check} # Tests BuildRequires: golang(gitlab.com/opennota/wd) BuildRequires: golang(gopkg.in/russross/blackfriday.v1) BuildRequires: golang(gopkg.in/russross/blackfriday.v2) %endif %description %{common_description} %gopkg %prep %goprep find . -name "*.go" -exec sed -i "s|github.com/russross/blackfriday|gopkg.in/russross/blackfriday.v1|" "{}" +; %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Wed May 15 21:22:44 CEST 2019 Robert-André Mauchin - 0-0.1.20190515git7727758 - Initial package