golang-github-cpuguy83-md2man/golang-github-cpuguy83-md2man.spec

64 lines
1.3 KiB
RPMSpec
Raw Normal View History

# Generated by go2rpm
%bcond_without check
# https://github.com/cpuguy83/go-md2man
%global goipath github.com/cpuguy83/go-md2man
Version: 2.0.0
%global commit af8da765f0460ccb1d91003b4945a792363a94ca
%gometa
%global goaltipaths github.com/cpuguy83/go-md2man/v2
2019-07-05 03:55:20 +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
Summary: Converts markdown into roff (man pages)
License: MIT
URL: %{gourl}
Source0: %{gosource}
Source1: glide.yaml
Source2: glide.lock
BuildRequires: golang(github.com/russross/blackfriday/v2)
Provides: go-md2man = %{version}-%{release}
%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