cvsdist 2a23697
Summary: A collection of utilities and DSOs to handle compiled objects.
cvsdist 2a23697
Name: elfutils
cvsdist 2a23697
Version: 0.67
cvsdist 2a23697
Release: 3
cvsdist 2a23697
Copyright: GPL
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
Patch: elfutils-0.67.patch
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
%patch -p1
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 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 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 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}/libebl-%{version}.so
cvsdist 2a23697
#%{_libdir}/libdw-%{version}.so
cvsdist 2a23697
%{_libdir}/libdwarf-%{version}.so
cvsdist 2a23697
#%{_libdir}/libasm*.so.*
cvsdist 2a23697
%{_libdir}/libebl*.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}/libebl.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 2a23697
* Mon Dec  9 2002 Jakub Jelinek <jakub@redhat.com> 0.67-3
cvsdist 2a23697
- fix a typo in SH_ENTSIZE_HASH.
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.