# $Id$ Summary: Binary location info for core files Name: libobjid Version: 0.1 Release: 1 License: GPL Group: System Environment/Base Source: http://www.jankratochvil.net/priv/%{name}-%{version}.tar.gz ExclusiveArch: %{ix86} x86_64 Buildroot: %{_tmppath}/libobjid-root %description LD_PRELOAD=/usr/lib/libobjid.so programname will extend the core file in the case the program segfaults. You need patched GDB and its --objectdirectory option to use the location info. Debug stderr output for core file extension confirmation: libobjid: core %package devel Summary: Interface files for libobjid Group: System Environment/Base %description devel The libobjid-devel package contains interface header file for applications retrieving the information stored to the core files uniquely identifying the original binaries. %prep %setup %build make make check %install make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} includedir=%{_includedir} install %files %defattr(-,root,root) %{_libdir}/libobjid.so %doc README TODO %files devel %defattr(-,root,root) %{_includedir}/objid.h %changelog * Fri Dec 29 2006 Jan Kratochvil 0.1 - Initial release.