On Tuesday May 22 2007, Dries Verachtert wrote:
On Tuesday May 22 2007, Marcus Rueckert wrote:
On 2007-05-22 14:30:42 +0200, Dries Verachtert wrote:
[ discussion about a way to add something to the release tag ]
Hello, If i understand the code correctly, then the release tag is changed by the perl script 'substitutedeps', called from the bash script 'build'. The following small patch would allow some very minimal support for a suffix for the release tag (patch made in the dir trunk/buildservice/src/build/: Index: substitutedeps =================================================================== --- substitutedeps (revision 1692) +++ substitutedeps (working copy) @@ -80,7 +80,8 @@ next; } - $l =~ s/^(Release:\s*).*/$1$release/i if $release; + my $releasesuffixtag = "%{?releasesuffix}"; + $l =~ s/^(Release:\s*).*/$1$release$releasesuffixtag/i if $release; if (!$used || ($l !~ /^BuildRequires:/i)) { print F "$l\n"; Attention: i could only test this on some dummy files in /tmp :-) The packager still needs to add something like '%define releasesuffix .bla' explicitly in his spec file, so the normal behaviour doesn't change. Maybe later some functionality could be added which allows the user to add defines (key,value pairs) to a spec file or a group of spec files... Would a patch like this get accepted? kind regards, Dries --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org