commit 7c4db0b9ef362526319dd3ea4c0f367392869021 Author: Sofia Boldyreva Date: Tue Jan 28 16:04:54 2025 +0100 Initial commit diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..4c09639 --- /dev/null +++ b/config.yaml @@ -0,0 +1,46 @@ +actions: + - replace: + - target: "spec" + find: "%global with_check 1" + replace: | + %global with_check 1 + %undefine _debugsource_packages + count: 1 + - target: "spec" + find: "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 %{?**};\\" + replace: "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 %{?**};\\" + count: 1 + - target: "spec" + find: "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 %{?**};\\" + replace: "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 %{?**};\\" + count: 1 + - target: "spec" + find: "%define gotest() scl enable go-toolset-1.10 'go test -compiler gc -ldflags \"${LDFLAGS:-}\" %{?**}';" + replace: "%define gotest() go test -compiler gc -ldflags \"${LDFLAGS:-}\" %{?**};" + count: 1 + - target: "spec" + find: "ExclusiveArch: x86_64 aarch64 ppc64le s390x" + replace: "ExclusiveArch: x86_64 aarch64 ppc64le s390x %{arm}" + count: 1 + - target: "spec" + find: "BuildRequires: go-toolset-1.10-golang" + replace: "BuildRequires: golang" + - target: "spec" + find: "%gotest" + replace: "#%gotest" + count: 8 + + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Fix BR, disable tests" + + - add_files: + - type: "patch" + name: "mongodb-tools-fixparam.patch" + number: 1 diff --git a/files/mongodb-tools-fixparam.patch b/files/mongodb-tools-fixparam.patch new file mode 100644 index 0000000..6875a48 --- /dev/null +++ b/files/mongodb-tools-fixparam.patch @@ -0,0 +1,12 @@ +diff -Naurp a/mongorestore/filepath.go b/mongorestore/filepath.go +--- a/mongorestore/filepath.go 2018-06-29 18:11:47.000000000 +0000 ++++ b/mongorestore/filepath.go 2019-06-18 19:37:20.342889629 +0000 +@@ -360,7 +360,7 @@ func (restore *MongoRestore) CreateInten + // Server versions >= 3.0.3 disallow user inserts to system.profile so + // it would likely fail anyway. + if collection == "system.profile" { +- log.Logvf(log.DebugLow, "skipping restore of system.profile collection", db) ++ log.Logvf(log.DebugLow, "skipping restore of system.profile collection %v", db) + skip = true + } + // skip restoring the indexes collection if we are using metadata