461 lines
12 KiB
RPMSpec
461 lines
12 KiB
RPMSpec
%define version 0.112
|
|
%define release 1
|
|
|
|
%define gpl 0
|
|
%if %{?_with_compat:1}%{!?_with_compat:0}
|
|
%define compat 1
|
|
%else
|
|
%define compat 0
|
|
%endif
|
|
|
|
Summary: A collection of utilities and DSOs to handle compiled objects.
|
|
Name: elfutils
|
|
Version: %{version}
|
|
%if !%{compat}
|
|
Release: %{release}
|
|
%else
|
|
Release: 0.%{release}
|
|
%endif
|
|
%if %{gpl}
|
|
License: GPL
|
|
%else
|
|
License: OSL
|
|
%endif
|
|
Group: Development/Tools
|
|
#URL: file://home/devel/drepper/
|
|
Source: elfutils-%{version}.tar.gz
|
|
Patch1: elfutils-portability.patch
|
|
Patch2: elfutils-0.112-robustify.patch
|
|
Obsoletes: libelf libelf-devel
|
|
Requires: elfutils-libelf = %{version}-%{release}
|
|
%if %{gpl}
|
|
Requires: binutils >= 2.14.90.0.4-26.2
|
|
%endif
|
|
|
|
# ExcludeArch: xxx
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
BuildRequires: bison >= 1.875
|
|
BuildRequires: flex >= 2.5.4a
|
|
BuildRequires: bzip2
|
|
%if !%{compat}
|
|
BuildRequires: gcc >= 3.4
|
|
# Need <byteswap.h> that gives unsigned bswap_16 etc.
|
|
BuildRequires: glibc-headers >= 2.3.4-11
|
|
%else
|
|
BuildRequires: gcc >= 3.2
|
|
%endif
|
|
|
|
%define _gnu %{nil}
|
|
%define _program_prefix eu-
|
|
|
|
%description
|
|
Elfutils is a collection of utilities, including ld (a linker),
|
|
nm (for listing symbols from object files), size (for listing the
|
|
section sizes of an object or archive file), strip (for discarding
|
|
symbols), readelf (to 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
|
|
%if %{gpl}
|
|
License: GPL
|
|
%else
|
|
License: OSL
|
|
%endif
|
|
Requires: elfutils = %{version}-%{release}
|
|
Requires: elfutils-libelf-devel = %{version}-%{release}
|
|
|
|
%description devel
|
|
The elfutils-devel package contains the libraries to create
|
|
applications for handling compiled objects. libebl provides some
|
|
higher-level ELF access functionality. libdw provides access to
|
|
the DWARF debugging information. libasm provides a programmable
|
|
assembler interface.
|
|
|
|
%package libelf
|
|
Summary: Library to read and write ELF files.
|
|
Group: Development/Tools
|
|
%if %{gpl}
|
|
License: GPL
|
|
%endif
|
|
|
|
%description libelf
|
|
The elfutils-libelf package provides a DSO which allows reading and
|
|
writing ELF files on a high level. Third party programs depend on
|
|
this package to read internals of ELF files. The programs of the
|
|
elfutils package use it also to generate new ELF files.
|
|
|
|
%package libelf-devel
|
|
Summary: Development support for libelf
|
|
Group: Development/Tools
|
|
Requires: elfutils-libelf = %{version}-%{release}
|
|
Conflicts: libelf-devel
|
|
%if %{gpl}
|
|
License: GPL
|
|
%endif
|
|
|
|
%description libelf-devel
|
|
The elfutils-libelf-devel package contains the 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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%if %{compat}
|
|
%patch1 -p1
|
|
sleep 1
|
|
find . \( -name Makefile.in -o -name aclocal.m4 \) -print | xargs touch
|
|
sleep 1
|
|
find . \( -name configure -o -name config.h.in \) -print | xargs touch
|
|
%endif
|
|
|
|
%patch2 -p1
|
|
|
|
%build
|
|
# Remove -Wall from default flags. The makefiles enable enough warnings
|
|
# themselves, and they use -Werror. Appending -Wall defeats the cases where
|
|
# the makefiles disable some specific warnings for specific code.
|
|
RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-Wall/}
|
|
|
|
%configure
|
|
make
|
|
|
|
%install
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
%makeinstall
|
|
|
|
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
|
|
%if !%{gpl}
|
|
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
|
|
%endif
|
|
|
|
%if !%{gpl}
|
|
# XXX Nuke unpackaged files
|
|
{ cd ${RPM_BUILD_ROOT}
|
|
rm -f .%{_bindir}/eu-ld
|
|
rm -f .%{_bindir}/eu-objdump
|
|
rm -f .%{_includedir}/elfutils/libasm.h
|
|
rm -f .%{_libdir}/libasm-%{version}.so
|
|
rm -f .%{_libdir}/libasm.so*
|
|
rm -f .%{_libdir}/libasm.a
|
|
}
|
|
%endif
|
|
|
|
%check
|
|
make check
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post libelf -p /sbin/ldconfig
|
|
|
|
%postun libelf -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README TODO
|
|
%if %{gpl}
|
|
%doc fake-src/FULL
|
|
%endif
|
|
%{_bindir}/eu-addr2line
|
|
%{_bindir}/eu-elfcmp
|
|
%{_bindir}/eu-elflint
|
|
%{_bindir}/eu-findtextrel
|
|
%{_bindir}/eu-nm
|
|
%{_bindir}/eu-readelf
|
|
%{_bindir}/eu-size
|
|
%{_bindir}/eu-strip
|
|
%if !%{gpl}
|
|
#%{_bindir}/eu-ld
|
|
%{_libdir}/libdw-%{version}.so
|
|
#%{_libdir}/libasm.so.*
|
|
%{_libdir}/libdw.so.*
|
|
%dir %{_libdir}/elfutils
|
|
%{_libdir}/elfutils/lib*.so
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/dwarf.h
|
|
%dir %{_includedir}/elfutils
|
|
%{_includedir}/elfutils/elf-knowledge.h
|
|
%if !%{gpl}
|
|
%{_includedir}/elfutils/libebl.h
|
|
%{_includedir}/elfutils/libdw.h
|
|
%{_includedir}/elfutils/libdwfl.h
|
|
#%{_libdir}/libasm.a
|
|
%{_libdir}/libebl.a
|
|
%{_libdir}/libdw.a
|
|
#%{_libdir}/libasm.so
|
|
%{_libdir}/libdw.so
|
|
%endif
|
|
|
|
%files libelf
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libelf-%{version}.so
|
|
%{_libdir}/libelf.so.*
|
|
|
|
%files libelf-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/libelf.h
|
|
%{_includedir}/gelf.h
|
|
%{_includedir}/nlist.h
|
|
%{_libdir}/libelf.a
|
|
%{_libdir}/libelf.so
|
|
|
|
%changelog
|
|
* Sat Aug 6 2005 Roland McGrath <roland@redhat.com> - 0.112-1
|
|
- update to 0.112
|
|
- elfcmp: some more relaxation.
|
|
- elflint: many more tests, especially regarding to symbol versioning.
|
|
- libelf: Add elfXX_offscn and gelf_offscn.
|
|
- libasm: asm_begin interface changes.
|
|
- libebl: Add three new interfaces to directly access machine, class,
|
|
and data encoding information.
|
|
|
|
* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.111-2
|
|
- update portability patch
|
|
|
|
* Thu Jul 28 2005 Roland McGrath <roland@redhat.com> - 0.111-1
|
|
- update to 0.111
|
|
- libdwfl library now merged into libdw
|
|
|
|
* Sun Jul 24 2005 Roland McGrath <roland@redhat.com> - 0.110-1
|
|
- update to 0.110
|
|
|
|
* Fri Jul 22 2005 Roland McGrath <roland@redhat.com> - 0.109-2
|
|
- update to 0.109
|
|
- verify that libebl modules are from the same build
|
|
- new eu-elflint checks on copy relocations
|
|
- new program eu-elfcmp
|
|
- new experimental libdwfl library
|
|
|
|
* Thu Jun 9 2005 Roland McGrath <roland@redhat.com> - 0.108-5
|
|
- robustification of eu-strip and eu-readelf
|
|
|
|
* Wed May 25 2005 Roland McGrath <roland@redhat.com> - 0.108-3
|
|
- more robustification
|
|
|
|
* Mon May 16 2005 Roland McGrath <roland@redhat.com> - 0.108-2
|
|
- robustification
|
|
|
|
* Mon May 9 2005 Roland McGrath <roland@redhat.com> - 0.108-1
|
|
- update to 0.108
|
|
- merge strip fixes
|
|
- sort records in dwarf_getsrclines, fix dwarf_getsrc_die searching
|
|
- update elf.h from glibc
|
|
|
|
* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-2
|
|
- fix strip -f byte-swapping bug
|
|
|
|
* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-1
|
|
- update to 0.107
|
|
- readelf: improve DWARF output format
|
|
- elflint: -d option to support checking separate debuginfo files
|
|
- strip: fix ET_REL debuginfo files (#156341)
|
|
|
|
* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-3
|
|
- fix some bugs in new code, reenable make check
|
|
|
|
* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-2
|
|
- disable make check for most arches, for now
|
|
|
|
* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-1
|
|
- update to 0.106
|
|
|
|
* Mon Mar 28 2005 Roland McGrath <roland@redhat.com> - 0.104-2
|
|
- update to 0.104
|
|
|
|
* Wed Mar 23 2005 Jakub Jelinek <jakub@redhat.com> 0.103-2
|
|
- update to 0.103
|
|
|
|
* Wed Feb 16 2005 Jakub Jelinek <jakub@redhat.com> 0.101-2
|
|
- update to 0.101.
|
|
- use %%configure macro to get CFLAGS etc. right
|
|
|
|
* Sat Feb 5 2005 Jeff Johnson <jbj@redhat.com> 0.99-2
|
|
- upgrade to 0.99.
|
|
|
|
* Sun Sep 26 2004 Jeff Johnson <jbj@redhat.com> 0.97-3
|
|
- upgrade to 0.97.
|
|
|
|
* Tue Aug 17 2004 Jakub Jelinek <jakub@redhat.com> 0.95-5
|
|
- upgrade to 0.96.
|
|
|
|
* Mon Jul 5 2004 Jakub Jelinek <jakub@redhat.com> 0.95-4
|
|
- rebuilt with GCC 3.4.x, workaround VLA + alloca mixing
|
|
warning
|
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Fri Apr 2 2004 Jeff Johnson <jbj@redhat.com> 0.95-2
|
|
- upgrade to 0.95.
|
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
|
|
- upgrade to 0.94
|
|
|
|
* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
|
|
- upgrade to 0.93
|
|
|
|
* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
|
|
- full version
|
|
- macroized spec file for GPL or OSL builds
|
|
- include only libelf under GPL plus wrapper scripts
|
|
|
|
* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
|
|
- macroized spec file for GPL or OSL builds
|
|
|
|
* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
|
|
- split elfutils-devel into two packages.
|
|
|
|
* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
|
|
- include only libelf under GPL plus wrapper scripts
|
|
|
|
* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
|
|
- readelf, not readline, in %%description (#111214).
|
|
|
|
* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
|
|
- update to 0.89 (fix eu-strip)
|
|
|
|
* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
|
|
- update to 0.86 (fix eu-strip on s390x/alpha)
|
|
- libebl is an archive now; remove references to DSO
|
|
|
|
* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
|
|
- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
|
|
|
|
* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
|
|
- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
|
|
|
|
* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
|
|
- upgrade to 0.82 (strip tests fixed on big-endian).
|
|
|
|
* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
|
|
- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
|
|
|
|
* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
|
|
- upgrade to 0.80 (debugedit changes for kernel in progress).
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
|
|
- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
|
|
|
|
* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
|
|
- upgrade to 0.78 (libdwarf bugfix, libdw additions).
|
|
|
|
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
|
|
- debuginfo rebuild
|
|
|
|
* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
|
|
- use the correct way of identifying the section via the sh_info link.
|
|
|
|
* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
|
|
- update to 0.75 (eu-strip -g fix)
|
|
|
|
* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
|
|
- update to 0.74 (fix for writing with some non-dirty sections)
|
|
|
|
* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
|
|
- another -0.73 update (with sparc fixes).
|
|
- do "make check" in %%check, not %%install, section.
|
|
|
|
* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
|
|
- update to 0.73 (with s390 fixes).
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
- rebuilt
|
|
|
|
* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
|
|
- fix arguments to gelf_getsymshndx and elf_getshstrndx
|
|
- fix other warnings
|
|
- reenable checks on s390x
|
|
|
|
* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
|
|
- temporarily disable checks on s390x, until someone has
|
|
time to look at it
|
|
|
|
* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
|
|
- update to 0.72
|
|
|
|
* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
|
|
- update to 0.71
|
|
|
|
* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
|
|
- update to 0.69.
|
|
- add "make check" and segfault avoidance patch.
|
|
- elfutils-libelf needs to run ldconfig.
|
|
|
|
* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
|
|
- update to 0.68.
|
|
|
|
* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
|
|
- update to 0.67.
|
|
|
|
* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
|
|
- update to 0.65.
|
|
|
|
* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
|
|
- update to 0.64.
|
|
|
|
* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
|
|
- split packages further into elfutils-libelf
|
|
|
|
* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
|
|
- update to 0.63.
|
|
|
|
* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
|
|
- Adjust for dropping libtool
|
|
|
|
* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
|
|
- update to 0.59
|
|
|
|
* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
|
|
- update to 0.56
|
|
|
|
* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
|
|
- update to 0.54
|
|
|
|
* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
|
|
- update to 0.53
|
|
- drop x86_64 hack, ICE fixed in gcc-3.2-11.
|
|
|
|
* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
|
|
- get beehive to punch a rhpkg generated package.
|
|
|
|
* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
|
|
- build in 8.0.1.
|
|
- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
|
|
|
|
* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
|
|
- Add libelf-devel to conflicts for elfutils-devel
|
|
|
|
* 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.
|