golang-github-cpuguy83-md2man-2.0.2-1.el9
- update to 2.0.2 - Related: #2061316 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
219a5f4152
commit
b36db0c175
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,5 +1 @@
|
|||||||
/go-md2man-f79a8a8ca69da163eee19ab442bedad7a35bba5a.tar.gz
|
/*.tar.*
|
||||||
/go-md2man-1029f53b6507e27158d89cd489669559c1c700a3.tar.gz
|
|
||||||
/go-md2man-af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz
|
|
||||||
/v2.0.0.tar.gz
|
|
||||||
/af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz
|
|
||||||
|
@ -5,49 +5,36 @@
|
|||||||
GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**};
|
GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**};
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# https://github.com/cpuguy83/go-md2man
|
%global commit0 d97078115282836e16d0dca10b4b42ce60fc70e6
|
||||||
%global provider github
|
|
||||||
%global provider_tld com
|
|
||||||
%global project cpuguy83
|
|
||||||
%global repo go-md2man
|
|
||||||
%global import_path github.com/cpuguy83/go-md2man
|
|
||||||
%global commit0 af8da765f0460ccb1d91003b4945a792363a94ca
|
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||||
|
|
||||||
%global common_description %{expand:
|
|
||||||
Converts markdown into roff (man pages).}
|
|
||||||
|
|
||||||
%global golicenses LICENSE.md
|
|
||||||
%global godocs README.md go-md2man.1.md
|
|
||||||
|
|
||||||
Name: golang-github-cpuguy83-md2man
|
Name: golang-github-cpuguy83-md2man
|
||||||
Version: 2.0.0
|
Version: 2.0.2
|
||||||
Release: 18.git%{shortcommit0}%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Converts markdown into roff (man pages)
|
Summary: Converts markdown into roff (man pages)
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://%{import_path}
|
URL: https://github.com/cpuguy83/go-md2man
|
||||||
ExcludeArch: %{ix86}
|
Source0: https://github.com/cpuguy83/go-md2man/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz
|
||||||
Source0: %{url}/archive/%{commit0}.tar.gz
|
|
||||||
BuildRequires: golang
|
BuildRequires: golang
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
Provides: %{repo} = %{version}-%{release}
|
Provides: go-md2man = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
Converts markdown into roff (man pages).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{repo}-%{commit0}
|
%autosetup -Sgit -n go-md2man-%{commit0}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ln -s vendor src
|
ln -s vendor src
|
||||||
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
mkdir -p src/github.com/cpuguy83
|
||||||
ln -s $(pwd) src/%{import_path}
|
ln -s $(pwd) src/github.com/cpuguy83/go-md2man
|
||||||
export GOPATH=$(pwd)
|
export GOPATH=$(pwd)
|
||||||
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
export CGO_CFLAGS+=" -fcf-protection=full"
|
export CGO_CFLAGS+=" -fcf-protection=full"
|
||||||
%endif
|
%endif
|
||||||
GOPATH=$GOPATH %gobuild -o bin/go-md2man %{import_path}
|
GOPATH=$GOPATH %gobuild -o bin/go-md2man github.com/cpuguy83/go-md2man
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||||
@ -58,11 +45,15 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license %{golicenses}
|
%license LICENSE.md
|
||||||
%doc %{godocs}
|
%doc README.md go-md2man.1.md
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com>
|
||||||
|
- update to 2.0.2
|
||||||
|
- Related: #2061316
|
||||||
|
|
||||||
* Thu Feb 17 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.0-18.gitaf8da76
|
* Thu Feb 17 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.0-18.gitaf8da76
|
||||||
- fix gating.yaml as we have no functional gating tests
|
- fix gating.yaml as we have no functional gating tests
|
||||||
- Related: #2000051
|
- Related: #2000051
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz) = eab2ebf67f2eae240fb090f23ba47f6dd0383a0618fecd4861991a45f4195c874ce8f371a5200deef0eb9510cbffaf46a5de15d344753a4263604a1d6148b4d1
|
SHA512 (golang-github-cpuguy83-md2man-2.0.2-d970781.tar.gz) = 16b0bdd2a82a385798a9fdc7e82c7d7ad5932eec0bce2f75fd774c23a93fa9825780534be8b4c664227690b3345aa39df3092fe33f9db74022dc0e9fd5b2a152
|
||||||
|
Loading…
Reference in New Issue
Block a user