]>
Commit | Line | Data |
---|---|---|
d5753979 AF |
1 | Summary: A collection of utilities and DSOs to handle compiled objects. |
2 | Name: elfutils | |
3 | Version: 0.76 | |
2a18e913 | 4 | Release: 5 |
d5753979 AF |
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 | 50 | |
2a18e913 AF |
51 | %package static |
52 | Summary: Development libraries to handle compiled objects - static. | |
53 | Group: Development/Tools | |
54 | Obsoletes: libelf-devel | |
55 | Requires: elfutils-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | The elfutils-static package contains the static libraries to create | |
59 | applications for handling compiled objects. libelf allows you to | |
60 | access the internals of the ELF object file format, so you can see the | |
61 | different sections of an ELF file. libebl provides some higher-level | |
62 | ELF access functionality. libdwarf provides access to the DWARF | |
63 | debugging information. libasm provides a programmable assembler | |
64 | interface. | |
65 | ||
66 | ||
ecbc8f89 AF |
67 | %prep |
68 | %setup -q | |
69 | ||
70 | %build | |
d5753979 AF |
71 | %{__aclocal} |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | %{__autoconf} | |
75 | %configure \ | |
76 | --program-prefix=%{_programprefix} \ | |
77 | --enable-shared | |
ecbc8f89 AF |
78 | |
79 | %install | |
d5753979 AF |
80 | rm -rf $RPM_BUILD_ROOT |
81 | install -d ${RPM_BUILD_ROOT}%{_prefix} | |
ecbc8f89 | 82 | |
d5753979 AF |
83 | %{__make} install \ |
84 | DESTDIR=$RPM_BUILD_ROOT | |
ecbc8f89 AF |
85 | |
86 | chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so* | |
87 | chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so* | |
88 | ||
d5753979 AF |
89 | #%%check |
90 | #make check | |
ecbc8f89 AF |
91 | |
92 | %clean | |
93 | rm -rf ${RPM_BUILD_ROOT} | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | ||
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %post libelf -p /sbin/ldconfig | |
100 | ||
101 | %postun libelf -p /sbin/ldconfig | |
102 | ||
103 | %files | |
d5753979 | 104 | %defattr(644,root,root,755) |
2a18e913 AF |
105 | %doc README TODO |
106 | %attr(755,root,root) %{_bindir}/* | |
107 | %attr(755,root,root) %{_libdir}/lib*-*.so | |
ecbc8f89 | 108 | %dir %{_libdir}/elfutils |
2a18e913 AF |
109 | %attr(755,root,root) %{_libdir}/elfutils/lib*.so |
110 | %exclude %{_libdir}/libelf-*.so | |
ecbc8f89 AF |
111 | |
112 | %files devel | |
2a18e913 | 113 | %doc libdwarf/AVAILABLE |
d5753979 | 114 | %defattr(644,root,root,755) |
2a18e913 AF |
115 | %{_includedir}/* |
116 | %{_libdir}/lib*.so | |
117 | %exclude %{_libdir}/lib*-*.so | |
ecbc8f89 AF |
118 | |
119 | %files libelf | |
d5753979 | 120 | %defattr(644,root,root,755) |
2a18e913 AF |
121 | %{_libdir}/libelf-*.so |
122 | ||
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/lib*.a |