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

0e7079
%bcond_without check
0e7079
0e7079
%if ! 0%{?gobuild:1}
0e7079
%define gobuild(o:) \
0e7079
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 %{?**};
0e7079
%endif
0e7079
0e7079
%global commit0 d97078115282836e16d0dca10b4b42ce60fc70e6
0e7079
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
0e7079
0e7079
Name: golang-github-cpuguy83-md2man
0e7079
Version: 2.0.2
0e7079
Release: 4%{?dist}
0e7079
Summary: Converts markdown into roff (man pages)
0e7079
License: MIT
0e7079
URL: https://github.com/cpuguy83/go-md2man
0e7079
Source0: https://github.com/cpuguy83/go-md2man/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz
0e7079
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
0e7079
ExclusiveArch: %{go_arches}
0e7079
BuildRequires: golang
0e7079
BuildRequires: git-core
0e7079
Provides: go-md2man = %{version}-%{release}
0e7079
0e7079
%description
0e7079
Converts markdown into roff (man pages).
0e7079
0e7079
%prep
0e7079
%autosetup -Sgit -n go-md2man-%{commit0}
0e7079
0e7079
%build
0e7079
ln -s vendor src
0e7079
mkdir -p src/github.com/cpuguy83
0e7079
ln -s $(pwd) src/github.com/cpuguy83/go-md2man
0e7079
export GO111MODULE=off
0e7079
export GOPATH=$(pwd)
0e7079
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
0e7079
%ifarch x86_64
0e7079
export CGO_CFLAGS+=" -fcf-protection=full"
0e7079
%endif
0e7079
GOPATH=$GOPATH %gobuild -o bin/go-md2man github.com/cpuguy83/go-md2man
0e7079
0e7079
%install
0e7079
install -m 0755 -vd %{buildroot}%{_bindir}
0e7079
install -m 0755 -vp bin/* %{buildroot}%{_bindir}/
0e7079
0e7079
%if %{with check}
0e7079
%check
0e7079
%endif
0e7079
0e7079
%files
0e7079
%license LICENSE.md
0e7079
%doc README.md go-md2man.1.md
0e7079
%{_bindir}/*
0e7079
0e7079
%changelog
0e7079
* Fri Dec 02 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-4
0e7079
- fix RHEL9.2 build - thanks to Debarshi Ray
0e7079
- Related: #2124478
0e7079
0e7079
* Tue Nov 29 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-3
0e7079
- rebuild
0e7079
- Resolves: #2037812
0e7079
0e7079
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-2
0e7079
- limit to golang arches only
0e7079
- Related: #2061316
0e7079
0e7079
* Thu Aug 04 2022 Jindrich Novy <jnovy@redhat.com>
0e7079
- update to 2.0.2
0e7079
- Related: #2061316
0e7079
0e7079
* Thu Feb 17 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.0-18.gitaf8da76
0e7079
- fix gating.yaml as we have no functional gating tests
0e7079
- Related: #2000051
0e7079
0e7079
* Wed Feb 16 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.0-17.gitaf8da76
0e7079
- update gating.yaml and rebuild
0e7079
- Related: #2000051
0e7079
0e7079
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-16.gitaf8da76
0e7079
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0e7079
  Related: rhbz#1991688
0e7079
0e7079
* Thu Jul 15 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-15.gitaf8da76
0e7079
- Resolves: #1975362 - enable additional hardening flags
0e7079
0e7079
* Tue Jul 13 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-14.gitaf8da76
0e7079
- Resolves: #1975362 - enable full cf-protection for x86_64
0e7079
0e7079
* Mon Jul 12 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-13.gitaf8da76
0e7079
- Resolves: #1975362 - use latest upstream commit
0e7079
0e7079
* Fri Jul 09 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-12
0e7079
- Resolves: #1975362 - add -fcf-protection to CGO_CFLAGS
0e7079
0e7079
* Thu Jul 08 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-11
0e7079
- Resolves: #1975362 - add gating.yaml
0e7079
0e7079
* Thu Jul 08 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-10
0e7079
- Resolves: #1975362 - build with CGO_CFLAGS defined
0e7079
0e7079
* Tue Jul 06 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-9
0e7079
- Resolves: #1975362 - rebuild with explicit git-core dep
0e7079
0e7079
* Wed Jun 23 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-8
0e7079
- Resolves: #1975362 - fix gobuild issues
0e7079
0e7079
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-7
0e7079
- Rebuilt for RHEL 9 BETA for openssl 3.0
0e7079
  Related: rhbz#1971065
0e7079
0e7079
* Mon Jun 21 2021 Lokesh Mandvekar <lsm5@redhat.com> - 2.0.0-6
0e7079
- Resolves: #1974463 - build with vendored sources to reduce package set
0e7079
0e7079
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-5.gitaf8da76
0e7079
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
0e7079
0e7079
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0e7079
0e7079
* Sat Jan 09 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-3.20210109gitaf8da76
0e7079
- Bump to commit af8da765f0460ccb1d91003b4945a792363a94ca
0e7079
0e7079
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0e7079
0e7079
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0e7079
0e7079
* Sat Jul 25 19:30:39 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-1.20200725git1029f53
0e7079
- Bump to commit 1029f53b6507e27158d89cd489669559c1c700a3
0e7079
0e7079
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.5
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0e7079
0e7079
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.4
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0e7079
0e7079
* Fri Jul 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.0-0.3.20190624gitf79a8a8
0e7079
- Add Obsoletes for old name
0e7079
0e7079
* Thu Jun 27 18:13:22 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-0.2.20190624gitf79a8a8
0e7079
- Add Provides
0e7079
0e7079
* Thu Apr 25 17:25:58 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.0-0.1.20190624gitf79a8a8
0e7079
- Prerelease 2.0.0, bump to commit f79a8a8ca69da163eee19ab442bedad7a35bba5a
0e7079
0e7079
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-3
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0e7079
0e7079
* Thu Oct 25 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.8-2
0e7079
- Replace blackfriday import path
0e7079
0e7079
* Thu Oct 25 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.8-1
0e7079
- Update to release v1.0.8
0e7079
0e7079
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 1.0.7-9
0e7079
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
0e7079
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
0e7079
0e7079
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.0.7-8
0e7079
- Rebuild with fixed binutils
0e7079
0e7079
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-7.20180312git1d903dc
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0e7079
0e7079
* Sat Jun 09 2018 Jan Chaloupka <jchaloup@redhat.com> - 1.0.7-6.20180312git1d903dc
0e7079
- Upload glide file
0e7079
0e7079
* Wed Mar 07 2018 Jan Chaloupka <jchaloup@redhat.com> - 1.0.7-5.git1d903dc
0e7079
- Fix go vet warning: Fatal -> Fatalf
0e7079
0e7079
* Wed Feb 28 2018 Jan Chaloupka <jchaloup@redhat.com>
0e7079
- Autogenerate some parts using the new macros
0e7079
0e7079
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.7-3
0e7079
- Escape macros in %%changelog
0e7079
0e7079
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0e7079
0e7079
* Tue Sep 19 2017 Jan Chaloupka <jchaloup@redhat.com> - 1.0.7-1
0e7079
- Bump to upstream 1d903dcb749992f3741d744c0f8376b4bd7eb3e1
0e7079
  related: #1222796
0e7079
0e7079
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0e7079
0e7079
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0e7079
0e7079
* Tue Mar 14 2017 Jan Chaloupka <jchaloup@redhat.com> - 1.0.4-7
0e7079
- Bump to upstream a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa
0e7079
  related: #1222796
0e7079
0e7079
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-6
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0e7079
0e7079
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5
0e7079
- https://fedoraproject.org/wiki/Changes/golang1.7
0e7079
0e7079
* Sun Mar 06 2016 jchaloup <jchaloup@redhat.com> - 1.0.4-4
0e7079
- Update list of provided packages
0e7079
  resolves: #1222796
0e7079
0e7079
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
0e7079
- https://fedoraproject.org/wiki/Changes/golang1.6
0e7079
0e7079
* Thu Sep 10 2015 jchaloup <jchaloup@redhat.com> - 1-13
0e7079
- Generate man page as well
0e7079
  related: #1222796
0e7079
0e7079
* Sun Aug 30 2015 jchaloup <jchaloup@redhat.com> - 1-12
0e7079
- Change deps on compiler(go-compiler)
0e7079
- Update %%build, %%test and main section accordingaly
0e7079
  related: #1222796
0e7079
0e7079
* Sat Aug 29 2015 jchaloup <jchaloup@redhat.com> - 1-11
0e7079
- Reduce build section after update of go-srpm-macros
0e7079
- BUILD_ID for debug is needed only for golang compiler
0e7079
  related: #1222796
0e7079
0e7079
* Tue Aug 25 2015 jchaloup <jchaloup@redhat.com> - 1-10
0e7079
- Provide devel package on rhel7
0e7079
  related: #1222796
0e7079
0e7079
* Thu Aug 20 2015 jchaloup <jchaloup@redhat.com> - 1-9
0e7079
- Update spec file to spec-2.0
0e7079
  related: #1222796
0e7079
0e7079
* Mon Jul 20 2015 jchaloup <jchaloup@redhat.com> - 1-8
0e7079
- Add with_* macros
0e7079
0e7079
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7
0e7079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e7079
0e7079
* Tue May 19 2015 jchaloup <jchaloup@redhat.com> - 1-6
0e7079
- Remove runtime deps of devel on golang
0e7079
- Polish spec file
0e7079
  related: #1222796
0e7079
0e7079
* Sun May 17 2015 jchaloup <jchaloup@redhat.com> - 1-5
0e7079
- Add debug info
0e7079
- Add license
0e7079
- Update spec file to build on secondary architectures as well
0e7079
  related: #1222796
0e7079
0e7079
* Wed Feb 25 2015 jchaloup <jchaloup@redhat.com> - 1-4
0e7079
- Bump to upstream 2831f11f66ff4008f10e2cd7ed9a85e3d3fc2bed
0e7079
  related: #1156492
0e7079
0e7079
* Wed Feb 25 2015 jchaloup <jchaloup@redhat.com> - 1-3
0e7079
- Add commit and shortcommit global variable
0e7079
  related: #1156492
0e7079
0e7079
* Mon Oct 27 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1-2
0e7079
- Resolves: rhbz#1156492 - initial fedora upload
0e7079
- quiet setup
0e7079
- no test files, disable check
0e7079
0e7079
* Thu Sep 11 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1-1
0e7079
- Initial package