Compare commits
10 Commits
80355ee876
...
2205a4a4d8
Author | SHA1 | Date | |
---|---|---|---|
|
2205a4a4d8 | ||
|
e30a053de2 | ||
|
0aab09dd15 | ||
|
b36db0c175 | ||
|
219a5f4152 | ||
|
afcf4dda4f | ||
|
7c7c27589e | ||
|
1ccaadb7d5 | ||
|
c403ac5b02 | ||
|
71266d6af2 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,4 +1 @@
|
||||
/go-md2man-f79a8a8ca69da163eee19ab442bedad7a35bba5a.tar.gz
|
||||
/go-md2man-1029f53b6507e27158d89cd489669559c1c700a3.tar.gz
|
||||
/go-md2man-af8da765f0460ccb1d91003b4945a792363a94ca.tar.gz
|
||||
/v2.0.0.tar.gz
|
||||
/*.tar.*
|
||||
|
@ -1,6 +1,6 @@
|
||||
# recipients: jnovy, lsm5, santiago
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
rules: []
|
||||
|
@ -5,47 +5,39 @@
|
||||
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
|
||||
|
||||
# https://github.com/cpuguy83/go-md2man
|
||||
%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).}
|
||||
|
||||
%global golicenses LICENSE.md
|
||||
%global godocs README.md go-md2man.1.md
|
||||
%global commit0 d97078115282836e16d0dca10b4b42ce60fc70e6
|
||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||
|
||||
Name: golang-github-cpuguy83-md2man
|
||||
Version: 2.0.0
|
||||
Release: 12%{?dist}
|
||||
Version: 2.0.2
|
||||
Release: 4%{?dist}
|
||||
Summary: Converts markdown into roff (man pages)
|
||||
License: MIT
|
||||
URL: https://%{import_path}
|
||||
ExcludeArch: %{ix86}
|
||||
Source0: %{url}/archive/v%{version}.tar.gz
|
||||
URL: https://github.com/cpuguy83/go-md2man
|
||||
Source0: https://github.com/cpuguy83/go-md2man/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
||||
ExclusiveArch: %{go_arches}
|
||||
BuildRequires: golang
|
||||
BuildRequires: git-core
|
||||
Provides: %{repo} = %{version}-%{release}
|
||||
Provides: go-md2man = %{version}-%{release}
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
Converts markdown into roff (man pages).
|
||||
|
||||
%prep
|
||||
%autosetup -Sgit -n %{repo}-%{version}
|
||||
%autosetup -Sgit -n go-md2man-%{commit0}
|
||||
|
||||
%build
|
||||
ln -s vendor src
|
||||
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
||||
ln -s $(pwd) src/%{import_path}
|
||||
mkdir -p src/github.com/cpuguy83
|
||||
ln -s $(pwd) src/github.com/cpuguy83/go-md2man
|
||||
export GO111MODULE=off
|
||||
export GOPATH=$(pwd)
|
||||
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
%ifarch x86_64
|
||||
export CGO_CFLAGS+=" -fcf-protection"
|
||||
export CGO_CFLAGS+=" -fcf-protection=full"
|
||||
%endif
|
||||
GOPATH=$GOPATH %gobuild -o bin/go-md2man %{import_path}
|
||||
GOPATH=$GOPATH %gobuild -o bin/go-md2man github.com/cpuguy83/go-md2man
|
||||
|
||||
%install
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
@ -56,11 +48,48 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license %{golicenses}
|
||||
%doc %{godocs}
|
||||
%license LICENSE.md
|
||||
%doc README.md go-md2man.1.md
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 02 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-4
|
||||
- fix RHEL9.2 build - thanks to Debarshi Ray
|
||||
- Related: #2124478
|
||||
|
||||
* Tue Nov 29 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-3
|
||||
- rebuild
|
||||
- Resolves: #2037812
|
||||
|
||||
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-2
|
||||
- limit to golang arches only
|
||||
- Related: #2061316
|
||||
|
||||
* 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
|
||||
- fix gating.yaml as we have no functional gating tests
|
||||
- Related: #2000051
|
||||
|
||||
* Wed Feb 16 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.0-17.gitaf8da76
|
||||
- update gating.yaml and rebuild
|
||||
- Related: #2000051
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-16.gitaf8da76
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Thu Jul 15 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-15.gitaf8da76
|
||||
- Resolves: #1975362 - enable additional hardening flags
|
||||
|
||||
* Tue Jul 13 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-14.gitaf8da76
|
||||
- Resolves: #1975362 - enable full cf-protection for x86_64
|
||||
|
||||
* Mon Jul 12 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-13.gitaf8da76
|
||||
- Resolves: #1975362 - use latest upstream commit
|
||||
|
||||
* Fri Jul 09 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-12
|
||||
- Resolves: #1975362 - add -fcf-protection to CGO_CFLAGS
|
||||
|
||||
@ -89,12 +118,15 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Sat Jan 09 15:45:35 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-3.20210109gitaf8da76
|
||||
* Sat Jan 09 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-3.20210109gitaf8da76
|
||||
- Bump to commit af8da765f0460ccb1d91003b4945a792363a94ca
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat Jul 25 19:30:39 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-1.20200725git1029f53
|
||||
- Bump to commit 1029f53b6507e27158d89cd489669559c1c700a3
|
||||
|
||||
@ -174,13 +206,6 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
|
||||
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
|
||||
- https://fedoraproject.org/wiki/Changes/golang1.6
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Dec 14 2015 jchaloup <jchaloup@redhat.com> - 1.0.4-1
|
||||
- Rebase to 1.0.4
|
||||
resolves: #1291379
|
||||
|
||||
* Thu Sep 10 2015 jchaloup <jchaloup@redhat.com> - 1-13
|
||||
- Generate man page as well
|
||||
related: #1222796
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (v2.0.0.tar.gz) = 22a6c950ca7e386246fadb15f05d0a60437a249df48a7c5f905bc4bd05034cede6318e1158bd2113e97b4fd2d1e838776680a00c6141ac2b3c8795aeee15a39d
|
||||
SHA512 (golang-github-cpuguy83-md2man-2.0.2-d970781.tar.gz) = 16b0bdd2a82a385798a9fdc7e82c7d7ad5932eec0bce2f75fd774c23a93fa9825780534be8b4c664227690b3345aa39df3092fe33f9db74022dc0e9fd5b2a152
|
||||
|
Loading…
Reference in New Issue
Block a user