1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
Summary: A collection of utilities and DSOs to handle compiled objects.
Name: elfutils
Version: @PACKAGE_VERSION@
Release: 1
Copyright: GPL
Group: Development/Tools
URL: http://sources.redhat.com/binutils
Source: elfutils-@PACKAGE_VERSION@.tar.gz
# ExcludeArch: xxx
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: gcc >= 3.2
%define _gnu %{nil}
%define _programprefix eu-
%description
Elfutils is a collection of utilities, including ld (the GNU linker),
nm (for listing symbols from object files), size (for listing the
section sizes of an object or archive file), strip (for discarding
symbols), readline (the see the raw ELF file structures), and elflint
(to check for well-formed ELF files). Also included are numerous
helper libraries which implement DWARF, ELF, and machine-specific ELF
handling.
%package devel
Summary: Development libraries to handle compiled objects.
Group: Development/Tools
Requires: elfutils = %{version}-%{release}
%description devel
The elfutils-devel package containst he libraries to create
applications for handling compiled objects. libelf allows you to
access the internals of the ELF object file format, so you can see the
different sections of an ELF file. libebl provides some higher-level
ELF access functionality. libdwarf provides access to the DWARF
debugging information. libasm provides a programmable assembler
interface.
%prep
%setup -q
# %patch0 -p1 -b .jbj
%build
mkdir build-%{_target_platform}
cd build-%{_target_platform}
../configure \
--prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
--bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} \
--libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} \
--sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \
--infodir=%{_infodir} --program-prefix=%{_programprefix} --enable-shared
cd ..
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
cd build-%{_target_platform}
%makeinstall
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
# The loadable modules need not exist in a form which can be linked with
rm ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.a
rm ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.la
cd ..
%clean
rm -rf ${RPM_BUILD_ROOT}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README
%doc TODO
%doc libdwarf/AVAILABLE
%{_prefix}/bin/*
%{_prefix}/%{_lib}/lib*.so.*
%{_prefix}/%{_lib}/elfutils/lib*.so.*
%files devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_prefix}/%{_lib}/lib*.a
%{_prefix}/%{_lib}/lib*.la
%{_prefix}/%{_lib}/lib*.so
%changelog
* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
- Split into runtime and devel package
* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
- integrate into official sources
* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
- Swaddle.
|