]>
Commit | Line | Data |
---|---|---|
d5753979 AF |
1 | Summary: A collection of utilities and DSOs to handle compiled objects. |
2 | Name: elfutils | |
3 | Version: 0.76 | |
4 | Release: 4 | |
5 | License: GPL | |
6 | Group: Development/Tools | |
ecbc8f89 | 7 | #URL: file://home/devel/drepper |
d5753979 AF |
8 | Source0: %{name}-%{version}.tar.gz |
9 | Requires: elfutils-libelf = %{version}-%{release} | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | BuildRequires: gcc >= 3.2 | |
12 | BuildRequires: sharutils | |
ecbc8f89 | 13 | |
ecbc8f89 AF |
14 | %define _programprefix eu- |
15 | ||
16 | %description | |
d5753979 AF |
17 | Elfutils is a collection of utilities, including ld (a linker), nm |
18 | (for listing symbols from object files), size (for listing the section | |
19 | sizes of an object or archive file), strip (for discarding symbols), | |
20 | readline (the see the raw ELF file structures), and elflint (to check | |
21 | for well-formed ELF files). Also included are numerous helper | |
22 | libraries which implement DWARF, ELF, and machine-specific ELF | |
ecbc8f89 AF |
23 | handling. |
24 | ||
25 | %package devel | |
d5753979 AF |
26 | Summary: Development libraries to handle compiled objects. |
27 | Group: Development/Tools | |
28 | Obsoletes: libelf-devel | |
29 | Requires: elfutils = %{version}-%{release} | |
ecbc8f89 AF |
30 | |
31 | %description devel | |
32 | The elfutils-devel package contains the libraries to create | |
d5753979 | 33 | applications for handling compiled objects. libelf allows you to |
ecbc8f89 | 34 | access the internals of the ELF object file format, so you can see the |
d5753979 AF |
35 | different sections of an ELF file. libebl provides some higher-level |
36 | ELF access functionality. libdwarf provides access to the DWARF | |
37 | debugging information. libasm provides a programmable assembler | |
ecbc8f89 AF |
38 | interface. |
39 | ||
40 | %package libelf | |
d5753979 AF |
41 | Summary: Library to read and write ELF files. |
42 | Group: Development/Tools | |
43 | Obsoletes: libelf | |
ecbc8f89 AF |
44 | |
45 | %description libelf | |
46 | The elfutils-libelf package provides a DSO which allows reading and | |
d5753979 AF |
47 | writing ELF files on a high level. Third party programs depend on this |
48 | package to read internals of ELF files. The programs of the elfutils | |
49 | package use it also to generate new ELF files. | |
ecbc8f89 AF |
50 | |
51 | %prep | |
52 | %setup -q | |
53 | ||
54 | %build | |
d5753979 AF |
55 | %{__aclocal} |
56 | %{__autoheader} | |
57 | %{__automake} | |
58 | %{__autoconf} | |
59 | %configure \ | |
60 | --program-prefix=%{_programprefix} \ | |
61 | --enable-shared | |
ecbc8f89 AF |
62 | |
63 | %install | |
d5753979 AF |
64 | rm -rf $RPM_BUILD_ROOT |
65 | install -d ${RPM_BUILD_ROOT}%{_prefix} | |
ecbc8f89 | 66 | |
ecbc8f89 | 67 | #make check |
d5753979 AF |
68 | %{__make} install \ |
69 | DESTDIR=$RPM_BUILD_ROOT | |
ecbc8f89 AF |
70 | |
71 | chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so* | |
72 | chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so* | |
73 | ||
ecbc8f89 AF |
74 | |
75 | # XXX Nuke unpackaged files | |
76 | { cd ${RPM_BUILD_ROOT} | |
77 | rm -f .%{_bindir}/eu-ld | |
78 | rm -f .%{_includedir}/elfutils/libasm.h | |
79 | rm -f .%{_includedir}/elfutils/libdw.h | |
80 | rm -f .%{_includedir}/elfutils/libdwarf.h | |
81 | rm -f .%{_libdir}/libasm-%{version}.so | |
82 | rm -f .%{_libdir}/libasm.a | |
83 | rm -f .%{_libdir}/libdw-%{version}.so | |
84 | rm -f .%{_libdir}/libdw.a | |
85 | rm -f .%{_libdir}/libdwarf.a | |
86 | } | |
87 | ||
d5753979 AF |
88 | #%%check |
89 | #make check | |
ecbc8f89 AF |
90 | |
91 | %clean | |
92 | rm -rf ${RPM_BUILD_ROOT} | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | ||
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %post libelf -p /sbin/ldconfig | |
99 | ||
100 | %postun libelf -p /sbin/ldconfig | |
101 | ||
102 | %files | |
d5753979 | 103 | %defattr(644,root,root,755) |
ecbc8f89 | 104 | %doc README TODO libdwarf/AVAILABLE |
d5753979 | 105 | %attr(755,root,root) %{_bindir}/eu-elflint |
ecbc8f89 | 106 | #%{_bindir}/eu-ld |
d5753979 AF |
107 | %attr(755,root,root) %{_bindir}/eu-nm |
108 | %attr(755,root,root) %{_bindir}/eu-readelf | |
109 | %attr(755,root,root) %{_bindir}/eu-size | |
110 | %attr(755,root,root) %{_bindir}/eu-strip | |
ecbc8f89 AF |
111 | #%{_libdir}/libasm-%{version}.so |
112 | %{_libdir}/libebl-%{version}.so | |
113 | #%{_libdir}/libdw-%{version}.so | |
114 | %{_libdir}/libdwarf-%{version}.so | |
115 | #%{_libdir}/libasm*.so.* | |
116 | %{_libdir}/libebl*.so.* | |
117 | #%{_libdir}/libdw*.so.* | |
118 | %{_libdir}/libdwarf*.so.* | |
119 | %dir %{_libdir}/elfutils | |
120 | %{_libdir}/elfutils/lib*.so | |
121 | ||
122 | %files devel | |
d5753979 | 123 | %defattr(644,root,root,755) |
ecbc8f89 AF |
124 | %{_includedir}/dwarf.h |
125 | %{_includedir}/libelf.h | |
126 | %{_includedir}/gelf.h | |
127 | %{_includedir}/nlist.h | |
128 | %dir %{_includedir}/elfutils | |
129 | %{_includedir}/elfutils/elf-knowledge.h | |
130 | %{_includedir}/elfutils/libebl.h | |
131 | #%{_libdir}/libasm.a | |
132 | %{_libdir}/libebl.a | |
133 | %{_libdir}/libelf.a | |
134 | #%{_libdir}/libdw.a | |
135 | #%{_libdir}/libasm.so | |
136 | %{_libdir}/libebl.so | |
137 | %{_libdir}/libelf.so | |
138 | #%{_libdir}/libdw.so | |
139 | #%{_libdir}/libdwarf.so | |
140 | ||
141 | %files libelf | |
d5753979 | 142 | %defattr(644,root,root,755) |
ecbc8f89 AF |
143 | %{_libdir}/libelf-%{version}.so |
144 | %{_libdir}/libelf*.so.* |