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

63 lines
1.3 KiB
RPMSpec
Raw Normal View History

# Generated by go2rpm 1.6.0
%bcond_without check
# https://github.com/cpuguy83/go-md2man
%global goipath github.com/cpuguy83/go-md2man
Version: 2.0.2
%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 go-md2man.1.md README.md
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}
BuildRequires: golang(github.com/russross/blackfriday/v2)
Provides: go-md2man = %{version}-%{release}
%description
%{common_description}
%gopkg
%prep
%goprep
%build
%gobuild -o %{gobuilddir}/bin/go-md2man %{goipath}
%{gobuilddir}/bin/go-md2man -in go-md2man.1.md -out go-md2man.1
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -Dpm 0644 go-md2man.1 -t %{buildroot}%{_mandir}/man1/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE.md
%doc go-md2man.1.md README.md
%{_bindir}/*
%{_mandir}/man1/go-md2man.1*
%gopkgfiles
%changelog
%autochangelog