94c3f75
Index: redhat-rpm-config-9.1.0/brp-java-repack-jars
94c3f75
===================================================================
94c3f75
--- redhat-rpm-config-9.1.0.orig/brp-java-repack-jars
94c3f75
+++ redhat-rpm-config-9.1.0/brp-java-repack-jars
94c3f75
@@ -79,7 +79,10 @@ if [ ! -z "$JARS" ]; then
94c3f75
 		pushd $JARDIR > /dev/null
94c3f75
 
94c3f75
 		if [ -n "`find -not -name '.'`" ]; then
94c3f75
-			find * -not -name '.' | LC_ALL=C sort | /usr/bin/zip -q -X -9 $j -@
94c3f75
+			if [ -e META-INF/MANIFEST.MF ]; then
94c3f75
+			    /usr/bin/zip -q -X -9 $j META-INF/MANIFEST.MF
94c3f75
+			fi
94c3f75
+			find * -not -name '.' | LC_ALL=C sort | /usr/bin/zip -u -q -X -9 $j -@
94c3f75
 		else
94c3f75
 			# Put the empty jar back
94c3f75
 			touch $j