cvsdist d561809
%define gpl 0
cvsdist 2a23697
Summary: A collection of utilities and DSOs to handle compiled objects.
cvsdist 2a23697
Name: elfutils
c9b1616
Version: 0.101
jbj bd2e7be
Release: 2
jbj d0b84a1
%if %{gpl}
jbj d0b84a1
License: GPL
jbj d0b84a1
%else
jbj d0b84a1
License: OSL
jbj d0b84a1
%endif
cvsdist 2a23697
Group: Development/Tools
cvsdist d561809
#URL: file://home/devel/drepper/
jbj 46d50b7
Source: elfutils-%{version}.tar.gz
c9b1616
Patch1: elfutils-%{version}-bswap.patch
c9b1616
Patch2: elfutils-%{version}-portability.patch
cvsdist 2a23697
Obsoletes: libelf libelf-devel
cvsdist 2a23697
Requires: elfutils-libelf = %{version}-%{release}
cvsdist d561809
%if %{gpl}
cvsdist d561809
Requires: binutils >= 2.14.90.0.4-26.2
cvsdist d561809
%endif
cvsdist 2a23697
cvsdist 2a23697
# ExcludeArch: xxx
cvsdist 2a23697
cvsdist 2a23697
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 2a23697
BuildRequires: gcc >= 3.2
cvsdist 142584f
BuildRequires: bison >= 1.875
cvsdist 142584f
BuildRequires: flex >= 2.5.4a
jbj d0b84a1
BuildRequires: bzip2
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 bf0c57a
symbols), readelf (to 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
jbj d0b84a1
%if %{gpl}
jbj d0b84a1
License: GPL
jbj d0b84a1
%else
jbj d0b84a1
License: OSL
jbj d0b84a1
%endif
cvsdist 2a23697
Requires: elfutils = %{version}-%{release}
cvsdist d561809
Requires: elfutils-libelf-devel = %{version}-%{release}
cvsdist 2a23697
cvsdist 2a23697
%description devel
cvsdist 2a23697
The elfutils-devel package contains the libraries to create
cvsdist d561809
applications for handling compiled objects.  libebl provides some
cvsdist d561809
higher-level ELF access functionality.  libdw provides access to
cvsdist d561809
the DWARF debugging information.  libasm provides a programmable
cvsdist d561809
assembler interface.
cvsdist 2a23697
cvsdist 2a23697
%package libelf
cvsdist 2a23697
Summary: Library to read and write ELF files.
cvsdist 2a23697
Group: Development/Tools
jbj 46d50b7
%if %{gpl}
jbj d0b84a1
License: GPL
jbj 46d50b7
%endif
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 d561809
%package libelf-devel
cvsdist d561809
Summary: Development support for libelf
cvsdist d561809
Group: Development/Tools
cvsdist d561809
Requires: elfutils-libelf = %{version}-%{release}
cvsdist d561809
Conflicts: libelf-devel
jbj 46d50b7
%if %{gpl}
jbj d0b84a1
License: GPL
jbj 46d50b7
%endif
cvsdist d561809
cvsdist d561809
%description libelf-devel
cvsdist d561809
The elfutils-libelf-devel package contains the libraries to create
cvsdist d561809
applications for handling compiled objects.  libelf allows you to
cvsdist d561809
access the internals of the ELF object file format, so you can see the
cvsdist d561809
different sections of an ELF file.
cvsdist d561809
cvsdist 2a23697
%prep
cvsdist 2a23697
%setup -q
c9b1616
%patch1 -p0
c9b1616
%patch2 -p1
cvsdist 2a23697
cvsdist 2a23697
%build
cvsdist 2a23697
mkdir build-%{_target_platform}
cvsdist 2a23697
cd build-%{_target_platform}
c9b1616
cat > configure <<\EOF
c9b1616
#!/bin/sh
c9b1616
exec ../configure "$@"
c9b1616
EOF
c9b1616
chmod +x configure
c9b1616
%configure --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 d561809
%if !%{gpl}
cvsdist 2a23697
chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
cvsdist d561809
%endif
cvsdist 2a23697
cvsdist 2a23697
cd ..
cvsdist 2a23697
cvsdist d561809
%if !%{gpl}
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 .%{_libdir}/libasm-%{version}.so
cvsdist 2a23697
  rm -f .%{_libdir}/libasm.a
cvsdist d561809
  rm -f .%{_libdir}/libdw.so
cvsdist 2a23697
  rm -f .%{_libdir}/libdw.a
cvsdist 2a23697
}
cvsdist d561809
%endif
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 d561809
%doc README TODO
cvsdist d561809
%if %{gpl}
cvsdist d561809
%doc fake-src/FULL
cvsdist d561809
%endif
cvsdist 2a23697
%{_bindir}/eu-elflint
cvsdist 2a23697
%{_bindir}/eu-nm
cvsdist 2a23697
%{_bindir}/eu-readelf
cvsdist 2a23697
%{_bindir}/eu-size
cvsdist 2a23697
%{_bindir}/eu-strip
cvsdist d561809
%if !%{gpl}
cvsdist d561809
#%{_bindir}/eu-ld
cvsdist 2a23697
#%{_libdir}/libasm-%{version}.so
cvsdist d561809
%{_libdir}/libdw-%{version}.so
cvsdist 2a23697
#%{_libdir}/libasm*.so.*
cvsdist d561809
%{_libdir}/libdw*.so.*
cvsdist 2a23697
%dir %{_libdir}/elfutils
cvsdist 2a23697
%{_libdir}/elfutils/lib*.so
cvsdist d561809
%endif
cvsdist 2a23697
cvsdist 2a23697
%files devel
cvsdist 2a23697
%defattr(-,root,root)
cvsdist 2a23697
%{_includedir}/dwarf.h
cvsdist 2a23697
%dir %{_includedir}/elfutils
cvsdist 2a23697
%{_includedir}/elfutils/elf-knowledge.h
cvsdist d561809
%if !%{gpl}
cvsdist 2a23697
%{_includedir}/elfutils/libebl.h
cvsdist 2a23697
#%{_libdir}/libasm.a
cvsdist 2a23697
%{_libdir}/libebl.a
cvsdist 2a23697
#%{_libdir}/libdw.a
cvsdist 2a23697
#%{_libdir}/libasm.so
cvsdist 2a23697
#%{_libdir}/libdw.so
cvsdist d561809
%endif
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 d561809
%files libelf-devel
cvsdist d561809
%defattr(-,root,root)
cvsdist d561809
%{_includedir}/libelf.h
cvsdist d561809
%{_includedir}/gelf.h
cvsdist d561809
%{_includedir}/nlist.h
cvsdist d561809
%{_libdir}/libelf.a
cvsdist d561809
%{_libdir}/libelf.so
cvsdist d561809
cvsdist 2a23697
%changelog
c9b1616
* Wed Feb 16 2005 Jakub Jelinek <jakub@redhat.com> 0.101-2
c9b1616
- update to 0.101.
c9b1616
- use %%configure macro to get CFLAGS etc. right
c9b1616
jbj d0b84a1
* Sat Feb  5 2005 Jeff Johnson <jbj@redhat.com> 0.99-2
jbj d0b84a1
- upgrade to 0.99.
jbj d0b84a1
jbj 22fe2dc
* Sun Sep 26 2004 Jeff Johnson <jbj@redhat.com> 0.97-3
jbj 46d50b7
- upgrade to 0.97.
jbj 46d50b7
cvsdist e2a3888
* Tue Aug 17 2004 Jakub Jelinek <jakub@redhat.com> 0.95-5
cvsdist e2a3888
- upgrade to 0.96.
cvsdist e2a3888
cvsdist e95b771
* Mon Jul  5 2004 Jakub Jelinek <jakub@redhat.com> 0.95-4
cvsdist e95b771
- rebuilt with GCC 3.4.x, workaround VLA + alloca mixing
cvsdist e95b771
  warning
