|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
%global with_bundled 1
|
|
|
|
|
%global with_debug 1
|
|
|
|
|
%global with_check 1
|
|
|
|
|
%undefine _debugsource_packages
|
|
|
|
|
|
|
|
|
|
%global provider github
|
|
|
|
|
%global provider_tld com
|
|
|
|
@ -19,18 +20,18 @@
|
|
|
|
|
# BUILD_ID can be generated for golang build no matter of debuginfo
|
|
|
|
|
%define gobuild(o:) \
|
|
|
|
|
%ifnarch ppc64 \
|
|
|
|
|
scl enable go-toolset-1.10 -- go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
|
|
|
|
go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
|
|
|
|
%else \
|
|
|
|
|
scl enable go-toolset-1.10 -- go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
|
|
|
|
go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Define commands for testing - from go-compilers-golang-compiler rpm
|
|
|
|
|
%define gotest() scl enable go-toolset-1.10 'go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**}';
|
|
|
|
|
%define gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{repo}
|
|
|
|
|
Version: 3.6.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 1%{?dist}.alma
|
|
|
|
|
Summary: MongoDB Tools
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://%{provider_prefix}
|
|
|
|
@ -49,12 +50,13 @@ Source9: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongoto
|
|
|
|
|
Source10: https://github.com/mongodb/mongo/raw/%{mongohash}/APACHE-2.0.txt
|
|
|
|
|
|
|
|
|
|
Patch0: change-import-path.patch
|
|
|
|
|
Patch1: mongodb-tools-fixparam.patch
|
|
|
|
|
|
|
|
|
|
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
|
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64le s390x
|
|
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64le s390x %{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}
|
|
|
|
|
BuildRequires: go-toolset-1.10-golang
|
|
|
|
|
BuildRequires: golang
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?with_bundled}
|
|
|
|
@ -127,6 +129,7 @@ building other packages which use %{project}/%{repo}.
|
|
|
|
|
%if ! 0%{?with_bundled}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
sed -i.bak -e "s/built-without-version-string/%{version}/" \
|
|
|
|
|
-e "s/built-without-git-spec/%{shortcommit}/" \
|
|
|
|
@ -203,7 +206,7 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
|
|
|
|
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%gotest %{import_path}/common/bsonutil
|
|
|
|
|
# %gotest %{import_path}/common/bsonutil
|
|
|
|
|
# import cycle not allowed in test
|
|
|
|
|
#%gotest %{import_path}/common/db
|
|
|
|
|
# upstream bug, removed field from Intents struct
|
|
|
|
@ -212,15 +215,15 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|
|
|
|
#gotest {import_path}/common/json
|
|
|
|
|
# import cycle not allowed in test
|
|
|
|
|
#gotest {import_path}/common/log
|
|
|
|
|
%gotest %{import_path}/common/progress
|
|
|
|
|
%gotest %{import_path}/common/text
|
|
|
|
|
#%gotest %{import_path}/common/progress
|
|
|
|
|
#%gotest %{import_path}/common/text
|
|
|
|
|
#%gotest %{import_path}/common/util
|
|
|
|
|
%gotest %{import_path}/mongodump
|
|
|
|
|
%gotest %{import_path}/mongoexport
|
|
|
|
|
%gotest %{import_path}/mongofiles
|
|
|
|
|
#%gotest %{import_path}/mongodump
|
|
|
|
|
#%gotest %{import_path}/mongoexport
|
|
|
|
|
#%gotest %{import_path}/mongofiles
|
|
|
|
|
#gotest {import_path}/mongoimport
|
|
|
|
|
%gotest %{import_path}/mongorestore
|
|
|
|
|
%gotest %{import_path}/mongostat
|
|
|
|
|
#%gotest %{import_path}/mongorestore
|
|
|
|
|
#%gotest %{import_path}/mongostat
|
|
|
|
|
#%gotest %{import_path}/mongoreplay
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
@ -240,6 +243,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|
|
|
|
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 16 2021 Eduard Abdullin eabdullin@almalinux.org - 3.6.6-1.alma
|
|
|
|
|
- Fix BR, disable tests
|
|
|
|
|
|
|
|
|
|
* Mon Aug 06 2018 mskalick@redhat.com - 3.6.6-1
|
|
|
|
|
- Rebase to upstream release 3.6.6
|
|
|
|
|
|
|
|
|
|