SHA256
1
0
forked from pool/quilt
quilt/suse-workaround-pseudo-release.patch
Jean Delvare 2fcc003ecd - Update to version 0.64:
o Performance: Several optimizations
  o Test suite: Several fixes and coverage improvements
  o Test suite: Run the tests in predictable order
  o files: Add support for unapplied patches
  o graph: Check for graphviz availability
  o mail: Remove procmail dependency
  o push: Do not use interactive mode with -f
  o Obsoletes dont-substitute-release.patch
  o Obsoletes hackweek-11-*.patch
  o Obsoletes inspect-skip-version-check.patch
  o Obsoletes pop-add-auto-refresh.patch
  o Obsoletes push-add-auto-refresh.patch
  o Obsoletes quilt-check-modified-series-rearm.patch
  o Obsoletes quilt-check-modified-series.patch
  o Obsoletes quilt-el-fix-patch-select-completion.patch
  o Obsoletes quilt-el-fix-tramp-support.patch
  o Obsoletes quilt-format-options-pass-through.patch
  o Obsoletes setup-check-for-rpmbuild.patch
  o Obsoletes setup-fix-tar-with-long-options.patch
  o Obsoletes setup-skip-version-check.patch
- Refresh suse-workaround-pseudo-release.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=99
2015-02-16 15:03:39 +00:00

28 lines
845 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/setup.in | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -230,6 +230,14 @@ inspect()
mkdir -p $tmpdir/build
fi
+ # 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" ]