cvsdist e95b771
cvsdist e95b771
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e95b771
- rebuilt
cvsdist e95b771
cvsdist 142584f
* Fri Apr  2 2004 Jeff Johnson <jbj@redhat.com> 0.95-2
cvsdist 142584f
- upgrade to 0.95.
cvsdist 142584f
cvsdist d561809
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist d561809
- rebuilt
cvsdist d561809
cvsdist d561809
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist d561809
- rebuilt
cvsdist d561809
cvsdist d561809
* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
cvsdist d561809
- upgrade to 0.94
cvsdist d561809
cvsdist d561809
* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
cvsdist d561809
- upgrade to 0.93
cvsdist d561809
cvsdist d561809
* Thu Jan  8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
cvsdist d561809
- full version
cvsdist d561809
- macroized spec file for GPL or OSL builds
cvsdist d561809
- include only libelf under GPL plus wrapper scripts
cvsdist d561809
cvsdist d561809
* Wed Jan  7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
cvsdist d561809
- macroized spec file for GPL or OSL builds
cvsdist d561809
cvsdist d561809
* Wed Jan  7 2004 Ulrich Drepper <drepper@redhat.com>
cvsdist d561809
- split elfutils-devel into two packages.
cvsdist d561809
cvsdist d561809
* Wed Jan  7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
cvsdist d561809
- include only libelf under GPL plus wrapper scripts
cvsdist d561809
cvsdist bf0c57a
* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
cvsdist bf0c57a
- readelf, not readline, in %%description (#111214).
cvsdist bf0c57a
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.