2019-06-24 15:00:47 +00:00
|
|
|
# Generated by go2rpm
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
# https://github.com/cpuguy83/go-md2man
|
|
|
|
%global goipath github.com/cpuguy83/go-md2man
|
2021-09-13 14:54:22 +00:00
|
|
|
Version: 2.0.1
|
2019-06-24 15:00:47 +00:00
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
2020-07-25 17:35:44 +00:00
|
|
|
%global goaltipaths github.com/cpuguy83/go-md2man/v2
|
2019-07-05 03:55:20 +00:00
|
|
|
|
2019-06-24 15:00:47 +00:00
|
|
|
%global common_description %{expand:
|
|
|
|
Converts markdown into roff (man pages).}
|
|
|
|
|
|
|
|
%global golicenses LICENSE.md
|
|
|
|
%global godocs README.md go-md2man.1.md
|
|
|
|
|
|
|
|
%global gosupfiles glide.lock glide.yaml
|
|
|
|
|
|
|
|
Name: %{goname}
|
2021-09-13 14:48:05 +00:00
|
|
|
Release: %autorelease
|
2019-06-24 15:00:47 +00:00
|
|
|
Summary: Converts markdown into roff (man pages)
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: %{gourl}
|
|
|
|
Source0: %{gosource}
|
|
|
|
Source1: glide.yaml
|
|
|
|
Source2: glide.lock
|
|
|
|
|
2019-06-24 15:50:56 +00:00
|
|
|
BuildRequires: golang(github.com/russross/blackfriday/v2)
|
2019-06-27 16:13:55 +00:00
|
|
|
Provides: go-md2man = %{version}-%{release}
|
2019-06-24 15:00:47 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
%gopkg
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%goprep
|
|
|
|
cp %{S:1} %{S:2} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
%gobuild -o %{gobuilddir}/bin/go-md2man %{goipath}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%gopkginstall
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%gocheck
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license %{golicenses}
|
|
|
|
%doc %{godocs}
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2021-09-13 14:48:05 +00:00
|
|
|
%autochangelog
|