cvsdist 2a23697
Summary: A collection of utilities and DSOs to handle compiled objects.
cvsdist 2a23697
Name: elfutils
cvsdist 147b5aa
Version: 0.89
cvsdist 147b5aa
Release: 2
cvsdist 147b5aa
Copyright: OSL
cvsdist 2a23697
Group: Development/Tools
cvsdist 2a23697
#URL: file://home/devel/drepper
cvsdist 2a23697
Source: elfutils-%{version}.tar.gz
cvsdist 2a23697
Obsoletes: libelf libelf-devel
cvsdist 2a23697
Requires: elfutils-libelf = %{version}-%{release}
cvsdist 2a23697
cvsdist 2a23697
# ExcludeArch: xxx
cvsdist 2a23697
cvsdist 2a23697
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 2a23697
BuildRequires: gcc >= 3.2
cvsdist 2a23697
BuildRequires: sharutils
cvsdist 2a23697
cvsdist 2a23697
%define _gnu %{nil}
cvsdist 2a23697
%define _programprefix eu-
cvsdist 2a23697
cvsdist 2a23697
%description
cvsdist 2a23697
Elfutils is a collection of utilities, including ld (a linker),
cvsdist 2a23697
nm (for listing symbols from object files), size (for listing the
cvsdist 2a23697
section sizes of an object or archive file), strip (for discarding
cvsdist 2a23697
symbols), readline (the see the raw ELF file structures), and elflint
cvsdist 2a23697
(to check for well-formed ELF files).  Also included are numerous
cvsdist 2a23697
helper libraries which implement DWARF, ELF, and machine-specific ELF
cvsdist 2a23697
handling.
cvsdist 2a23697
cvsdist 2a23697
%package devel
cvsdist 2a23697
Summary: Development libraries to handle compiled objects.
cvsdist 2a23697
Group: Development/Tools
cvsdist 2a23697
Requires: elfutils = %{version}-%{release}
cvsdist 2a23697
cvsdist 2a23697
%description devel
cvsdist 2a23697
The elfutils-devel package contains the libraries to create
cvsdist 2a23697
applications for handling compiled objects.  libelf allows you to
cvsdist 2a23697
access the internals of the ELF object file format, so you can see the
cvsdist 2a23697
different sections of an ELF file.  libebl provides some higher-level
cvsdist 2a23697
ELF access functionality.  libdwarf provides access to the DWARF
cvsdist 2a23697
debugging information.  libasm provides a programmable assembler
cvsdist 2a23697
interface.
cvsdist 2a23697
cvsdist 2a23697
%package libelf
cvsdist 2a23697
Summary: Library to read and write ELF files.
cvsdist 2a23697
Group: Development/Tools
cvsdist 2a23697
cvsdist 2a23697
%description libelf
cvsdist 2a23697
The elfutils-libelf package provides a DSO which allows reading and
cvsdist 2a23697
writing ELF files on a high level.  Third party programs depend on
cvsdist 2a23697
this package to read internals of ELF files.  The programs of the
cvsdist 2a23697
elfutils package use it also to generate new ELF files.
cvsdist 2a23697
cvsdist 2a23697
%prep
cvsdist 2a23697
%setup -q
cvsdist 2a23697
cvsdist 2a23697
%build
cvsdist 2a23697
mkdir build-%{_target_platform}
cvsdist 2a23697
cd build-%{_target_platform}
cvsdist 2a23697
../configure \
cvsdist 2a23697
  --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
cvsdist 2a23697
  --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \
cvsdist 2a23697
  --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} \
cvsdist 2a23697
  --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} \
cvsdist 2a23697
  --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \
cvsdist 2a23697
  --infodir=%{_infodir} --program-prefix=%{_programprefix} --enable-shared
