File brp-75-ar-allow-override.patch of Package brp-check-suse.19625
From 13ed30b788930d5e274740990e83b48d3df454eb Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Mon, 17 Jun 2019 09:35:24 +0200
Subject: [PATCH] Add NO_BRP_AR as a way how to skip ar.
It would be useful for Go packages:
https://github.com/golang/go/issues/17890
Problem is that ar append '/' to a __.PKGDEF and
Go can't deal with that.
diff --git a/brp-75-ar b/brp-75-ar
index 3b852ac..f1a8edd 100755
--- a/brp-75-ar
+++ b/brp-75-ar
@@ -8,6 +8,10 @@ if [ -z "$SOURCE_DATE_EPOCH" ] ; then
echo "SOURCE_DATE_EPOCH is not set: skipping ar normalization"
exit 0
fi
+if [ "$NO_BRP_AR" = "true" ] ; then
+ echo "NO_BRP_AR is set: skipping ar"
+ exit 0
+fi
while read f; do
! file "$f" | grep -q "ar archive" || objcopy -D "$f" || true