[opensuse-buildservice] Build Repository name added to resulting filename?
Hi, when building using spec files or when using dsc files, is there a possibility to have the 'Build Repository' name added to the resulting .rpm or .deb filename? For example: Rather than glade-2.12.1-143.7.i586.rpm it should be named: glade-2.12.1-143.7.SUSE_Linux_10.1.i586.rpm (or similar) The reason I am asking is: When I build against various repositories and then download the built files for example to my home dir they have all the same name. Of course I could change/add the reposi name when downloading but that is annoying with more than a few packages. Help is much appreciated. many thanks regards Chris -- http://www.acurana.de/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-03-25 22:43:38 +0100, Christopher Lang wrote:
when building using spec files or when using dsc files, is there a possibility to have the 'Build Repository' name added to the resulting .rpm or .deb filename?
For example: Rather than glade-2.12.1-143.7.i586.rpm
it should be named:
glade-2.12.1-143.7.SUSE_Linux_10.1.i586.rpm
(or similar)
no it shouldnt. but see below.
The reason I am asking is: When I build against various repositories and then download the built files for example to my home dir they have all the same name.
Of course I could change/add the reposi name when downloading but that is annoying with more than a few packages.
Help is much appreciated.
many thanks
http://lists.opensuse.org/opensuse-buildservice/2007-06/msg00062.html darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, I went through the hint at:
http://lists.opensuse.org/opensuse-buildservice/2007-06/msg00062.html
but couldn't get it to work. Playing with: Release: <CI_CNT>.<B_CNT>%%{?releasesuffix} in the conf file didn't do much. I looked at the corresponding bs code but I have to admit, I am more a C++ than a Perl guy ;-) . A working example package on the build server or a working example 'Release: ...' line would be nice! many thanks Chris Am Mittwoch 26 März 2008 00:26:22 schrieb Marcus Rueckert:
On 2008-03-25 22:43:38 +0100, Christopher Lang wrote:
when building using spec files or when using dsc files, is there a possibility to have the 'Build Repository' name added to the resulting .rpm or .deb filename?
For example: Rather than glade-2.12.1-143.7.i586.rpm
it should be named:
glade-2.12.1-143.7.SUSE_Linux_10.1.i586.rpm
(or similar)
no it shouldnt. but see below.
The reason I am asking is: When I build against various repositories and then download the built files for example to my home dir they have all the same name.
Of course I could change/add the reposi name when downloading but that is annoying with more than a few packages.
Help is much appreciated.
many thanks
http://lists.opensuse.org/opensuse-buildservice/2007-06/msg00062.html
darix
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Christopher Lang napsal(a):
Hi,
I went through the hint at:
http://lists.opensuse.org/opensuse-buildservice/2007-06/msg00062.html
but couldn't get it to work.
Playing with: Release: <CI_CNT>.<B_CNT>%%{?releasesuffix}
in the conf file didn't do much.
It probably did work, but didn't do what you expected. Release: <CI_CNT>.<B_CNT>%%{?releasesuffix} sets the Release: line in the spec file to something like Release: 12.34%{?releasesuffix} which expands to plain 'Release: 12.34' unless there's a releasesuffix defined. If you want to include the repository name, use the %_repository macro. hth, Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, thanks for the reply. Yes, it did work as you described, but it it does not produce the desired output: For example: Release: _12.34%_repository%%{?releasesuffix} produces this output: my-kmp-smp-1.2.2_2.6.16.13_4-_12.34standard.i586.rpm Instead of "standard" it should say "SUSE_Linux_10.1". Might be a bug. If you think so too I'll put in in bugzilla. thanks Chris Am Dienstag 06 Mai 2008 21:44:05 schrieb Michal Marek:
Christopher Lang napsal(a):
Hi,
I went through the hint at:
http://lists.opensuse.org/opensuse-buildservice/2007-06/msg00062.html
but couldn't get it to work.
Playing with: Release: <CI_CNT>.<B_CNT>%%{?releasesuffix}
in the conf file didn't do much.
It probably did work, but didn't do what you expected. Release: <CI_CNT>.<B_CNT>%%{?releasesuffix} sets the Release: line in the spec file to something like
Release: 12.34%{?releasesuffix}
which expands to plain 'Release: 12.34' unless there's a releasesuffix defined. If you want to include the repository name, use the %_repository macro.
hth, Michal
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Christopher Lang
-
Marcus Rueckert
-
Michal Marek