Chris Wright wrote:
* Ralf Corsepius (rc040203 freenet de) wrote:Here, the "BR: libz >= 1.2" is a "necessary condition" (in the mathematical sense) to force users (or the buildsystem) to use a sufficient zlib. Whether or not the sources support "graceful degrating" to other internal underneath, isn't of any importance.Problem is BR zlib >= 1.2 is completely irrelevant when installing a package, simply because implicit dependency on libz.so.1 is inaccurate.
Exactly.
Since this shouldn't be an issue for FC/FE users, I can just drop that bit from upstream. It's there only because somebody hit it, complained, and sent a patch.
I use the following in gaim for a similar purpose. It is rather ugly but works.
# Require Binary Compatible glib# returns bogus value if glib2-devel is not installed in order for parsing to succeed
# bogus value wont make it into a real package%define glib_ver %([ -a %{_libdir}/pkgconfig/glib-2.0.pc ] && pkg-config --modversion glib-2.0 | cut -d. -f 1,2 || echo -n "999")
Requires: glib2 >= %{glib_ver}
BuildRequires: glib2-devel
This way the SRPM can build on any version of glib2, but the package
enforces the install-time version of glib2.
Warren Togami wtogami redhat com