|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/build/files.c.bugurl rpm-4.7.1/build/files.c
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/build/files.c.bugurl 2009-07-21 09:42:51.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/build/files.c 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
62b405 |
@@ -1977,6 +1977,7 @@ static const rpmTag sourceTags[] = {
|
|
Panu Matilainen |
62b405 |
RPMTAG_CHANGELOGNAME,
|
|
Panu Matilainen |
62b405 |
RPMTAG_CHANGELOGTEXT,
|
|
Panu Matilainen |
62b405 |
RPMTAG_URL,
|
|
Panu Matilainen |
62b405 |
+ RPMTAG_BUGURL,
|
|
Panu Matilainen |
62b405 |
HEADER_I18NTABLE,
|
|
Panu Matilainen |
62b405 |
0
|
|
Panu Matilainen |
62b405 |
};
|
|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/build/parsePreamble.c.bugurl rpm-4.7.1/build/parsePreamble.c
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/build/parsePreamble.c.bugurl 2009-06-23 14:40:57.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/build/parsePreamble.c 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
224c3b |
@@ -32,6 +32,7 @@ static const rpmTag copyTagsDuringParse[
|
|
Panu Matilainen |
62b405 |
RPMTAG_CHANGELOGTEXT,
|
|
Panu Matilainen |
62b405 |
RPMTAG_PREFIXES,
|
|
Panu Matilainen |
62b405 |
RPMTAG_DISTTAG,
|
|
Panu Matilainen |
62b405 |
+ RPMTAG_BUGURL,
|
|
Panu Matilainen |
62b405 |
0
|
|
Panu Matilainen |
62b405 |
};
|
|
Panu Matilainen |
62b405 |
|
|
Panu Matilainen |
62b405 |
@@ -307,6 +308,7 @@ static struct optionalTag {
|
|
Panu Matilainen |
62b405 |
{ RPMTAG_PACKAGER, "%{packager}" },
|
|
Panu Matilainen |
62b405 |
{ RPMTAG_DISTRIBUTION, "%{distribution}" },
|
|
Panu Matilainen |
62b405 |
{ RPMTAG_DISTURL, "%{disturl}" },
|
|
Panu Matilainen |
62b405 |
+ { RPMTAG_BUGURL, "%{bugurl}" },
|
|
Panu Matilainen |
62b405 |
{ -1, NULL }
|
|
Panu Matilainen |
62b405 |
};
|
|
Panu Matilainen |
62b405 |
|
|
Panu Matilainen |
224c3b |
@@ -501,6 +503,7 @@ static int handlePreambleTag(rpmSpec spe
|
|
Panu Matilainen |
62b405 |
}
|
|
Panu Matilainen |
62b405 |
case RPMTAG_URL:
|
|
Panu Matilainen |
62b405 |
case RPMTAG_DISTTAG:
|
|
Panu Matilainen |
62b405 |
+ case RPMTAG_BUGURL:
|
|
Panu Matilainen |
62b405 |
SINGLE_TOKEN_ONLY;
|
|
Panu Matilainen |
62b405 |
/* These macros are for backward compatibility */
|
|
Panu Matilainen |
62b405 |
if (tag == RPMTAG_VERSION) {
|
|
Panu Matilainen |
224c3b |
@@ -734,6 +737,7 @@ static struct PreambleRec_s preambleList
|
|
Panu Matilainen |
62b405 |
{RPMTAG_AUTOPROV, 0, 0, 0, "autoprov"},
|
|
Panu Matilainen |
62b405 |
{RPMTAG_DOCDIR, 0, 0, 0, "docdir"},
|
|
Panu Matilainen |
62b405 |
{RPMTAG_DISTTAG, 0, 0, 0, "disttag"},
|
|
Panu Matilainen |
62b405 |
+ {RPMTAG_BUGURL, 0, 0, 0, "bugurl"},
|
|
Panu Matilainen |
62b405 |
/* LCL: can't add null annotation */
|
|
Panu Matilainen |
62b405 |
{0, 0, 0, 0, 0}
|
|
Panu Matilainen |
62b405 |
};
|
|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/lib/rpmtag.h.bugurl rpm-4.7.1/lib/rpmtag.h
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/lib/rpmtag.h.bugurl 2009-06-23 14:40:57.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/lib/rpmtag.h 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
62b405 |
@@ -282,6 +282,7 @@ typedef enum rpmTag_e {
|
|
Panu Matilainen |
62b405 |
RPMTAG_LONGSIZE = 5009, /* l */
|
|
Panu Matilainen |
62b405 |
RPMTAG_FILECAPS = 5010, /* s[] */
|
|
Panu Matilainen |
62b405 |
RPMTAG_FILEDIGESTALGO = 5011, /* i file digest algorithm */
|
|
Panu Matilainen |
62b405 |
+ RPMTAG_BUGURL = 5012, /* s */
|
|
Panu Matilainen |
62b405 |
|
|
Panu Matilainen |
62b405 |
RPMTAG_FIRSTFREE_TAG /*!< internal */
|
|
Panu Matilainen |
62b405 |
} rpmTag;
|
|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/macros.in.bugurl rpm-4.7.1/macros.in
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/macros.in.bugurl 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/macros.in 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
62b405 |
@@ -264,6 +264,12 @@ package or when debugging this package.\
|
|
Panu Matilainen |
62b405 |
#
|
|
Panu Matilainen |
62b405 |
#%disturl
|
|
Panu Matilainen |
62b405 |
|
|
Panu Matilainen |
62b405 |
+# Configurable bug URL, same as BugURL: tag in a specfile.
|
|
Panu Matilainen |
62b405 |
+# The URL will be used to supply reliable information to where
|
|
Panu Matilainen |
62b405 |
+# to file bugs.
|
|
Panu Matilainen |
62b405 |
+#
|
|
Panu Matilainen |
62b405 |
+#%bugurl
|
|
Panu Matilainen |
62b405 |
+
|
|
Panu Matilainen |
62b405 |
# Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files
|
|
Panu Matilainen |
62b405 |
# marked as %doc should be installed.
|
|
Panu Matilainen |
62b405 |
#%_excludedocs
|
|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/tests/rpmgeneral.at.bugurl rpm-4.7.1/tests/rpmgeneral.at
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/tests/rpmgeneral.at.bugurl 2009-06-23 14:40:59.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/tests/rpmgeneral.at 2009-09-15 11:37:45.000000000 +0300
|
|
Panu Matilainen |
62b405 |
@@ -71,6 +71,7 @@ AT_CHECK([run rpm --querytags],[0],
|
|
Panu Matilainen |
62b405 |
[ARCH
|
|
Panu Matilainen |
62b405 |
ARCHIVESIZE
|
|
Panu Matilainen |
62b405 |
BASENAMES
|
|
Panu Matilainen |
62b405 |
+BUGURL
|
|
Panu Matilainen |
62b405 |
BUILDARCHS
|
|
Panu Matilainen |
62b405 |
BUILDHOST
|
|
Panu Matilainen |
62b405 |
BUILDTIME
|
|
Panu Matilainen |
224c3b |
diff -up rpm-4.7.1/tests/rpmtests.bugurl rpm-4.7.1/tests/rpmtests
|
|
Panu Matilainen |
224c3b |
--- rpm-4.7.1/tests/rpmtests.bugurl 2009-09-15 11:38:00.000000000 +0300
|
|
Panu Matilainen |
224c3b |
+++ rpm-4.7.1/tests/rpmtests 2009-09-15 11:38:10.000000000 +0300
|
|
Panu Matilainen |
224c3b |
@@ -2165,6 +2165,7 @@ at_func_diff_devnull "$at_stderr" || at_
|
|
Panu Matilainen |
224c3b |
echo >>"$at_stdout"; $as_echo "ARCH
|
|
Panu Matilainen |
224c3b |
ARCHIVESIZE
|
|
Panu Matilainen |
224c3b |
BASENAMES
|
|
Panu Matilainen |
224c3b |
+BUGURL
|
|
Panu Matilainen |
224c3b |
BUILDARCHS
|
|
Panu Matilainen |
224c3b |
BUILDHOST
|
|
Panu Matilainen |
224c3b |
BUILDTIME
|