golang-github-cpuguy83-md2man-2.0.0-6
- Resolves: #1974463 - build with vendored sources to reduce package set Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
f4c1b39e12
commit
9e51c4a704
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/go-md2man-f79a8a8ca69da163eee19ab442bedad7a35bba5a.tar.gz
|
||||
/go-md2man-1029f53b6507e27158d89cd489669559c1c700a3.tar.gz
|
||||
/go-md2man-af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz
|
||||
/v2.0.0.tar.gz
|
||||
|
6
glide.lock
generated
6
glide.lock
generated
@ -1,6 +0,0 @@
|
||||
hash: 49bcb84bd6847a4072c89ab487b1176a7d5f6e7fcc2f55f255c710051d67820a
|
||||
imports:
|
||||
- name: github.com/russross/blackfriday
|
||||
version: 1b9fcf3894a09527c9471d4fffdf1c5c1ce98da0
|
||||
updated: '2018-06-09T15:18:05.145422+00:00'
|
||||
|
@ -1,5 +0,0 @@
|
||||
import:
|
||||
- package: github.com/russross/blackfriday
|
||||
version: 1b9fcf3894a09527c9471d4fffdf1c5c1ce98da0
|
||||
package: github.com/cpuguy83/go-md2man
|
||||
|
@ -1,14 +1,11 @@
|
||||
# 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 provider github
|
||||
%global provider_tld com
|
||||
%global project cpuguy83
|
||||
%global repo go-md2man
|
||||
%global import_path github.com/cpuguy83/go-md2man
|
||||
|
||||
%global common_description %{expand:
|
||||
Converts markdown into roff (man pages).}
|
||||
@ -16,41 +13,34 @@ 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: 5%{?dist}
|
||||
Name: golang-github-cpuguy83-md2man
|
||||
Version: 2.0.0
|
||||
Release: 6%{?dist}
|
||||
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}
|
||||
URL: https://%{import_path}
|
||||
Source0: %{url}/archive/v%{version}.tar.gz
|
||||
Provides: %{repo} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep
|
||||
cp %{S:1} %{S:2} .
|
||||
%autosetup -Sgit -n %{repo}-%{version}
|
||||
|
||||
%build
|
||||
%gobuild -o %{gobuilddir}/bin/go-md2man %{goipath}
|
||||
ln -s vendor src
|
||||
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
||||
ln -s $(pwd) src/%{import_path}
|
||||
export GOPATH=$(pwd)
|
||||
GOPATH=$GOPATH %gobuild -o bin/go-md2man %{import_path}
|
||||
|
||||
%install
|
||||
%gopkginstall
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck
|
||||
%endif
|
||||
|
||||
%files
|
||||
@ -58,9 +48,10 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
%doc %{godocs}
|
||||
%{_bindir}/*
|
||||
|
||||
%gopkgfiles
|
||||
|
||||
%changelog
|
||||
* Mon Jun 21 2021 Lokesh Mandvekar <lsm5@redhat.com> - 2.0.0-6
|
||||
- Resolves: #1974463 - build with vendored sources to reduce package set
|
||||
|
||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-5.gitaf8da76
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (go-md2man-af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz) = eab2ebf67f2eae240fb090f23ba47f6dd0383a0618fecd4861991a45f4195c874ce8f371a5200deef0eb9510cbffaf46a5de15d344753a4263604a1d6148b4d1
|
||||
SHA512 (v2.0.0.tar.gz) = 22a6c950ca7e386246fadb15f05d0a60437a249df48a7c5f905bc4bd05034cede6318e1158bd2113e97b4fd2d1e838776680a00c6141ac2b3c8795aeee15a39d
|
||||
|
Loading…
Reference in New Issue
Block a user