24 lines
762 B
Diff
24 lines
762 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-0.48.orig/quilt/scripts/inspect.in
|
||
|
+++ quilt-0.48/quilt/scripts/inspect.in
|
||
|
@@ -67,6 +67,14 @@ trap "rm -rf $tmpdir" EXIT
|
||
|
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
|
||
|
if [ -n "$verbose" ]
|
||
|
then
|