[opensuse-packaging] pre_checkin.sh and prepare_spec
hi, in the past it was enough to copy your spec and tweak the name field. prepare_spec grabbed all other informations from the pdb and replaced the incorrect values for e.g. group/summary/description. this no longer happens and you have to take care in your pre_checkin.sh scripts or we need to find some kind of other replacement for this tracked under https://bugzilla.novell.com/show_bug.cgi?id=514928 with kind regards, darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Samstag 20 Juni 2009 schrieb Marcus Rueckert:
hi,
in the past it was enough to copy your spec and tweak the name field. prepare_spec grabbed all other informations from the pdb and replaced the incorrect values for e.g. group/summary/description.
this no longer happens and you have to take care in your pre_checkin.sh scripts or we need to find some kind of other replacement for this
tracked under https://bugzilla.novell.com/show_bug.cgi?id=514928
I fixed this for the pre_checkin.sh in bundle-lang-common now in having a little perl script that I call like this: perl update_spec.pl oldfile attributes > newfile this reads Summary, Description, Group and License out of the attributes file and updates the spec file. The attributes file I created from pdb content. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2009-06-22 16:47:51 +0200, Stephan Kulow wrote:
Am Samstag 20 Juni 2009 schrieb Marcus Rueckert:
hi,
in the past it was enough to copy your spec and tweak the name field. prepare_spec grabbed all other informations from the pdb and replaced the incorrect values for e.g. group/summary/description.
this no longer happens and you have to take care in your pre_checkin.sh scripts or we need to find some kind of other replacement for this
tracked under https://bugzilla.novell.com/show_bug.cgi?id=514928
I fixed this for the pre_checkin.sh in bundle-lang-common now in having a little perl script that I call like this:
perl update_spec.pl oldfile attributes > newfile
this reads Summary, Description, Group and License out of the attributes file and updates the spec file. The attributes file I created from pdb content.
can you add it to the bug please? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Stephan Kulow <coolo@suse.de> writes:
I fixed this for the pre_checkin.sh in bundle-lang-common now in having a little perl script that I call like this:
perl update_spec.pl oldfile attributes > newfile
this reads Summary, Description, Group and License out of the attributes file and updates the spec file. The attributes file I created from pdb content.
Because I'm not that good with querying the pdb, here are some awk bits to create the attributes file from the old spec file (multi-line processing is not perfect...): awk -f create-attr.awk *.spec > attributes /^Name:/ { name=$2 nname = name next} in_desc == 1 && /^%/ { in_desc = 0 sub (/^ */, "", line) printf ("+description.%s\n",nname) print line printf ("-description.%s\n",nname) line = "" } in_desc == 1 { line = line " " $0 next } /^%description/ { in_desc = 1 next } /^%package/ { if ( $2 == "-n" ) nname = $3 else nname = name "-" $2 next } /^Group:/ { group = $2 printf ("group.%s %s\n", nname,group) next } /^License:/ { sub(/License:/, "", $0) printf ("license.%s %s\n", nname,$0 ) next} /^Summary:/ { sub(/Summary:/, "", $0) printf ("summary.%s %s\n", nname,$0 ) next} -- Karl Eichwalder R&D / Documentation SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
participants (3)
-
Karl Eichwalder
-
Marcus Rueckert
-
Stephan Kulow