|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
The dependencies in RPM are only meaningful when it comes to
packages (and virtual resources) that are in the RPM DB. If you say "Requires: libQtCore.so.4", RPM thinks there is another RPM package called libQtCore.so.4 that has to be installed prior to this and it checks its database and it doesn't find it, hence the error. What you really want is file dependency. I am not sure if RPM supports that, but you can simply put something like this in your "%pre" section: ########### %pre if [ ! -e /usr/lib/libQtCore.so.4 ] then echo "ERROR: /usr/lib/libQtCore.so.4 doesn't exist! Bailing out." exit 1 fi # end of %pre ########### You can write as much script as you want in the %pre section and do all sorts of thing before your package is actually installed. I hope this helps, -ramin On 7/14/2011 10:02 AM, kali c wrote: Hi, |
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list