Package: nspr.0e-shlibs Version: 4.10.7 Revision: 1 Source: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%v/src/nspr-%v.tar.gz Source-MD5: 6e06919e4b56efed501e05d8b45ec10e SourceDirectory: nspr-%v/nspr PatchFile: %n.patch PatchFile-MD5: bbb28715431915b44d6041081782a189 PatchScript: << patch -p2 < %{PatchFile} << NoSetCPPFLAGS: true NoSetLDFLAGS: true ConfigureParams: --disable-debug --enable-macos-target=10.7 --libdir=%p/lib/nspr --enable-64bit InstallScript: << #!/bin/sh -ev make -j1 install DESTDIR=%d # counteract side-effect of burying the libs mv %i/lib/nspr/pkgconfig %i/lib rm %i/lib/nspr/lib*.a # 'make install' doesn't create main link-time lib symlinks SO_VERSION=0e for file in libnspr4 libplc4 libplds4; do ln -sf "$file.${SO_VERSION}.dylib" "%i/lib/nspr/$file.dylib" done << DocFiles: LICENSE Shlibs: << %p/lib/nspr/libnspr4.0e.dylib 1.0.0 %n (>= 4.10.7-1) %p/lib/nspr/libplc4.0e.dylib 1.0.0 %n (>= 4.10.7-1) %p/lib/nspr/libplds4.0e.dylib 1.0.0 %n (>= 4.10.7-1) << SplitOff: << Package: nspr.0e Depends: %N (= %v-%r) Conflicts: << nspr, nspr.0d, nspr.0e << Replaces: << nspr, nspr.0d, nspr.0e << BuildDependsOnly: true Files: << bin include lib/pkgconfig lib/nspr/libnspr4.dylib lib/nspr/libplc4.dylib lib/nspr/libplds4.dylib share/aclocal << DocFiles: LICENSE << Description: Netscape Portable Runtime DescDetail: << Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc like functions. The API is used in the Mozilla client, many of Netscape/AOL/iPlanet's and other software offerings. << DescPackaging: << dmacks overhauled 4.6.7-1 -> 4.8-1 all the following: Upstream does not update compatibility_version when added new public symbols! Maybe that's why debian hacked soname in recent versions? We'll do that too: rename nspr -> nspr.0d And then 4.8.4 -> 4.10.7 even broke ABI, so use nspr.0e Bury library files so don't accidentally find them (many pkgs seem to need BuildConflicts:nspr) macos-target for consistency among all fink-supported platforms (cleaner to use %c than patch configure fallbacks). make sure we get build-dir lib instead of usin local -L path. But no external deps, so scrap -I and -L for %p altogether instead of tracing and fixing makefile-variable spaghetti. Don't leak internal-emulation poll() symbol into public of libnspr ABI. It's not part of public API nor used by other libs in nspr suite, and linker gets annoyed and confused when other things link against libnspr because libSystem already has that symbol. << License: OSI-Approved Maintainer: Daniel Macks Homepage: http://www.mozilla.org/projects/nspr/