blob: e6b8fcaf9bd1fd9609d2cb1e4b0d144000ccd820 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001# -*- rpm-spec-*-
2%define fake 0
3Summary: A collection of utilities and DSOs to handle compiled objects.
4Name: elfutils
5Version: @PACKAGE_VERSION@
6Release: 1
7%if %{fake}
8License: GPL
9%else
10License: OSL
11%endif
12Group: Development/Tools
13#URL: file://home/devel/drepper/
14Source: elfutils-%{version}.tar.gz
15Obsoletes: libelf libelf-devel
16Requires: elfutils-libelf = %{version}-%{release}
17%if %{fake}
18Requires: binutils >= 2.14.90.0.4-26.2
19%endif
20Requires: glibc >= 2.3.1-2
21
22# ExcludeArch: xxx
23
24BuildRoot: %{_tmppath}/%{name}-root
25BuildRequires: gcc >= 3.4
26BuildRequires: bison >= 1.875
27BuildRequires: flex >= 2.5.4a
28BuildRequires: bzip2
29
30%define _gnu %{nil}
31%define _programprefix eu-
32
33%description
34Elfutils is a collection of utilities, including ld (a linker),
35nm (for listing symbols from object files), size (for listing the
36section sizes of an object or archive file), strip (for discarding
37symbols), readelf (to see the raw ELF file structures), and elflint
38(to check for well-formed ELF files). Also included are numerous
39helper libraries which implement DWARF, ELF, and machine-specific ELF
40handling.
41
42%package devel
43Summary: Development libraries to handle compiled objects.
44Group: Development/Tools
45%if %{fake}
46License: GPL
47%else
48License: OSL
49%endif
50Requires: elfutils = %{version}-%{release}
51Requires: elfutils-libelf-devel = %{version}-%{release}
52
53%description devel
54The elfutils-devel package contains the libraries to create
55applications for handling compiled objects. libebl provides some
56higher-level ELF access functionality. libdw provides access to
57the DWARF debugging information. libasm provides a programmable
58assembler interface.
59
60%package libelf
61Summary: Library to read and write ELF files.
62Group: Development/Tools
63%if %{fake}
64License: GPL
65%endif
66
67%description libelf
68The elfutils-libelf package provides a DSO which allows reading and
69writing ELF files on a high level. Third party programs depend on
70this package to read internals of ELF files. The programs of the
71elfutils package use it also to generate new ELF files.
72
73%package libelf-devel
74Summary: Development support for libelf
75Group: Development/Tools
76Requires: elfutils-libelf = %{version}-%{release}
77Conflicts: libelf-devel
78%if %{fake}
79License: GPL
80%endif
81
82%description libelf-devel
83The elfutils-libelf-devel package contains the libraries to create
84applications for handling compiled objects. libelf allows you to
85access the internals of the ELF object file format, so you can see the
86different sections of an ELF file.
87
88%prep
89%setup -q
90
91%build
92%configure --program-prefix=%{_programprefix}
93make
94
95%install
96rm -rf ${RPM_BUILD_ROOT}
97mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
98
99%makeinstall
100
101chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
102%if !%{fake}
103chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
104%endif
105
106%if !%{fake}
107# XXX Nuke unpackaged files
108{ cd ${RPM_BUILD_ROOT}
109 rm -f .%{_bindir}/eu-ld
110 rm -f .%{_includedir}/elfutils/libasm.h
111 rm -f .%{_libdir}/libasm-%{version}.so
112 rm -f .%{_libdir}/libasm.so.*
113 rm -f .%{_libdir}/libasm.so
114 rm -f .%{_libdir}/libasm.a
115}
116%endif
117
118%check
119make check
120
121%clean
122rm -rf ${RPM_BUILD_ROOT}
123
124%post -p /sbin/ldconfig
125
126%postun -p /sbin/ldconfig
127
128%post libelf -p /sbin/ldconfig
129
130%postun libelf -p /sbin/ldconfig
131
132%files
133%defattr(-,root,root)
134%doc README TODO
135%if %{fake}
136%doc fake-src/FULL
137%endif
138%{_bindir}/eu-elflint
139%{_bindir}/eu-nm
140%{_bindir}/eu-readelf
141%{_bindir}/eu-size
142%{_bindir}/eu-strip
143%{_bindir}/eu-findtextrel
144%{_bindir}/eu-addr2line
145%{_bindir}/eu-elfcmp
146%if !%{fake}
147#%{_bindir}/eu-ld
148#%{_libdir}/libasm-%{version}.so
149%{_libdir}/libdw-%{version}.so
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000150#%{_libdir}/libasm.so.*
151%{_libdir}/libdw.so.*
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000152%dir %{_libdir}/elfutils
153%{_libdir}/elfutils/lib*.so
154%endif
155
156%files devel
157%defattr(-,root,root)
158%{_includedir}/dwarf.h
159%dir %{_includedir}/elfutils
160%{_includedir}/elfutils/elf-knowledge.h
161%if !%{fake}
162%{_includedir}/elfutils/libebl.h
163%{_includedir}/elfutils/libdw.h
164%{_includedir}/elfutils/libdwfl.h
165#%{_libdir}/libasm.a
166%{_libdir}/libebl.a
167%{_libdir}/libdw.a
168%{_libdir}/libdwfl.a
169#%{_libdir}/libasm.so
170%{_libdir}/libdw.so
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000171%endif
172
173%files libelf
174%defattr(-,root,root)
175%{_libdir}/libelf-%{version}.so
176%{_libdir}/libelf.so.*
177
178%files libelf-devel
179%defattr(-,root,root)
180%{_includedir}/libelf.h
181%{_includedir}/gelf.h
182%{_includedir}/nlist.h
183%{_libdir}/libelf.a
184%{_libdir}/libelf.so
185
186%changelog
Roland McGrath5a765672005-07-28 09:12:43 +0000187- libdw: libdwfl.h functions moved into libdw DSO.
188
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000189* Sun Jul 24 2005 Ulrich Drepper <@redhat.com> 0.110-1
190- libelf: fix a numbe rof problems with elf_update
191- elfcmp: fix a few bugs. Compare gaps.
192- Fix a few PLT problems and mudflap build issues.
193- libebl: Don't expose Ebl structure definition in libebl.h. It's now p
194rivate.
195
196* Thu Jul 21 2005 Ulrich Drepper <@redhat.com> 0.109-1
197- libebl: Check for matching modules.
198- elflint: Check that copy relocations only happen for OBJECT or NOTYPE
199symbols.
200- elfcmp: New program.
201- libdwfl: New library.
202
203* Mon May 9 2005 Ulrich Drepper <@redhat.com> 0.108-1
204- strip: fix bug introduced in last change
205- libdw: records returned by dwarf_getsrclines are now sorted by address
206
207* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.108-1
208- strip: fix bug introduced in last change
209
210* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.107-1
211- readelf: improve DWARF output format
212- strip: support Linux kernel modules
213
214* Fri Apr 29 2005 Ulrich Drepper <drepper@redhat.com> 0.107-1
215- readelf: improve DWARF output format
216
217* Mon Apr 4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1
218- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f
219unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge
220tsrc_file
221
222* Fri Apr 1 2005 Ulrich Drepper <drepper@redhat.com> 0.105-1
223- addr2line: New program
224- libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs
225,dwarf_func_*.
226- findtextrel: use dwarf_addrdie
227
228* Mon Mar 28 2005 Ulrich Drepper <drepper@redhat.com> 0.104-1
229- findtextrel: New program.
230
231* Mon Mar 21 2005 Ulrich Drepper <drepper@redhat.com> 0.103-1
232- libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug.
233
234* Tue Feb 22 2005 Ulrich Drepper <drepper@redhat.com> 0.102-1
235- More Makefile and spec file cleanups.
236
237* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
238- upgrade to 0.94
239
240* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
241- upgrade to 0.93
242
243* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
244- full version
245- macroized spec file for GPL or OSL builds
246- include only libelf under GPL plus wrapper scripts
247
248* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
249- macroized spec file for GPL or OSL builds
250
251* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
252- split elfutils-devel into two packages.
253
254* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
255- include only libelf under GPL plus wrapper scripts
256
257* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
258- readelf, not readline, in %%description (#111214).
259
260* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
261- update to 0.89 (fix eu-strip)
262
263* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
264- update to 0.86 (fix eu-strip on s390x/alpha)
265- libebl is an archive now; remove references to DSO
266
267* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
268- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
269
270* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
271- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
272
273* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
274- upgrade to 0.82 (strip tests fixed on big-endian).
275
276* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
277- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
278
279* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
280- upgrade to 0.80 (debugedit changes for kernel in progress).
281
282* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
283- rebuilt
284
285* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
286- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
287
288* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
289- upgrade to 0.78 (libdwarf bugfix, libdw additions).
290
291* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
292- debuginfo rebuild
293
294* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
295- use the correct way of identifying the section via the sh_info link.
296
297* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
298- update to 0.75 (eu-strip -g fix)
299
300* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
301- update to 0.74 (fix for writing with some non-dirty sections)
302
303* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
304- another -0.73 update (with sparc fixes).
305- do "make check" in %%check, not %%install, section.
306
307* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
308- update to 0.73 (with s390 fixes).
309
310* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
311- rebuilt
312
313* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
314- fix arguments to gelf_getsymshndx and elf_getshstrndx
315- fix other warnings
316- reenable checks on s390x
317
318* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
319- temporarily disable checks on s390x, until someone has
320 time to look at it
321
322* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
323- update to 0.72
324
325* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
326- update to 0.71
327
328* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
329- update to 0.69.
330- add "make check" and segfault avoidance patch.
331- elfutils-libelf needs to run ldconfig.
332
333* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
334- update to 0.68.
335
336* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
337- update to 0.67.
338
339* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
340- update to 0.65.
341
342* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
343- update to 0.64.
344
345* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
346- split packages further into elfutils-libelf
347
348* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
349- update to 0.63.
350
351* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
352- Adjust for dropping libtool
353
354* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
355- update to 0.59
356
357* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
358- update to 0.56
359
360* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
361- update to 0.54
362
363* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
364- update to 0.53
365- drop x86_64 hack, ICE fixed in gcc-3.2-11.
366
367* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
368- get beehive to punch a rhpkg generated package.
369
370* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
371- build in 8.0.1.
372- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
373
374* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
375- Add libelf-devel to conflicts for elfutils-devel
376
377* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
378- Split into runtime and devel package
379
380* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
381- integrate into official sources
382
383* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
384- Swaddle.