The package rpms/golang-entgo-ent.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-entgo-ent.git/commit/?id=6....
Change:
+ExcludeArch: %{ix86}
Thanks.
Full change:
============
commit 67ae98f48a2c1c0a4f4be26ebdada2bac416b6a3
Author: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Thu May 12 11:22:49 2022 -0700
Initial Fedora package
Signed-off-by: Michel Alexandre Salim <salimma(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..496ff36
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ent-0.10.0.tar.gz
diff --git a/golang-entgo-ent.spec b/golang-entgo-ent.spec
new file mode 100644
index 0000000..8fed816
--- /dev/null
+++ b/golang-entgo-ent.spec
@@ -0,0 +1,155 @@
+# Generated by go2rpm 1.6.0
+%bcond_without check
+# toggle to check if failing tests now pass
+%bcond_with all_tests
+
+#
https://github.com/ent/ent
+%global goipath entgo.io/ent
+%global forgeurl
https://github.com/ent/ent
+Version: 0.10.0
+
+%gometa
+
+# this was previously golang-github-facebook-ent
+%global goaltipaths
github.com/facebook/ent
+
+%global common_description %{expand:
+An entity framework for Go.}
+
+%global golicenses LICENSE
+%global godocs doc examples README.md README_jp.md\\\
+ CODE_OF_CONDUCT.md CONTRIBUTING.md README_zh.md\\\
+ entc/integration/README.md doc
+
+Name: %{goname}
+Release: %autorelease
+Summary: An entity framework for Go
+
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
+
+# multiple tests have 32-bit issues, upstream does not test on it
+ExcludeArch: %{ix86}
+
+BuildRequires:
golang(github.com/go-openapi/inflect)
+BuildRequires:
golang(github.com/google/uuid)
+BuildRequires:
golang(github.com/gorilla/websocket)
+BuildRequires:
golang(github.com/json-iterator/go)
+BuildRequires:
golang(github.com/mattn/go-sqlite3)
+BuildRequires:
golang(github.com/mitchellh/mapstructure)
+BuildRequires:
golang(github.com/modern-go/reflect2)
+BuildRequires:
golang(github.com/olekukonko/tablewriter)
+BuildRequires:
golang(github.com/pkg/errors)
+BuildRequires:
golang(github.com/spf13/cobra)
+BuildRequires: golang(go.opencensus.io/stats)
+BuildRequires: golang(go.opencensus.io/stats/view)
+BuildRequires: golang(go.opencensus.io/tag)
+BuildRequires: golang(go.opencensus.io/trace)
+BuildRequires:
golang(golang.org/x/sync/errgroup)
+BuildRequires:
golang(golang.org/x/sync/semaphore)
+BuildRequires:
golang(golang.org/x/tools/go/packages)
+BuildRequires:
golang(golang.org/x/tools/imports)
+
+%if %{with check}
+# Tests
+BuildRequires:
golang(github.com/DATA-DOG/go-sqlmock)
+BuildRequires:
golang(github.com/jessevdk/go-flags)
+BuildRequires:
golang(github.com/json-iterator/go)
+BuildRequires:
golang(github.com/stretchr/testify/assert)
+BuildRequires:
golang(github.com/stretchr/testify/mock)
+BuildRequires:
golang(github.com/stretchr/testify/require)
+BuildRequires:
golang(golang.org/x/tools/go/packages/packagestest)
+%endif
+
+# manually-added BRs
+BuildRequires: golang(ariga.io/atlas/sql/migrate)
+BuildRequires: golang(ariga.io/atlas/sql/mysql)
+BuildRequires: golang(ariga.io/atlas/sql/postgres)
+BuildRequires: golang(ariga.io/atlas/sql/schema)
+BuildRequires: golang(ariga.io/atlas/sql/sqlite)
+
+
+%description
+%{common_description}
+
+%gopkg
+
+%prep
+%goprep
+# rename integration doc to avoid name clash
+mv entc/integration/README.md entc/integration/README-integration.md
+
+%generate_buildrequires
+
+%build
+for cmd in cmd/ent* ; do
+ %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
+done
+
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+
+%if %{with check}
+%check
+%if %{without all_tests}
+# remove failing tests
+# --- FAIL: TestSnapshot_Restore (0.61s)
+# snapshot_test.go:21: Running snapshot-restore integration test
+# snapshot_test.go:43:
+# Error Trace: snapshot_test.go:43
+# Error: Received unexpected error:
+# exit status 1
+# Test: TestSnapshot_Restore
+# FAIL
+# exit status 1
+# FAIL entgo.io/ent/entc/internal 0.625s
+rm entc/internal/snapshot_test.go
+# --- FAIL: TestLoad (0.23s)
+# load_test.go:18:
+# Error Trace: load_test.go:18
+# Error: Received unexpected error:
+# entc/load:
.entc/entc___builddir_build_BUILD_ent-0.10.0__build_src_entgo.io_ent_entc_load_testdata_valid_1652380697.go:16:2:
cannot find package
"_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid"
in any of:
+#
/usr/lib/golang/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
(from $GOROOT)
+#
/builddir/build/BUILD/ent-0.10.0/_build/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
(from $GOPATH)
+#
/usr/share/gocode/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
+# Test: TestLoad
+# --- FAIL: TestLoadSpecific (0.13s)
+# load_test.go:37:
+# Error Trace: load_test.go:37
+# Error: Received unexpected error:
+# entc/load:
.entc/entc___builddir_build_BUILD_ent-0.10.0__build_src_entgo.io_ent_entc_load_testdata_valid_1652380697.go:16:2:
cannot find package
"_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid"
in any of:
+#
/usr/lib/golang/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
(from $GOROOT)
+#
/builddir/build/BUILD/ent-0.10.0/_build/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
(from $GOPATH)
+#
/usr/share/gocode/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/valid
+# Test: TestLoadSpecific
+# --- FAIL: TestLoadBaseSchema (0.21s)
+# load_test.go:60:
+# Error Trace: load_test.go:60
+# Error: Received unexpected error:
+# entc/load:
.entc/entc___builddir_build_BUILD_ent-0.10.0__build_src_entgo.io_ent_entc_load_testdata_base_1652380698.go:16:2:
cannot find package
"_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/base"
in any of:
+#
/usr/lib/golang/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/base
(from $GOROOT)
+#
/builddir/build/BUILD/ent-0.10.0/_build/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/base
(from $GOPATH)
+#
/usr/share/gocode/src/_/builddir/build/BUILD/ent-0.10.0/_build/src/entgo.io/ent/entc/load/testdata/base
+# Test: TestLoadBaseSchema
+# FAIL
+# exit status 1
+# FAIL entgo.io/ent/entc/load 1.099s
+rm entc/load/load_test.go
+%endif
+%gocheck
+%endif
+
+%files
+%license LICENSE
+%doc doc examples README.md README_jp.md CODE_OF_CONDUCT.md CONTRIBUTING.md
+%doc README_zh.md entc/integration/README-integration.md doc
+%{_bindir}/*
+
+%gopkgfiles
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..f80559a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (ent-0.10.0.tar.gz) =
f2126d9f10b8144a4e1f63feb602fac6eb83a4185618764fa4f10a7b18df6c9d5d048636c8e4d8f021051d1055b708782bae8dfafad0ffbda99edcd7b9d640c7