Initial import.
[libobjid.git] / libobjid.spec
1 # $Id$
2
3
4 Summary: Binary location info for core files
5 Name: libobjid
6 Version: 0.1
7 Release: 1
8 License: GPL
9 Group: System Environment/Base
10 Source: http://www.jankratochvil.net/priv/%{name}-%{version}.tar.gz
11 ExclusiveArch: %{ix86} x86_64
12 Buildroot: %{_tmppath}/libobjid-root
13
14 %description
15 LD_PRELOAD=/usr/lib/libobjid.so programname
16 will extend the core file in the case the program segfaults.
17 You need patched GDB and its --objectdirectory option to use the location info.
18 Debug stderr output for core file extension confirmation:
19 libobjid: core
20
21 %package devel
22 Summary: Interface files for libobjid
23 Group: System Environment/Base
24
25 %description devel
26 The libobjid-devel package contains interface header file for applications
27 retrieving the information stored to the core files uniquely identifying the
28 original binaries.
29
30 %prep
31 %setup
32
33 %build
34 make
35 make check
36
37 %install
38 make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} includedir=%{_includedir} install
39
40 %files
41 %defattr(-,root,root)
42 %{_libdir}/libobjid.so
43 %doc README TODO
44
45 %files devel
46 %defattr(-,root,root)
47 %{_includedir}/objid.h
48
49 %changelog
50 * Fri Dec 29 2006 Jan Kratochvil <jan.kratochvil@redhat.com> 0.1
51 - Initial release.