cvsdist 2a23697
cd ..
cvsdist 2a23697
cvsdist 2a23697
%install
cvsdist 2a23697
rm -rf ${RPM_BUILD_ROOT}
cvsdist 2a23697
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
cvsdist 2a23697
cvsdist 2a23697
cd build-%{_target_platform}
cvsdist b2ba691
#make check
cvsdist 2a23697
%makeinstall
cvsdist 2a23697
cvsdist 2a23697
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
cvsdist 2a23697
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
cvsdist 2a23697
cvsdist 2a23697
cd ..
cvsdist 2a23697
cvsdist 2a23697
# XXX Nuke unpackaged files
cvsdist 2a23697
{ cd ${RPM_BUILD_ROOT}
cvsdist 2a23697
  rm -f .%{_bindir}/eu-ld
cvsdist 2a23697
  rm -f .%{_includedir}/elfutils/libasm.h
cvsdist 2a23697
  rm -f .%{_includedir}/elfutils/libdw.h
cvsdist 2a23697
  rm -f .%{_includedir}/elfutils/libdwarf.h
cvsdist 2a23697
  rm -f .%{_libdir}/libasm-%{version}.so
cvsdist 2a23697
  rm -f .%{_libdir}/libasm.a
cvsdist 2a23697
  rm -f .%{_libdir}/libdw-%{version}.so
cvsdist 2a23697
  rm -f .%{_libdir}/libdw.a
cvsdist 2a23697
  rm -f .%{_libdir}/libdwarf.a
cvsdist 2a23697
}
cvsdist 2a23697
cvsdist b2ba691
%check
cvsdist b2ba691
cd build-%{_target_platform}
cvsdist b2ba691
make check
cvsdist b2ba691
cvsdist 2a23697
%clean
cvsdist 2a23697
rm -rf ${RPM_BUILD_ROOT}
cvsdist 2a23697
cvsdist 2a23697
%post -p /sbin/ldconfig
cvsdist 2a23697
cvsdist 2a23697
%postun -p /sbin/ldconfig
cvsdist 2a23697
cvsdist b2ba691
%post libelf -p /sbin/ldconfig
cvsdist b2ba691
cvsdist b2ba691
%postun libelf -p /sbin/ldconfig
cvsdist b2ba691
cvsdist 2a23697
%files
cvsdist 2a23697
%defattr(-,root,root)
cvsdist 2a23697
%doc README TODO libdwarf/AVAILABLE
cvsdist 2a23697
%{_bindir}/eu-elflint
cvsdist 2a23697
#%{_bindir}/eu-ld
cvsdist 2a23697
%{_bindir}/eu-nm
cvsdist 2a23697
%{_bindir}/eu-readelf
cvsdist 2a23697
%{_bindir}/eu-size
cvsdist 2a23697
%{_bindir}/eu-strip
cvsdist 2a23697
#%{_libdir}/libasm-%{version}.so
cvsdist 2a23697
#%{_libdir}/libdw-%{version}.so
cvsdist 2a23697
%{_libdir}/libdwarf-%{version}.so
cvsdist 2a23697
#%{_libdir}/libasm*.so.*
cvsdist 2a23697
#%{_libdir}/libdw*.so.*
cvsdist 2a23697
%{_libdir}/libdwarf*.so.*
cvsdist 2a23697
%dir %{_libdir}/elfutils
cvsdist 2a23697
%{_libdir}/elfutils/lib*.so
cvsdist 2a23697
cvsdist 2a23697
%files devel
cvsdist 2a23697
%defattr(-,root,root)
cvsdist 2a23697
%{_includedir}/dwarf.h
cvsdist 2a23697
%{_includedir}/libelf.h
cvsdist 2a23697
%{_includedir}/gelf.h
cvsdist 2a23697
%{_includedir}/nlist.h
cvsdist 2a23697
%dir %{_includedir}/elfutils
cvsdist 2a23697
%{_includedir}/elfutils/elf-knowledge.h
cvsdist 2a23697
%{_includedir}/elfutils/libebl.h
cvsdist 2a23697
#%{_libdir}/libasm.a
cvsdist 2a23697
%{_libdir}/libebl.a
cvsdist 2a23697
%{_libdir}/libelf.a
cvsdist 2a23697
#%{_libdir}/libdw.a
cvsdist 2a23697
#%{_libdir}/libasm.so
cvsdist 2a23697
%{_libdir}/libelf.so
cvsdist 2a23697
#%{_libdir}/libdw.so
cvsdist 2a23697
#%{_libdir}/libdwarf.so
cvsdist 2a23697
cvsdist 2a23697
%files libelf
cvsdist 2a23697
%defattr(-,root,root)
cvsdist 2a23697
%{_libdir}/libelf-%{version}.so
cvsdist 2a23697
%{_libdir}/libelf*.so.*
cvsdist 2a23697
cvsdist 2a23697
%changelog
cvsdist 147b5aa
* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
cvsdist 147b5aa
- update to 0.89 (fix eu-strip)
cvsdist 147b5aa
cvsdist 147b5aa
* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
cvsdist 147b5aa
- update to 0.86 (fix eu-strip on s390x/alpha)
cvsdist 147b5aa
- libebl is an archive now; remove references to DSO
cvsdist 147b5aa
cvsdist 147b5aa
* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
cvsdist 147b5aa
- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
cvsdist 147b5aa
cvsdist 147b5aa
* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
cvsdist 147b5aa
- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
cvsdist 147b5aa
cvsdist 147b5aa
* Wed Jul  9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
cvsdist 147b5aa
- upgrade to 0.82 (strip tests fixed on big-endian).
cvsdist 147b5aa
cvsdist 147b5aa
* Tue Jul  8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
cvsdist 147b5aa
- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
cvsdist 147b5aa
cvsdist 147b5aa
* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
cvsdist 147b5aa
- upgrade to 0.80 (debugedit changes for kernel in progress).
cvsdist 147b5aa
cvsdist 147b5aa
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 147b5aa
- rebuilt
cvsdist 147b5aa
cvsdist 147b5aa
* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
cvsdist 147b5aa
- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
cvsdist 147b5aa
cvsdist 147b5aa
* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
cvsdist 147b5aa
- upgrade to 0.78 (libdwarf bugfix, libdw additions).
cvsdist 147b5aa
cvsdist b2ba691
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
cvsdist b2ba691
- debuginfo rebuild
cvsdist b2ba691
cvsdist b2ba691
* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
cvsdist b2ba691
- use the correct way of identifying the section via the sh_info link.
cvsdist b2ba691
cvsdist b2ba691
* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
cvsdist b2ba691
- update to 0.75 (eu-strip -g fix)
cvsdist b2ba691
cvsdist b2ba691
* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
cvsdist b2ba691
- update to 0.74 (fix for writing with some non-dirty sections)
cvsdist b2ba691
cvsdist b2ba691
* Thu Feb  6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
cvsdist b2ba691
- another -0.73 update (with sparc fixes).
cvsdist b2ba691
- do "make check" in %%check, not %%install, section.
cvsdist b2ba691
cvsdist b2ba691
* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
cvsdist b2ba691
- update to 0.73 (with s390 fixes).
cvsdist b2ba691
cvsdist b2ba691
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist b2ba691
- rebuilt
cvsdist b2ba691
cvsdist b2ba691
* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
cvsdist b2ba691
- fix arguments to gelf_getsymshndx and elf_getshstrndx
cvsdist b2ba691
- fix other warnings
cvsdist b2ba691
- reenable checks on s390x
cvsdist b2ba691
cvsdist b2ba691
* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
cvsdist b2ba691
- temporarily disable checks on s390x, until someone has
cvsdist b2ba691
  time to look at it
