Blame SOURCES/redhat-rpm-config-9.1.0-repack-jars.patch

76c1b9
--- redhat-rpm-config-9.1.0/brp-java-repack-jars.orig	2016-05-11 16:19:41.026993150 +0200
76c1b9
+++ redhat-rpm-config-9.1.0/brp-java-repack-jars	2016-05-11 16:22:14.621444942 +0200
76c1b9
@@ -28,6 +28,8 @@
76c1b9
 	OLD_IFS="$IFS"
76c1b9
 	IFS=$(printf '\n\t')
76c1b9
 	for j in $JARS ; do
76c1b9
+		JAROWN=`ls -l $j | cut -d' ' -f3`
76c1b9
+		JARGRP=`ls -l $j | cut -d' ' -f4`
76c1b9
 		JARNAME=`basename "$j"`
76c1b9
 		JTMPDIR=`mktemp -d -p $RPM_BUILD_ROOT/tmp "$JARNAME.tmpdir.XXXXXXXXXX"` || exit 1
76c1b9
 		JARDIR=`mktemp -d -p $RPM_BUILD_ROOT/tmp "$JARNAME.jardir.XXXXXXXXXX"` || exit 1
76c1b9
@@ -91,6 +93,9 @@
76c1b9
 		fi
76c1b9
 		popd > /dev/null
76c1b9
 
76c1b9
+		chown $JAROWN $j
76c1b9
+		chgrp $JARGRP $j
76c1b9
+
76c1b9
 		# Cleanup.
76c1b9
 		rm -rf "$JTMPDIR"
76c1b9
 		rm -rf "$JARDIR"