diff options
Diffstat (limited to 'elfutils/config/elfutils.spec.in')
-rw-r--r-- | elfutils/config/elfutils.spec.in | 96 |
1 files changed, 62 insertions, 34 deletions
diff --git a/elfutils/config/elfutils.spec.in b/elfutils/config/elfutils.spec.in index f5377b0e..8dff0efe 100644 --- a/elfutils/config/elfutils.spec.in +++ b/elfutils/config/elfutils.spec.in @@ -1,24 +1,31 @@ -%define gpl 0 +# -*- rpm-spec-*- +%define fake 0 Summary: A collection of utilities and DSOs to handle compiled objects. Name: elfutils Version: @PACKAGE_VERSION@ Release: 1 -Copyright: OSL +%if %{fake} +License: GPL +%else +License: OSL +%endif Group: Development/Tools #URL: file://home/devel/drepper/ Source: elfutils-%{version}.tar.gz Obsoletes: libelf libelf-devel Requires: elfutils-libelf = %{version}-%{release} -%if %{gpl} +%if %{fake} Requires: binutils >= 2.14.90.0.4-26.2 %endif +Requires: glibc >= 2.3.1-2 # ExcludeArch: xxx BuildRoot: %{_tmppath}/%{name}-root -BuildRequires: gcc >= 3.2 +BuildRequires: gcc >= 3.4 BuildRequires: bison >= 1.875 BuildRequires: flex >= 2.5.4a +BuildRequires: bzip2 %define _gnu %{nil} %define _programprefix eu- @@ -35,7 +42,11 @@ handling. %package devel Summary: Development libraries to handle compiled objects. Group: Development/Tools -Copyright: OSL +%if %{fake} +License: GPL +%else +License: OSL +%endif Requires: elfutils = %{version}-%{release} Requires: elfutils-libelf-devel = %{version}-%{release} @@ -49,8 +60,8 @@ assembler interface. %package libelf Summary: Library to read and write ELF files. Group: Development/Tools -%if %{gpl} -Copyright: GPL +%if %{fake} +License: GPL %endif %description libelf @@ -64,8 +75,8 @@ Summary: Development support for libelf Group: Development/Tools Requires: elfutils-libelf = %{version}-%{release} Conflicts: libelf-devel -%if %{gpl} -Copyright: GPL +%if %{fake} +License: GPL %endif %description libelf-devel @@ -78,47 +89,31 @@ different sections of an ELF file. %setup -q %build -mkdir build-%{_target_platform} -cd build-%{_target_platform} -../configure \ - --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \ - --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \ - --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} \ - --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} \ - --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \ - --infodir=%{_infodir} --program-prefix=%{_programprefix} --enable-shared -cd .. +%configure --program-prefix=%{_programprefix} +make %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_prefix} -cd build-%{_target_platform} -#make check %makeinstall chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so* -%if !%{gpl} +%if !%{fake} chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so* %endif -cd .. - -%if !%{gpl} +%if !%{fake} # XXX Nuke unpackaged files { cd ${RPM_BUILD_ROOT} rm -f .%{_bindir}/eu-ld rm -f .%{_includedir}/elfutils/libasm.h - rm -f .%{_includedir}/elfutils/libdw.h rm -f .%{_libdir}/libasm-%{version}.so rm -f .%{_libdir}/libasm.a - rm -f .%{_libdir}/libdw.so - rm -f .%{_libdir}/libdw.a } %endif %check -cd build-%{_target_platform} make check %clean @@ -135,7 +130,7 @@ rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc README TODO -%if %{gpl} +%if %{fake} %doc fake-src/FULL %endif %{_bindir}/eu-elflint @@ -143,7 +138,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_bindir}/eu-readelf %{_bindir}/eu-size %{_bindir}/eu-strip -%if !%{gpl} +%{_bindir}/eu-findtextrel +%{_bindir}/eu-addr2line +%if !%{fake} #%{_bindir}/eu-ld #%{_libdir}/libasm-%{version}.so %{_libdir}/libdw-%{version}.so @@ -158,13 +155,14 @@ rm -rf ${RPM_BUILD_ROOT} %{_includedir}/dwarf.h %dir %{_includedir}/elfutils %{_includedir}/elfutils/elf-knowledge.h -%if !%{gpl} +%if !%{fake} %{_includedir}/elfutils/libebl.h +%{_includedir}/elfutils/libdw.h #%{_libdir}/libasm.a %{_libdir}/libebl.a -#%{_libdir}/libdw.a +%{_libdir}/libdw.a #%{_libdir}/libasm.so -#%{_libdir}/libdw.so +%{_libdir}/libdw.so %endif %files libelf @@ -181,6 +179,36 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libelf.so %changelog +* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.108-1 +- strip: fix bug introduced in last change + +* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.107-1 +- readelf: improve DWARF output format +- strip: support Linux kernel modules + +* Fri Apr 29 2005 Ulrich Drepper <drepper@redhat.com> 0.107-1 +- readelf: improve DWARF output format + +* Mon Apr 4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1 +- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f +unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge +tsrc_file + +* Fri Apr 1 2005 Ulrich Drepper <drepper@redhat.com> 0.105-1 +- addr2line: New program +- libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs +,dwarf_func_*. +- findtextrel: use dwarf_addrdie + +* Mon Mar 28 2005 Ulrich Drepper <drepper@redhat.com> 0.104-1 +- findtextrel: New program. + +* Mon Mar 21 2005 Ulrich Drepper <drepper@redhat.com> 0.103-1 +- libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug. + +* Tue Feb 22 2005 Ulrich Drepper <drepper@redhat.com> 0.102-1 +- More Makefile and spec file cleanups. + * Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1 - upgrade to 0.94 |