cvsdist b2ba691
cvsdist b2ba691
* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
cvsdist b2ba691
- update to 0.72
cvsdist b2ba691
cvsdist b2ba691
* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
cvsdist b2ba691
- update to 0.71
cvsdist b2ba691
cvsdist b2ba691
* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
cvsdist b2ba691
- update to 0.69.
cvsdist b2ba691
- add "make check" and segfault avoidance patch.
cvsdist b2ba691
- elfutils-libelf needs to run ldconfig.
cvsdist b2ba691
cvsdist b2ba691
* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
cvsdist b2ba691
- update to 0.68.
cvsdist 2a23697
cvsdist 2a23697
* Fri Dec  6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
cvsdist 2a23697
- update to 0.67.
cvsdist 2a23697
cvsdist 2a23697
* Tue Dec  3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
cvsdist 2a23697
- update to 0.65.
cvsdist 2a23697
cvsdist 2a23697
* Mon Dec  2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
cvsdist 2a23697
- update to 0.64.
cvsdist 2a23697
cvsdist 2a23697
* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
cvsdist 2a23697
- split packages further into elfutils-libelf
cvsdist 2a23697
cvsdist 2a23697
* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
cvsdist 2a23697
- update to 0.63.
cvsdist 2a23697
cvsdist 2a23697
* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
cvsdist 2a23697
- Adjust for dropping libtool
cvsdist 2a23697
cvsdist 2a23697
* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
cvsdist 2a23697
- update to 0.59
cvsdist 2a23697
cvsdist 2a23697
* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
cvsdist 2a23697
- update to 0.56
cvsdist 2a23697
cvsdist 2a23697
* Thu Nov  7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
cvsdist 2a23697
- update to 0.54
cvsdist 2a23697
cvsdist 2a23697
* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
cvsdist 2a23697
- update to 0.53
cvsdist 2a23697
- drop x86_64 hack, ICE fixed in gcc-3.2-11.
cvsdist 2a23697
cvsdist 2a23697
* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
cvsdist 2a23697
- get beehive to punch a rhpkg generated package.
cvsdist 2a23697
cvsdist 2a23697
* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
cvsdist 2a23697
- build in 8.0.1.
cvsdist 2a23697
- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
cvsdist 2a23697
cvsdist 2a23697
* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
cvsdist 2a23697
- Add libelf-devel to conflicts for elfutils-devel
cvsdist 2a23697
cvsdist 2a23697
* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
cvsdist 2a23697
- Split into runtime and devel package
cvsdist 2a23697
cvsdist 2a23697
* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
cvsdist 2a23697
- integrate into official sources
cvsdist 2a23697
cvsdist 2a23697
* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
cvsdist 2a23697
- Swaddle.