%global debug_package %{nil} %global provider github %global provider_tld com %global project cpuguy83 %global repo go-md2man %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} Name: golang-%{provider}-%{project}-%{repo} Version: 1.0.4 Release: 5%{?dist} Summary: Process markdown into manpages License: MIT URL: https://%{import_path} Source0: https://%{import_path}/archive/v%{version}/%{repo}-%{version}.tar.gz Provides: %{repo} = %{version}-%{release} ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm} aarch64 ppc64le} BuildRequires: golang >= 1.2.1-3 BuildRequires: golang(github.com/russross/blackfriday) %description %{repo} is a golang tool using blackfriday to process markdown into manpages. %prep %setup -q -n %{repo}-%{version} %build mkdir -p _build/src/%{provider}.%{provider_tld}/%{project} ln -s $(pwd) ./_build/src/%{import_path} export GOPATH=$(pwd)/_build:%{gopath} pushd $(pwd)/_build/src go build -v %{import_path} popd %install # install go-md2man binary install -d %{buildroot}%{_bindir} install -p -m 755 ./_build/src/%{repo} %{buildroot}%{_bindir} %files %license LICENSE.md %doc README.md %{_bindir}/%{repo} %changelog * Tue Jan 08 2019 Carl George - 1.0.4-5 - Sync with RHEL spec file - Removed bundled libraries * Sun Mar 06 2016 jchaloup - 1.0.4-4 - Update list of provided packages resolves: #1222796 * Mon Feb 22 2016 Fedora Release Engineering - 1.0.4-3 - https://fedoraproject.org/wiki/Changes/golang1.6 * Wed Feb 03 2016 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Dec 14 2015 jchaloup - 1.0.4-1 - Rebase to 1.0.4 resolves: #1291379 * Thu Sep 10 2015 jchaloup - 1-13 - Generate man page as well related: #1222796 * Sun Aug 30 2015 jchaloup - 1-12 - Change deps on compiler(go-compiler) - Update %build, %test and main section accordingaly related: #1222796 * Sat Aug 29 2015 jchaloup - 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 - 1-10 - Provide devel package on rhel7 related: #1222796 * Thu Aug 20 2015 jchaloup - 1-9 - Update spec file to spec-2.0 related: #1222796 * Mon Jul 20 2015 jchaloup - 1-8 - Add with_* macros * Wed Jun 17 2015 Fedora Release Engineering - 1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue May 19 2015 jchaloup - 1-6 - Remove runtime deps of devel on golang - Polish spec file related: #1222796 * Sun May 17 2015 jchaloup - 1-5 - Add debug info - Add license - Update spec file to build on secondary architectures as well related: #1222796 * Wed Feb 25 2015 jchaloup - 1-4 - Bump to upstream 2831f11f66ff4008f10e2cd7ed9a85e3d3fc2bed related: #1156492 * Wed Feb 25 2015 jchaloup - 1-3 - Add commit and shortcommit global variable related: #1156492 * Mon Oct 27 2014 Lokesh Mandvekar - 1-2 - Resolves: rhbz#1156492 - initial fedora upload - quiet setup - no test files, disable check * Thu Sep 11 2014 Lokesh Mandvekar - 1-1 - Initial package