|
Panu Matilainen |
62b405 |
diff --git a/build/files.c b/build/files.c
|
|
Panu Matilainen |
62b405 |
index f3cf261..e1230a5 100644
|
|
Panu Matilainen |
62b405 |
--- a/build/files.c
|
|
Panu Matilainen |
62b405 |
+++ b/build/files.c
|
|
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 |
62b405 |
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
|
|
Panu Matilainen |
62b405 |
index c000780..70b20a8 100644
|
|
Panu Matilainen |
62b405 |
--- a/build/parsePreamble.c
|
|
Panu Matilainen |
62b405 |
+++ b/build/parsePreamble.c
|
|
Panu Matilainen |
62b405 |
@@ -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 |
62b405 |
@@ -501,6 +503,7 @@ static int handlePreambleTag(rpmSpec spec, Package pkg, rpmTag tag,
|
|
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 |
62b405 |
@@ -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 |
62b405 |
diff --git a/lib/rpmtag.h b/lib/rpmtag.h
|
|
Panu Matilainen |
62b405 |
index a0bbd79..7a3aa01 100644
|
|
Panu Matilainen |
62b405 |
--- a/lib/rpmtag.h
|
|
Panu Matilainen |
62b405 |
+++ b/lib/rpmtag.h
|
|
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 |
62b405 |
diff --git a/macros.in b/macros.in
|
|
Panu Matilainen |
62b405 |
index 158ae34..ee10586 100644
|
|
Panu Matilainen |
62b405 |
--- a/macros.in
|
|
Panu Matilainen |
62b405 |
+++ b/macros.in
|
|
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 |
62b405 |
diff --git a/tests/rpmgeneral.at b/tests/rpmgeneral.at
|
|
Panu Matilainen |
62b405 |
index d6f11a5..4956780 100644
|
|
Panu Matilainen |
62b405 |
--- a/tests/rpmgeneral.at
|
|
Panu Matilainen |
62b405 |
+++ b/tests/rpmgeneral.at
|
|
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
|