%define __prefix /usr/local Summary: dlcompat for Darwin Name: dlcompat %define version 20030629 Version: %{version} Release: 1a Group: System Environment/Libraries Source: localhost:/dlcompat-%{version}.tar.gz Copyright: (c) 2002 Jorge Acereda BuildRoot: %{_tmppath}/%{name}-root provides: libdl.dylib %description This is dlcompat, a small library that emulates the dlopen() interface on top of Darwin's dyld API. dlcompat allows loading a ".dylib" library (as long as the RTLD_LOCAL flag isn't passed to dlopen()). It can be configured to yield a warning when trying to close it (dynamic libraries cannot currently be unloaded). It automatically searches for modules in several directories when no absolute path is specified and the module is not found in the current directory. The paths searched are those specified in the environment variables LD_LIBRARY_PATH and DYLD_LIBRARY_PATH plus /lib, /usr/local/lib and /usr/lib or the path specified in the environment variable DYLD_FALLBACK_LIBRARY_PATH. %prep %setup %build ./configure make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{__prefix} make DESTDIR="$RPM_BUILD_ROOT" install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,wheel) %doc AUTHORS LICENSE ChangeLog README TODO %{__prefix}/include/dlfcn.h %{__prefix}/lib/libdl.*dylib %{__prefix}/lib/libdl.a %{__prefix}/man/man3/* %changelog * Sat Dec 27 2003 Keisuke Fujii - 1st release on MacOS X Release 10.3: version 20030629 maintained by Peter O'Gorman * Tue Oct 01 2002 Keisuke Fujii - 1st release on MacOS X Release 10.2: version 2001023 maintained by Peter O'Gorman * Wed Oct 10 2001 Keisuke Fujii - 1st release on MacOS X Release 10.1: version 2001023 by Christoph Pfisterer * Fri Apr 20 2001 Keisuke Fujii - 1st release on MacOS X Release: version 2001023 by Christoph Pfisterer * Tue Mar 27 2001 Keisuke Fujii - 1st release on MacOS X PB: version 2001023 by Christoph Pfisterer