Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 612a385b764f3bd9931751e3acd50b5f > files > 1

golang-github-shurcool-markdownfmt-1.1-0.1.mga7.src.rpm

# Run tests in check section
# Disable, isuue with latest blackfriday
%bcond_with check

%global goipath         github.com/shurcooL/markdownfmt
%global commit          5ba28a0bf0048ea9b00cecd23688dcf6cfb23fe5

%global common_description %{expand:
Markdown formatter.}

%gometa

Name:           %{goname}
Version:        1.1
Release:        %mkrel 0.1
Summary:        Markdown formatter
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
BuildArch:      noarch

BuildRequires: golang(github.com/mattn/go-runewidth)
BuildRequires: golang(gopkg.in/russross/blackfriday.v1)
BuildRequires: golang(github.com/shurcooL/go/indentwriter)

%description
%{common_description}


%package devel
Summary:       %{summary}

%description devel
%{common_description}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.


%prep
%forgeautosetup

# Replace blackfriday import path to avoid conflict with v2
sed -i 's|"github.com/russross/blackfriday|"gopkg.in/russross/blackfriday.v1|' $(find . -name '*.go')


%install
%goinstall


%if %{with check}
%check
%gochecks
%endif


%files devel -f devel.file-list
%doc README.md




%changelog
* Tue Nov 27 2018 pterjan <pterjan> 1.1-0.1.mga7
+ Revision: 1336114
- imported package golang-github-shurcool-markdownfmt