forked from pool/quilt
ace087fa09
* Call pager with original LANG environment variable * Consistently complain early if no series file is found * Tighten the patch format parsing * Reuse the shell (performance) * Document the series file format further * Document that quilt loads /etc/quilt.quiltrc * series: Minor optimizations * setup: Don't obey the settings of any englobing .pc * setup: Default to fast mode * quilt.el: Fix documentation of quilt-pc-directory * quilt.el: Load /etc/quilt.quiltrc if ~/.quiltrc doesn't exist * quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is set * Obsoletes backup-files-restore-symbolic-links.patch * Obsoletes inspect-handle-link-in-path.patch - Refresh quilt-support-vimdiff.patch (offsets only) - Refresh suse-workaround-pseudo-release.patch (offsets only) OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=124
28 lines
933 B
Diff
28 lines
933 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
|
|
@@ -213,6 +213,14 @@ inspect()
|
|
ln -s $QUILT_DIR/scripts/inspect-wrapper $tmpdir/bin/unzip
|
|
ln -s $QUILT_DIR/scripts/inspect-wrapper $tmpdir/bin/7z
|
|
|
|
+ # 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" ]
|