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