rpm/disttag-macro.diff
2010-03-26 10:56:28 +00:00

30 lines
1.1 KiB
Diff

--- ./build/parsePreamble.c.orig 2010-03-25 14:56:24.000000000 +0000
+++ ./build/parsePreamble.c 2010-03-25 15:20:35.000000000 +0000
@@ -312,6 +312,7 @@ static struct optionalTag {
{ RPMTAG_PACKAGER, "%{packager}" },
{ RPMTAG_DISTRIBUTION, "%{distribution}" },
{ RPMTAG_DISTURL, "%{disturl}" },
+ { RPMTAG_DISTTAG, "%{disttag}" },
{ RPMTAG_BUGURL, "%{bugurl}" },
{ -1, NULL }
};
--- ./macros.in.orig 2010-03-25 15:18:50.000000000 +0000
+++ ./macros.in 2010-03-25 15:19:25.000000000 +0000
@@ -279,6 +279,16 @@ package or when debugging this package.\
#
#%bugurl
+# Configurable distribution tag, same as Disttag: tag in a specfile.
+# The tag will be used to supply reliable information to tools like
+# rpmfind.
+#
+# Note: You should not configure with disturl (or build packages with
+# the Disttag: tag) unless you are willing to supply content in a
+# yet-to-be-determined format at the tag specified.
+#
+#%disttag
+
# Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files
# marked as %doc should be installed.
#%_excludedocs