Rpmbuild spec file for virtual rpm - removing obsolete packages - CentOS/RHEL 5.3
I have put together rpm's for OpenOffice.org 3.1.1 for CentOS/RHEL 5. Everything works as expected.
I also created "ooo3-base", virtual rpm package that depends on all needed rpm's, so that installation is much easier. This is especially necessary because I additionally created "ooo3-en-US" "ooo3-SR" and "ooo3-SH" for separate language files, and they depend on "ooo3-base" so everything installs fine if there is no OpenOffice.org version 2(.3.0). Problem arises when there is already older OpenOffice.org installed (version 2.3.0), since my rpm's do not have Obsoletes set.
I am now trying to add Obsoletes to ooo3-base pockage, but there are problems.
For now, I was adding lines like this:
Obsoletes: openoffice.org-core < 1:3.0.0
But when trying to install that package, it only says something like "replacing" obsolete packages, but it does not select old packages for removal.
Is this normal behavior, or is there a way to remove them at the same time I am installing new packages?
Last edited by DrLove73; 10-08-2009 at 10:52 AM.