rpms/redhat-rpm-config/devel redhat-rpm-config-9.0.3-jars-with-spaces.patch, NONE, 1.1 redhat-rpm-config.spec, 1.69, 1.70

Adam Jackson ajax at fedoraproject.org
Wed Aug 12 17:47:31 UTC 2009


Author: ajax

Update of /cvs/pkgs/rpms/redhat-rpm-config/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10920

Modified Files:
	redhat-rpm-config.spec 
Added Files:
	redhat-rpm-config-9.0.3-jars-with-spaces.patch 
Log Message:
* Wed Aug 12 2009 Adam Jackson <ajax at redhat.com> 9.0.3-14
- redhat-rpm-config-9.0.3-jars-with-spaces.patch: Handle repacking jars
  whose filenames contain spaces. (#461854)


redhat-rpm-config-9.0.3-jars-with-spaces.patch:
 brp-java-repack-jars |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- NEW FILE redhat-rpm-config-9.0.3-jars-with-spaces.patch ---
--- /usr/lib/rpm/redhat/brp-java-repack-jars.orig	2009-04-20 09:56:37.000000000 -0600
+++ /usr/lib/rpm/redhat/brp-java-repack-jars	2009-04-20 10:01:14.000000000 -0600
@@ -38,8 +38,8 @@
 		rm -f $j
 		
 		# Create the directories first.
-		for d in `find -type d | LC_ALL=C sort`; do
-            		mkdir -p $JARDIR/$d
+		find -type d | LC_ALL=C sort | while read d; do
+            		mkdir -p "$JARDIR/$d"
         	done 
 
 		# Get the modtime from the newest ChangeLog. If the project
@@ -64,14 +64,14 @@
 
 		# move the contents over to the a new directory in order and set
 		# the times. 
-		for f in `find -type f | LC_ALL=C sort`; do 
-            		cp $f $JARDIR/$f
-            		touch --date="$DATE" $JARDIR/$f
+		find -type f | LC_ALL=C sort | while read f; do 
+            		cp "$f" "$JARDIR/$f"
+            		touch --date="$DATE" "$JARDIR/$f"
         	done
 		popd > /dev/null
 
 		# Set the times of the directories.
-		touch --date="$DATE" `find $JARDIR -type d`
+		find $JARDIR -type d -print0 | xargs -0 touch --date="$DATE"
 
 		# make the jar
 		pushd $JARDIR > /dev/null


Index: redhat-rpm-config.spec
===================================================================
RCS file: /cvs/pkgs/rpms/redhat-rpm-config/devel/redhat-rpm-config.spec,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -p -r1.69 -r1.70
--- redhat-rpm-config.spec	27 Jul 2009 02:55:19 -0000	1.69
+++ redhat-rpm-config.spec	12 Aug 2009 17:47:31 -0000	1.70
@@ -1,7 +1,7 @@
 Summary: Red Hat specific rpm configuration files.
 Name: redhat-rpm-config
 Version: 9.0.3
-Release: 13%{?dist}
+Release: 14%{?dist}
 # No version specified.
 License: GPL+
 Group: Development/System
@@ -13,6 +13,7 @@ Patch3: redhat-rpm-config-9.0.3-F-11-Str
 Patch4: redhat-rpm-config-9.0.3-F-12-Architectures.patch
 Patch5: redhat-rpm-config-9.0.3-always_delete_buildroot_at_install.patch
 Patch6:	redhat-rpm-config-9.0.3-xz-payload.patch
+Patch7: redhat-rpm-config-9.0.3-jars-with-spaces.patch
 BuildArch: noarch
 Requires: mktemp
 BuildRoot: %{_tmppath}/%{name}-root
@@ -29,6 +30,7 @@ Red Hat specific rpm configuration files
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p5
 
 %install
 make DESTDIR=${RPM_BUILD_ROOT} install
@@ -41,6 +43,10 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_prefix}/lib/rpm/redhat
 
 %changelog
+* Wed Aug 12 2009 Adam Jackson <ajax at redhat.com> 9.0.3-14
+- redhat-rpm-config-9.0.3-jars-with-spaces.patch: Handle repacking jars
+  whose filenames contain spaces. (#461854)
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 9.0.3-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list