golang-github-cpuguy83-md2man/golang-github-cpuguy83-md2man.spec
Robert-André Mauchin b65e52a98a Convert to rpmautospec
2021-09-13 16:48:05 +02:00

64 lines
1.3 KiB
RPMSpec

# 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
%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}
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
%autochangelog