[opensuse-buildservice] How to easily create OBS package from specfile
Hi list, I have some prepared packages (i.e. specfile & tarball) that build OK locally. Now I'd like to add them to an OBS project. When I use osc meta pkg -e project-name package-name, I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile? Or am I simply supposed to copy & paste it? (BTW what takes precedence - specfile metadata of 'obs metadata') ? TIA -- Best regards / s pozdravem Petr Uzel --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: petr.uzel@suse.cz Lihovarská 1060/12 tel: +420 284 028 964 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 07/29/2008 05:07 PM, Petr Uzel wrote:
I have some prepared packages (i.e. specfile & tarball) that build OK locally. Now I'd like to add them to an OBS project. When I use
osc meta pkg -e project-name package-name,
I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile?
While we're at it: and the URL too, please? :)
Or am I simply supposed to copy & paste it? (BTW what takes precedence - specfile metadata of 'obs metadata') ?
To my knowledge they are separate - the spec file metadata is used for the RPM packages, while the obs metadata is used for the presentation on the build service web pages. But I may be wrong... Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer <lenz@grimmer.com> -o) [ICQ: 160767607 | Jabber: LenZGr@jabber.org] /\\ http://www.lenzg.org/ V_V
Petr Uzel napsal(a):
osc meta pkg -e project-name package-name,
I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile?
run 'osc help' and look for the commandwiththelongestname ;) (ok, it's "updatepacmetafromspec") Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dne Tuesday 29 of July 2008 21:47:11 Michal Marek napsal(a):
Petr Uzel napsal(a):
osc meta pkg -e project-name package-name,
I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile?
run 'osc help' and look for the commandwiththelongestname ;)
(ok, it's "updatepacmetafromspec")
This is what I was looking for, thanks! P. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 07/29/2008 09:47 PM, Michal Marek wrote:
I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile?
run 'osc help' and look for the commandwiththelongestname ;)
(ok, it's "updatepacmetafromspec")
And with the patch attached it even updates the URL, based on the "URL:" tag from the spec file :) The patch also fixes a small bug in the spec file parsing. If a string after a given tag contains a colon (like an URL), it would be truncated. Can you please make sure this patch gets applied? Or should I rather submit a bug report about this? Thanks! Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer <lenz@grimmer.com> -o) [ICQ: 160767607 | Jabber: LenZGr@jabber.org] /\\ http://www.lenzg.org/ V_V
On 2008-08-01 14:54:47 +0200, Lenz Grimmer wrote:
Hi,
On 07/29/2008 09:47 PM, Michal Marek wrote:
I'm asked to fill in the package title and description. Couldn't this step be avoided as the description and title are already available in the package specfile?
run 'osc help' and look for the commandwiththelongestname ;)
(ok, it's "updatepacmetafromspec")
And with the patch attached it even updates the URL, based on the "URL:" tag from the spec file :)
The patch also fixes a small bug in the spec file parsing. If a string after a given tag contains a colon (like an URL), it would be truncated.
Can you please make sure this patch gets applied? Or should I rather submit a bug report about this? Thanks!
I just applied a slightly modified version of your patch. Thanks! Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Lenz Grimmer
-
Marcus Hüwe
-
Michal Marek
-
Petr Uzel