Simplify building patch lists for rpm specs
diff --git a/rpm/SPECS/Makefile b/rpm/SPECS/Makefile
index 17d1fb6..9f2baa0 100644
--- a/rpm/SPECS/Makefile
+++ b/rpm/SPECS/Makefile
@@ -152,10 +152,7 @@
patch_files=`find $(CONTRIB)/src/nginx$(BASE_SUFFIX)/ \
-type f -name '*.patch' -printf "%f\n" | sort`; \
patches=`for i in $$patch_files; do echo $$i; done | \
- nl -v0 -w 1 -s": " | \
- sed -n -e ':a' \
- -e 's/^/Patch/' -e '1h;1!H;' -e '$$!{n;ba}' \
- -e 'x' -e "s/$$/$$CR/; s/\\n/$$CR/g" -e 'p' `; \
+ awk '{ printf "Patch%03d: %s\n", NR, $$0 }'`; \
for patch in $$patch_files; do \
cp -v $(CONTRIB)/src/nginx$(BASE_SUFFIX)/$$patch $(SRCPATH) ; \
done; \