söndagen den 16 februari 2003 16.42 skrev Tibor Pittich: > On 16. feb 2003 16:19, Oden Eriksson wrote: > > söndagen den 16 februari 2003 16.02 skrev Tibor Pittich: > > > On 16. feb 2003 15:53, Oden Eriksson wrote: > > > > > there is a excellent spec-skeleten from Han: > > > > > http://www.xs4all.nl/~hanb/software/rpms/skel.spec > > > > > > > > Thank you. However I'm having problems with this... The menu item > > > > never shows up in my menu... What's wrong with this: > > > > > > > > cat > %{buildroot}/%{_menudir}/xvocp << EOF > > > > ?package(xVOCP): \ > > > > > > is it present xvocp file in yor /usr/lib/menu directory after install? > > > if yes, then you must regenerate menu system calling update-menus > > > program, or check your %post resp. %postun sections into spec file.. > > > > http://oe.ods.org/VOCP.spec > > sorry, i don't have time to serious debugging your spec, but i ask you if > is menu file present after install in /usr/lib/menu ....
Yes, it's there... rpm -ql VOCP > http://oe.ods.org/VOCP.txt > but i see another problem in your spec with: > %_postun_userdel vocp > because i played with this macro lately i found, that this can't be > done, because helper script needed three parameters, otherwise fails: > > /usr/share/rpm-helper/del-user > if [ $# != 3 ]; then > echo "usage: $0 <pkg name> <num installed> <user name>" 1>&2 > exit 1 > fi > > pkg=$1 # name of the package > num=$2 # number of packages installed > name=$3 # name of the user Aha, thank you. But it looks like this in most of the Mandrake spec files I have seen..., well very well, it's fixed now http://oe.ods.org/VOCP.spec -- Regards // Oden Eriksson, Deserve-IT.com