The package rpms/golang-github-akrennmair-gopcap.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-akrennmair-gopcap.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 4a8c556104f7915245b255655bd9b9ddfcf766f8
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 8 13:50:02 2018 +0200
Upload glide.lock and glide.yaml
diff --git a/glide.lock b/glide.lock
new file mode 100644
index 0000000..74aa63e
--- /dev/null
+++ b/glide.lock
@@ -0,0 +1,3 @@
+hash: 14c44035832b3d2f9a75691dbca33ad435510bed692f516c260f3d166380c078
+imports: []
+updated: '2018-06-08T11:47:28.436904+00:00'
diff --git a/glide.yaml b/glide.yaml
new file mode 100644
index 0000000..f2ea2d2
--- /dev/null
+++ b/glide.yaml
@@ -0,0 +1,3 @@
+import: []
+package:
github.com/akrennmair/gopcap
+
diff --git a/golang-github-akrennmair-gopcap.spec b/golang-github-akrennmair-gopcap.spec
index e461ac5..9dbda7c 100644
--- a/golang-github-akrennmair-gopcap.spec
+++ b/golang-github-akrennmair-gopcap.spec
@@ -13,6 +13,8 @@ Summary: A simple wrapper around libpcap for the Go programming
language
License: BSD
URL: %{gourl}
Source0: %{gosource}
+Source1: glide.lock
+Source2: glide.yaml
Patch0: Fix-formatting-error.patch
%description
@@ -36,9 +38,10 @@ building other packages which use import path with
%prep
%gosetup -q
%patch0 -p1
+cp %{SOURCE1} %{SOURCE2} .
%install
-%goinstall
+%goinstall glide.lock glide.yaml
%check
%gochecks
@@ -51,6 +54,7 @@ building other packages which use import path with
%changelog
* Fri Jun 08 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.git.git00e1103
- Update to spec 3.0
+ Upload glide.lock and glide.yaml
* Mon Feb 26 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.8.20150728git00e1103
- Autogenerate some parts using the new macros
commit b8058ee8117fa50fff470abf20169c63d93b8a8b
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 8 13:46:30 2018 +0200
Update to spec 3.0
diff --git a/.gitignore b/.gitignore
index 7f8002a..f782718 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/gopcap-00e1103.tar.gz
+/gopcap-00e11033259acb75598ba416495bb708d864a010.tar.gz
diff --git a/Fix-formatting-error.patch b/Fix-formatting-error.patch
new file mode 100644
index 0000000..eb53482
--- /dev/null
+++ b/Fix-formatting-error.patch
@@ -0,0 +1,25 @@
+From e100ad337aee8a5974da57d480718ca03b23130f Mon Sep 17 00:00:00 2001
+From: Jan Chaloupka <jchaloup(a)redhat.com>
+Date: Fri, 8 Jun 2018 13:44:21 +0200
+Subject: [PATCH] Fix formatting error
+
+---
+ decode.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/decode.go b/decode.go
+index 4db19c0..5d26931 100644
+--- a/decode.go
++++ b/decode.go
+@@ -115,7 +115,7 @@ func (p *Packet) headerString(headers []interface{}) string {
+ if len(headers) >= 2 {
+ if addr, ok := headers[0].(addrHdr); ok {
+ if _, ok := headers[1].(addrHdr); ok {
+- return fmt.Sprintf("%s > %s IP in IP: ",
++ return fmt.Sprintf("%s > %s IP in IP: %s",
+ addr.SrcAddr(), addr.DestAddr(), p.headerString(headers[1:]))
+ }
+ }
+--
+2.7.5
+
diff --git a/golang-github-akrennmair-gopcap.spec b/golang-github-akrennmair-gopcap.spec
index 2727d05..e461ac5 100644
--- a/golang-github-akrennmair-gopcap.spec
+++ b/golang-github-akrennmair-gopcap.spec
@@ -1,20 +1,19 @@
#
https://github.com/akrennmair/gopcap
-%global provider_prefix
github.com/akrennmair/gopcap
-%global gobaseipath %{provider_prefix}
+%global goipath
github.com/akrennmair/gopcap
%global commit 00e11033259acb75598ba416495bb708d864a010
-%global commitdate 20150728
-%gocraftmeta -i
+%gometa -i
Name: %{goname}
Version: 0
-Release: 0.8.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.9.git%{?dist}
Summary: A simple wrapper around libpcap for the Go programming language
# Detected licences
# - BSD (3 clause) at 'LICENSE'
License: BSD
URL: %{gourl}
Source0: %{gosource}
+Patch0: Fix-formatting-error.patch
%description
%{summary}
@@ -32,26 +31,27 @@ Requires: libpcap-devel
This package contains library source intended for
building other packages which use import path with
-%{gobaseipath} prefix.
+%{goipath} prefix.
%prep
-%gosetup
+%gosetup -q
+%patch0 -p1
%install
%goinstall
%check
-%gochecks %{gobaseipath}
+%gochecks
#
github.com/akrennmair/gopcap
#./decode.go:118: Sprintf call needs 2 args but has 3 args
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
%files devel -f devel.file-list
%license LICENSE
%changelog
+* Fri Jun 08 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.git.git00e1103
+- Update to spec 3.0
+
* Mon Feb 26 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.8.20150728git00e1103
- Autogenerate some parts using the new macros
diff --git a/sources b/sources
index 4971187..a9f106f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-834add352c2cb69da43ac9df6c67624c gopcap-00e1103.tar.gz
+SHA512 (gopcap-00e11033259acb75598ba416495bb708d864a010.tar.gz) =
b0ecab1bfd801ddca86266444a8342e22e1981d0ef8577b8bea88327b8a8b217fa09ae88a065a2efb85e285d06954345b54774ed9e03035a8ebaf1624cefcda1
commit b68878d0f645d5ae853cb5c5760bd1c9be1f8780
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Feb 26 12:18:42 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-akrennmair-gopcap.spec b/golang-github-akrennmair-gopcap.spec
index c34dc22..2727d05 100644
--- a/golang-github-akrennmair-gopcap.spec
+++ b/golang-github-akrennmair-gopcap.spec
@@ -1,169 +1,60 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project akrennmair
-%global repo gopcap
#
https://github.com/akrennmair/gopcap
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global provider_prefix
github.com/akrennmair/gopcap
+%global gobaseipath %{provider_prefix}
%global commit 00e11033259acb75598ba416495bb708d864a010
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150728
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0
-Release: 0.7.git%{shortcommit}%{?dist}
+Release: 0.8.%{commitdate}git%{shortcommit}%{?dist}
Summary: A simple wrapper around libpcap for the Go programming language
# Detected licences
# - BSD (3 clause) at 'LICENSE'
License: BSD
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/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 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}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires: libpcap-devel
-%endif
Requires: libpcap-devel
-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
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-%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}
-
-%if 0%{?with_check}
-%endif
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# 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
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test-devel.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
+%gochecks %{gobaseipath}
+#
github.com/akrennmair/gopcap
+#./decode.go:118: Sprintf call needs 2 args but has 3 args
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%endif
%changelog
+* Mon Feb 26 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.8.20150728git00e1103
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.7.git00e1103
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild