diff --git a/ghostscript.changes b/ghostscript.changes index fbffe44..062ee30 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Mar 16 10:27:01 CET 2012 - jsmeix@suse.de + +- Unfortunately ghostscript-library.spec and ghostscript-mini.spec + have unversioned "Provides: ghostscript" and for RPM this means + that both ghostscript-library and ghostscript-mini + provide any version of ghostscript. Therefore any non-matching + version of ghostscript-library and ghostscript-mini fulfill + any RPM requirement for ghostscript in the ghostscript-x11 + and ghostscript-devel sub-packages which is wrong. + Therefore explicit conflicts with ghostscript-library and + ghostscript-mini are specified in the ghostscript-x11 + and ghostscript-devel sub-packages to avoid the mess. + ------------------------------------------------------------------- Thu Mar 15 16:43:26 CET 2012 - jsmeix@suse.de diff --git a/ghostscript.spec b/ghostscript.spec index 2fabab7..559cfbe 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -207,6 +207,20 @@ under the X Window System. License: GPL-3.0 Summary: Development files for Ghostscript Requires: ghostscript = %{version} +# Unfortunately ghostscript-library.spec and ghostscript-mini.spec have +# an unversioned "Provides: ghostscript" and for RPM this means that both +# ghostscript-library and ghostscript-mini provide any version of "ghostscript" +# so that any version of ghostscript-library and ghostscript-mini fulfills +# the above versioned requirement which is wrong and therefore an explicit conflicts +# is used here to avoid the mess. +# Above the ghostscript main package "Provides: ghostscript-library = version" so that +# versioned conflicts are needed to avoid a conflict with the ghostscript main package. +# The RPM documentation http://www.rpm.org/max-rpm/s1-rpm-depend-manual-dependencies.html +# and /usr/share/doc/packages/rpm/manual/dependencies (in rpm-4.8.0 in openSUSE 11.4) +# does not show a comparison operator for "not equal" so that two conflicts are used: +Conflicts: ghostscript-library < %{version} +Conflicts: ghostscript-library > %{version} +Conflicts: ghostscript-mini Group: Development/Libraries/C and C++ %description devel