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

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