The package rpms/golang-github-cpuguy83-go-md2man.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-cpuguy83-go-md2man.....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit 40ecdeb702fc13efcf3d6ee3ac9c7ec01de9cfe6
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Wed Feb 28 13:08:45 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-cpuguy83-go-md2man.spec
b/golang-github-cpuguy83-go-md2man.spec
index 54baeb0..7fbffdd 100644
--- a/golang-github-cpuguy83-go-md2man.spec
+++ b/golang-github-cpuguy83-go-md2man.spec
@@ -1,175 +1,59 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply
a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%if ! 0%{?gobuild:1}
-%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%endif
-
-%global provider github
-%global provider_tld com
-%global project cpuguy83
-%global repo go-md2man
#
https://github.com/cpuguy83/go-md2man
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global provider_prefix
github.com/cpuguy83/go-md2man
+%global gobaseipath %{provider_prefix}
%global commit 1d903dcb749992f3741d744c0f8376b4bd7eb3e1
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 1.0.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Process markdown into manpages
License: MIT
-URL: https://%{import_path}
-Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
-%if ! 0%{?with_bundled}
BuildRequires:
golang(github.com/russross/blackfriday)
-%endif
-Provides: %{repo} = %{version}-%{release}
+Provides: go-md2man = %{version}-%{release}
%description
-%{repo} is a golang tool using blackfriday to process markdown into
+go-md2man is a golang tool using blackfriday to process markdown into
manpages.
-%if 0%{?with_devel}
%package devel
Summary: A golang registry for global request variables
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires:
golang(github.com/russross/blackfriday)
-%endif
-
-Requires:
golang(github.com/russross/blackfriday)
-
-Provides: golang(%{import_path}/md2man) = %{version}-%{release}
%description devel
-%{repo} is a golang tool using blackfriday to process markdown into
+%{gobaseipath} is a golang tool using blackfriday to process markdown into
manpages.
This package contains library source intended for building other packages
-which use %{project}/%{repo}.
-%endif
-
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+which use %{gobaseipath}.
%prep
-%setup -q -n %{repo}-%{commit}
+%gosetup
%build
-mkdir -p
src/github.com/cpuguy83
-ln -s ../../../
src/github.com/cpuguy83/go-md2man
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-echo "Unable to build from bundled deps. No Godeps nor vendor directory"
-exit 1
-%endif
-
-%gobuild -o bin/go-md2man %{import_path}
+%gobuildroot
+%gobuild -o _bin/go-md2man %{gobaseipath}
%install
# install go-md2man binary
install -d %{buildroot}%{_bindir}
-install -p -m 755 bin/%{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
+_bin/go-md2man -in=go-md2man.1.md -out=go-md2man.1
install -p -m 644 go-md2man.1 %{buildroot}%{_mandir}/man1
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-for file in $(find . -iname "*.proto") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%define gotest() go test -ldflags "${LDFLAGS:-}" %{?**}
-%endif
-
-%gotest %{import_path}/md2man
+%gochecks %{gobaseipath}/md2man
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -177,24 +61,17 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%files
%license LICENSE.md
%doc README.md
-%{_bindir}/%{repo}
+%{_bindir}/go-md2man
%{_mandir}/man1/*
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE.md
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE.md
-%doc README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com>
+- Autogenerate some parts using the new macros
+
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 1.0.7-3
- Escape macros in %%changelog