|
I figured it out. The %post target was missing the 'then'. I changed the line from: %post if which tic>/dev/null 2>&1; tic %{_datadir}/%{name}/5250.terminfo >/dev/null 2>&1; fi to: %post if which tic>/dev/null 2>&1; then tic %{_datadir}/%{name}/5250.terminfo >/dev/null 2>&1; fi And committed the changes to CVS. On Mon, 13 May 2002, Scott Klement wrote: > > On Mon, 13 May 2002, Scott Klement wrote: > > > > Anyway, this works for me and should allow an up to date spec file to be > > > created for each release (since version info is generated from the > > > configure.in). > > > > Thanks, Steve... I'll give it a try and commit it to CVS. I've never > > made an RPM before... looks interesting :) > > Okay, when I try to install my newly created RPM, here's what happens: > > [root@bcserv4 i386]# rpm -i tn5250-0.16.4-1.i386.rpm > /var/tmp/rpm-tmp.89778: line 1: syntax error near unexpected token `fi' > /var/tmp/rpm-tmp.89778: line 1: `if which tic>/dev/null 2>&1; tic > /usr/share/tn5250/5250.terminfo >/dev/null 2>&1; fi > error: execution of %post scriptlet from tn5250-0.16.4-1 failed, exit status 2 > > And now that I've done that, I get this: > > [root@bcserv4 i386]# ls /usr/local/bin/tn5250 > ls: /usr/local/bin/tn5250: No such file or directory > [root@bcserv4 i386]# rpm -i tn5250-0.16.4-1.i386.rpm > package tn5250-0.16.4-1 is already installed > [root@bcserv4 i386]# rpm -e tn5250-0.16.4-1.i386.rpm > error: package tn5250-0.16.4-1.i386.rpm is not installed > > I have no idea how to fix this :) (I know nothing about RPMs) >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.