The package rpms/golang-github-yosssi-ace.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-yosssi-ace.git/comm....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 9b215323adc9c33e22ecada51900fc34bcf82e29
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 24 15:27:51 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 30befdf..93ace67 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/v0.0.5.tar.gz
+/ace-0.0.5.tar.gz
diff --git a/golang-github-yosssi-ace.spec b/golang-github-yosssi-ace.spec
index 38d0c49..9a5b097 100644
--- a/golang-github-yosssi-ace.spec
+++ b/golang-github-yosssi-ace.spec
@@ -1,189 +1,63 @@
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 1
-# 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
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project yosssi
-%global repo ace
#
https://github.com/yosssi/ace
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0.0.5
-Release: 8%{?dist}
-Summary: HTML template engine for Go
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}.tar.gz
+%global goipath
github.com/yosssi/ace
+Version: 0.0.5
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{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}
+%gometa
-%if ! 0%{?with_bundled}
-# cmd/ace/main.go
-BuildRequires:
golang(github.com/yosssi/gohtml)
-
-# Remaining dependencies not included in main packages
-%endif
-
-Provides: ace = %{version}-%{release}
-
-%description
-%{summary}.
+%global common_description %{expand:
+Ace is an HTML template engine for Go. This is inspired by Slim and Jade. This
+is a refinement of Gold.}
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global golicenses LICENSE
+%global godocs examples README.md documentation
-Provides: golang(%{import_path}) = %{version}-%{release}
-
-%description devel
-%{summary}.
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Release: 1%{?dist}
+Summary: HTML template engine for Go
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+BuildRequires:
golang(github.com/yosssi/gohtml)
-%description unit-test-devel
-%{summary}.
+%description
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{version}
+%goprep
%build
-mkdir -p src/%{provider}.%{provider_tld}/%{project}
-ln -s ../../../ src/%{import_path}
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-# No dependency directories so far
-export GOPATH=$(pwd):%{gopath}
-%endif
-
-%gobuild -o bin/ace %{import_path}/cmd/ace
-
-%install
-install -d -p %{buildroot}%{_bindir}
-install -D -p -m 0755 bin/ace %{buildroot}%{_bindir}
-
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-# Excludes directory "cmd" (used for binary) and "examples"
(documentation)
-for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname
"*_test.go" \! -path "./cmd/*" \! -path "./examples/*") ;
do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
+for cmd in cmd/* ; do
+ %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test-devel.file-list
-# Excludes directory "cmd" (used for binary) and "examples"
(documentation)
-for file in $(find . -iname "*_test.go" \! -path "./cmd/*" \! -path
"./examples/*") ; do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-%endif
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-# Remove execute permission to .sh files in examples
-find . -name "*.sh" -exec chmod -x {} \;
-%endif
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%gocheck
%endif
-%gotest %{import_path}
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
%files
%license LICENSE
-%doc README.md
-%{_bindir}/ace
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license LICENSE
-%doc README.md
-%doc examples
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
+%doc examples README.md documentation
+%{_bindir}/*
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Fri May 24 15:03:23 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.0.5-9
+- Update to new macros
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.0.5-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -211,4 +85,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Mon Jun 13 2016 Olivier Lemasle <o.lemasle(a)gmail.com> - 0.0.4-1
- First package for Fedora
-
diff --git a/sources b/sources
index a1ec052..e617f75 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (v0.0.5.tar.gz) =
1bc93544fb64088271ffca5c2ec4bd136a18527968b4341c2108c6b7156d78292e6d0c5c50fe80cda24bcd17c2d1204af597c0c3281248c3842d1fdc4838b54f
+SHA512 (ace-0.0.5.tar.gz) =
1bc93544fb64088271ffca5c2ec4bd136a18527968b4341c2108c6b7156d78292e6d0c5c50fe80cda24bcd17c2d1204af597c0c3281248c3842d1fdc4838b54f