import sources
This commit is contained in:
parent
f3b80013ec
commit
563a850cd1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
SOURCES/blackfriday-77efab5.tar.gz
|
SOURCES/blackfriday-77efab5.tar.gz
|
||||||
SOURCES/go-md2man-71acacd.tar.gz
|
SOURCES/go-md2man-71acacd.tar.gz
|
||||||
SOURCES/sanitized_anchor_name-8e87604.tar.gz
|
SOURCES/sanitized_anchor_name-8e87604.tar.gz
|
||||||
|
/v2.0.2.tar.gz
|
||||||
|
@ -1,94 +1,191 @@
|
|||||||
|
%global with_debug 1
|
||||||
|
|
||||||
|
%if 0%{?with_debug}
|
||||||
|
%global _find_debuginfo_dwz_opts %{nil}
|
||||||
|
%global _dwz_low_mem_die_limit 0
|
||||||
|
%else
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%global provider github
|
%endif
|
||||||
%global provider_tld com
|
|
||||||
%global project cpuguy83
|
|
||||||
%global repo go-md2man
|
|
||||||
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
||||||
%global commit 71acacd42f85e5e82f70a55327789582a5200a90
|
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
||||||
|
|
||||||
%global san_commit 8e87604bec3c645a4eeaee97dfec9f25811ff20d
|
%define gobuild(o:) \
|
||||||
%global san_shortcommit %(c=%{san_commit}; echo ${c:0:7})
|
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 %{?**};
|
||||||
%global san_repo sanitized_anchor_name
|
|
||||||
|
|
||||||
%global bl_commit 77efab57b2f74dd3f9051c79752b2e8995c8b789
|
Name: golang-github-cpuguy83-go-md2man
|
||||||
%global bl_shortcommit %(c=%{bl_commit}; echo ${c:0:7})
|
Version: 2.0.2
|
||||||
%global bl_repo blackfriday
|
Release: 3%{?dist}
|
||||||
|
|
||||||
Name: golang-%{provider}-%{project}-%{repo}
|
|
||||||
Version: 1.0.4
|
|
||||||
Release: 4%{?dist}
|
|
||||||
Summary: Process markdown into manpages
|
Summary: Process markdown into manpages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://%{import_path}
|
URL: https://github.com/cpuguy83/go-md2man/
|
||||||
Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
Source0: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v%{version}.tar.gz
|
||||||
Source1: https://github.com/shurcooL/%{san_repo}/archive/%{san_commit}/%{san_repo}-%{san_shortcommit}.tar.gz
|
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
||||||
Source2: https://github.com/russross/%{bl_repo}/archive/%{bl_commit}/%{bl_repo}-%{bl_shortcommit}.tar.gz
|
ExclusiveArch: %{go_arches}
|
||||||
Provides: %{repo} = %{version}-%{release}
|
BuildRequires: golang
|
||||||
%if 0%{?centos} || 0%{?fedora}
|
BuildRequires: git
|
||||||
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm} aarch64 ppc64le s390x}
|
Provides: go-md2man = %{version}-%{release}
|
||||||
%else
|
Obsoletes: golang-github-cpuguy83-md2man < %{version}
|
||||||
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:x86_64 %{arm} aarch64 ppc64le s390x}
|
Provides: golang-github-cpuguy83-md2man = %{version}
|
||||||
%endif
|
|
||||||
BuildRequires: golang >= 1.2.1-3
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{repo} is a golang tool using blackfriday to process markdown into
|
%{name} is a golang tool using blackfriday to process markdown into
|
||||||
manpages.
|
manpages.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{san_repo}-%{san_commit} -T -b 1
|
%autosetup -Sgit -n go-md2man-%{version}
|
||||||
%setup -q -n %{bl_repo}-%{bl_commit} -T -b 2
|
|
||||||
%setup -qn %{repo}-%{commit}
|
|
||||||
|
|
||||||
mkdir -p Godeps/_workspace/src/github.com/shurcooL/%{san_repo}
|
|
||||||
cp -r ../%{san_repo}-%{san_commit}/* Godeps/_workspace/src/github.com/shurcooL/%{san_repo}/.
|
|
||||||
mkdir -p Godeps/_workspace/src/github.com/russross/%{bl_repo}
|
|
||||||
cp -r ../%{bl_repo}-%{bl_commit}/* Godeps/_workspace/src/github.com/russross/%{bl_repo}/.
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p _build/src/%{provider}.%{provider_tld}/%{project}
|
ln -s vendor src
|
||||||
ln -s $(pwd) ./_build/src/%{import_path}
|
mkdir -p src/github.com/cpuguy83
|
||||||
|
ln -s $(pwd) src/github.com/cpuguy83/go-md2man
|
||||||
export GOPATH=$(pwd)/_build:$(pwd)/Godeps/_workspace
|
export GOPATH=$(pwd)
|
||||||
|
GOPATH=$GOPATH %gobuild -o bin/go-md2man github.com/cpuguy83/go-md2man
|
||||||
pushd $(pwd)/_build/src
|
|
||||||
go build -v %{import_path}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# install go-md2man binary
|
# install go-md2man binary
|
||||||
install -d %{buildroot}%{_bindir}
|
install -d %{buildroot}%{_bindir}
|
||||||
install -p -m 755 ./_build/src/%{repo} %{buildroot}%{_bindir}
|
install -p -m 755 bin/go-md2man %{buildroot}%{_bindir}
|
||||||
|
# generate man page
|
||||||
|
install -d -p %{buildroot}%{_mandir}/man1
|
||||||
|
bin/go-md2man -in=go-md2man.1.md -out=go-md2man.1
|
||||||
|
install -p -m 644 go-md2man.1 %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
#define license tag if not already defined
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%license LICENSE.md
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/%{repo}
|
%{_bindir}/go-md2man
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Mar 15 2017 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.4-4
|
* Wed May 11 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-3
|
||||||
- Resolves: #1344553 - build only for go_arches
|
- add missing provides
|
||||||
- update ambiguous changelog in previous entry
|
- Related: #2061390
|
||||||
- update go_arches definition
|
|
||||||
|
|
||||||
* Wed Mar 15 2017 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.4-3
|
* Mon May 09 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-2
|
||||||
- Resolves: #1344553 - build for all available arches (previous build didn't
|
- fix name
|
||||||
fix it)
|
- Related: #2061390
|
||||||
|
|
||||||
* Tue Mar 14 2017 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.4-2
|
* Mon May 09 2022 Jindrich Novy <jnovy@redhat.com> - 2.0.2-1
|
||||||
- Resolves: #1344553 - build for 7.4
|
- update to 2.0.2
|
||||||
|
- Related: #2061390
|
||||||
|
|
||||||
* Tue Dec 15 2015 jchaloup <jchaloup@redhat.com> - 1.0.4-1
|
* Tue Jun 11 2019 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-13
|
||||||
|
- Resolves: #1711418 - build for ix86 as well
|
||||||
|
|
||||||
|
* Mon Apr 29 2019 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-12
|
||||||
|
- Resolves: #1703217
|
||||||
|
- use go-toolset instead of go-toolset-1.10
|
||||||
|
- update gobuild macro
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-11
|
||||||
|
- disable i686 temporarily
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-10
|
||||||
|
- use both go-compilers and go-toolset on all rhel arches
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-9
|
||||||
|
- update distro conditionals and go deps
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-8
|
||||||
|
- go-toolset and go-compiler needed by all arches
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-7
|
||||||
|
- use go-compiler for i686 and non-rhel-8
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-6
|
||||||
|
- re-enable all go_arches
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-5
|
||||||
|
- temp disable i686
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-4
|
||||||
|
- use go-toolset-1.10-golang for rhel8
|
||||||
|
|
||||||
|
* Tue Jul 31 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-3
|
||||||
|
- build with new scl macros for go-toolset
|
||||||
|
|
||||||
|
* Mon Jun 25 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.7-2
|
||||||
|
- remove devel and unittest packages - unused
|
||||||
|
- make debuginfo package delve debugger friendly
|
||||||
|
- build with bundled deps (no need for russross/blackfriday rpm)
|
||||||
|
- don't execute %%check (doesn't work)
|
||||||
|
- add go-toolset deps and conditionals
|
||||||
|
|
||||||
|
* Tue Sep 19 2017 Jan Chaloupka <jchaloup@redhat.com> - 1.0.7-1
|
||||||
|
- Bump to upstream 1d903dcb749992f3741d744c0f8376b4bd7eb3e1
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Mar 14 2017 Jan Chaloupka <jchaloup@redhat.com> - 1.0.4-7
|
||||||
|
- Bump to upstream a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5
|
||||||
|
- https://fedoraproject.org/wiki/Changes/golang1.7
|
||||||
|
|
||||||
|
* Sun Mar 06 2016 jchaloup <jchaloup@redhat.com> - 1.0.4-4
|
||||||
|
- Update list of provided packages
|
||||||
|
resolves: #1222796
|
||||||
|
|
||||||
|
* 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
|
- Rebase to 1.0.4
|
||||||
Deps import separatelly, not in one tarball
|
resolves: #1291379
|
||||||
resolves: #1291380
|
|
||||||
|
|
||||||
* Wed Jun 17 2015 jchaloup <jchaloup@redhat.com> - 1-5
|
* Thu Sep 10 2015 jchaloup <jchaloup@redhat.com> - 1-13
|
||||||
- Update the spec file for RHEL
|
- Generate man page as well
|
||||||
- Remove devel subpackage
|
related: #1222796
|
||||||
- Bundle github.com/russross/blackfriday and github.com/shurcooL/sanitized_anchor_name into tarball
|
|
||||||
- Use bundled dependencies to build md2man
|
* Sun Aug 30 2015 jchaloup <jchaloup@redhat.com> - 1-12
|
||||||
resolves: #1211312
|
- Change deps on compiler(go-compiler)
|
||||||
|
- Update %%build, %%test and main section accordingaly
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Sat Aug 29 2015 jchaloup <jchaloup@redhat.com> - 1-11
|
||||||
|
- Reduce build section after update of go-srpm-macros
|
||||||
|
- BUILD_ID for debug is needed only for golang compiler
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Tue Aug 25 2015 jchaloup <jchaloup@redhat.com> - 1-10
|
||||||
|
- Provide devel package on rhel7
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Thu Aug 20 2015 jchaloup <jchaloup@redhat.com> - 1-9
|
||||||
|
- Update spec file to spec-2.0
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Mon Jul 20 2015 jchaloup <jchaloup@redhat.com> - 1-8
|
||||||
|
- Add with_* macros
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 19 2015 jchaloup <jchaloup@redhat.com> - 1-6
|
||||||
|
- Remove runtime deps of devel on golang
|
||||||
|
- Polish spec file
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
|
* Sun May 17 2015 jchaloup <jchaloup@redhat.com> - 1-5
|
||||||
|
- Add debug info
|
||||||
|
- Add license
|
||||||
|
- Update spec file to build on secondary architectures as well
|
||||||
|
related: #1222796
|
||||||
|
|
||||||
* Wed Feb 25 2015 jchaloup <jchaloup@redhat.com> - 1-4
|
* Wed Feb 25 2015 jchaloup <jchaloup@redhat.com> - 1-4
|
||||||
- Bump to upstream 2831f11f66ff4008f10e2cd7ed9a85e3d3fc2bed
|
- Bump to upstream 2831f11f66ff4008f10e2cd7ed9a85e3d3fc2bed
|
||||||
|
4
sources
4
sources
@ -1,3 +1 @@
|
|||||||
SHA1 (blackfriday-77efab5.tar.gz) = b82be9878c8a45e316049cfdab82af05fb4779f9
|
SHA512 (v2.0.2.tar.gz) = c81edfdc0b6647ef699cc908a1a7038d98da34df6d48b223b83a0699de91a7e322e70d67645acf1fc848918f4c1ea310160c7ccb75e6f97b53af7103c7aa18b3
|
||||||
SHA1 (go-md2man-71acacd.tar.gz) = 1ce2973441c1113210623c50e9b1d514ae0b0396
|
|
||||||
SHA1 (sanitized_anchor_name-8e87604.tar.gz) = f030637c15161d0c27d683d0e4c0eb5ececf08dc
|
|
||||||
|
Loading…
Reference in New Issue
Block a user