SHA256
1
0
forked from pool/quilt
quilt/suse-workaround-pseudo-release.patch
Jean Delvare 08912b45d9 - update to 0.51
o Obsoletes change-docdir-definition.patch.
  o Obsoletes fix-inspect.patch.
  o Obsoletes inspect-check-if-wrapper-executable.patch.
  o Obsoletes inspect-remap-outputs.patch.
  o Obsoletes mail-fix-delivery-address-checking.patch.
  o Obsoletes patchfns-non-exec.patch.
  o Obsoletes substitute-docdir-in-man-page.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=50
2012-01-29 19:26:04 +00:00

28 lines
925 B
Diff

Upstream: Never
Old Suse spec files have a pseudo release string which uses characters
newer versions of rpmbuild don't like. Filter them out to make rpmbuild
happy again. Packages in openSUSE 11.4 and later no longer need this.
---
quilt/scripts/inspect.in | 8 ++++++++
1 file changed, 8 insertions(+)
--- quilt-0.51.orig/quilt/scripts/inspect.in
+++ quilt-0.51/quilt/scripts/inspect.in
@@ -67,6 +67,14 @@ add_exit_handler "rm -rf $tmpdir"
mkdir -p $tmpdir/build
mkdir -p $tmpdir/bin
+# Older versions of Suse packages have a symbolic release number, and rpmbuild
+# won't like that, so change it to something compliant.
+if grep -q '^Release:.*[<>]' "$specdir/$specfile"
+then
+ sed -e '/^Release:/s/[<>]//g' < "$specdir/$specfile" > $tmpdir/"$specfile"
+ specdir=$tmpdir
+fi
+
# Redirect file descriptors
# 5 is used in verbose mode, 4 in non-verbose mode, and 2 for both (real errors)
if [ -n "$verbose" ]