| |
@@ -1,9 +1,9 @@
|
| |
- # Generated by go2rpm
|
| |
+ # 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.1
|
| |
+ Version: 2.0.2
|
| |
|
| |
%gometa
|
| |
|
| |
@@ -13,9 +13,7 @@
|
| |
Converts markdown into roff (man pages).}
|
| |
|
| |
%global golicenses LICENSE.md
|
| |
- %global godocs README.md go-md2man.1.md
|
| |
-
|
| |
- %global gosupfiles glide.lock glide.yaml
|
| |
+ %global godocs go-md2man.1.md README.md
|
| |
|
| |
Name: %{goname}
|
| |
Release: %autorelease
|
| |
@@ -24,8 +22,6 @@
|
| |
License: MIT
|
| |
URL: %{gourl}
|
| |
Source0: %{gosource}
|
| |
- Source1: glide.yaml
|
| |
- Source2: glide.lock
|
| |
|
| |
BuildRequires: golang(github.com/russross/blackfriday/v2)
|
| |
Provides: go-md2man = %{version}-%{release}
|
| |
@@ -37,27 +33,30 @@
|
| |
|
| |
%prep
|
| |
%goprep
|
| |
- cp %{S:1} %{S:2} .
|
| |
|
| |
%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 %{golicenses}
|
| |
- %doc %{godocs}
|
| |
+ %license LICENSE.md
|
| |
+ %doc go-md2man.1.md README.md
|
| |
%{_bindir}/*
|
| |
+ %{_mandir}/man1/go-md2man.1*
|
| |
|
| |
%gopkgfiles
|
| |
|
| |
%changelog
|
| |
- %autochangelog
|
| |
\ No newline at end of file
|
| |
+ %autochangelog
|
| |