2008-10-14 02:26:42 +02:00
|
|
|
#
|
2011-05-02 11:57:50 +02:00
|
|
|
# spec file for package elfutils
|
2008-10-14 02:26:42 +02:00
|
|
|
#
|
2011-05-02 11:57:50 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-10-14 02:26:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: elfutils
|
2010-05-25 10:29:40 +02:00
|
|
|
License: GPLv2 ; GPLv2+ ; LGPLv2.1+
|
2011-04-28 16:06:03 +02:00
|
|
|
Version: 0.152
|
|
|
|
Release: 1
|
2008-11-03 01:01:23 +01:00
|
|
|
Summary: Higher-level library to access ELF
|
|
|
|
Group: System/Libraries
|
2008-10-14 02:26:42 +02:00
|
|
|
Url: http://elfutils.fedorahosted.org
|
2010-05-25 10:29:40 +02:00
|
|
|
Source: elfutils-%{version}.tar.bz2
|
2011-04-28 16:06:03 +02:00
|
|
|
Source1: README-BEFORE-ADDING-PATCHES
|
2010-02-10 12:24:02 +01:00
|
|
|
Source2: baselibs.conf
|
2010-05-25 10:29:40 +02:00
|
|
|
Patch1: elfutils-portability.patch
|
|
|
|
Patch2: elfutils-robustify.patch
|
2008-10-14 02:26:42 +02:00
|
|
|
Patch3: elfutils-no-po-test-build.diff
|
2010-05-25 10:29:40 +02:00
|
|
|
Patch4: libebl-prototype-fix.diff
|
|
|
|
Patch5: elfutils-uninitialized.diff
|
|
|
|
Patch6: elfutils-0.137-dwarf-header-check-fix.diff
|
2010-09-17 20:47:03 +02:00
|
|
|
Patch7: elfutils-0.148-dont-crash.diff
|
2008-10-14 02:26:42 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-05-25 10:29:40 +02:00
|
|
|
BuildRequires: bison flex
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%description
|
2008-11-03 01:01:23 +01:00
|
|
|
This package provides a higher-level library to access ELF files. This
|
|
|
|
is a part of elfutils package.
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%package -n libasm1
|
|
|
|
Summary: A collection of utilities and DSOs to handle compiled objects
|
|
|
|
Group: Development/Tools/Other
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2 ; GPLv2+ ; LGPLv2.1+
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%description -n libasm1
|
|
|
|
Elfutils is a collection of utilities, including ld (a linker), nm (for
|
|
|
|
listing symbols from object files), size (for listing the section sizes
|
|
|
|
of an object or archive file), strip (for discarding symbols), readline
|
|
|
|
(the see the raw ELF file structures), and elflint (to check for
|
|
|
|
well-formed ELF files). Also included are numerous helper libraries
|
|
|
|
which implement DWARF, ELF, and machine-specific ELF handling.
|
|
|
|
|
|
|
|
%package -n libasm-devel
|
|
|
|
Summary: A collection of utilities and DSOs to handle compiled objects
|
|
|
|
Group: Development/Tools/Other
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
Requires: glibc-devel, libasm1 = %{version}
|
|
|
|
|
|
|
|
%description -n libasm-devel
|
|
|
|
Elfutils is a collection of utilities, including ld (a linker), nm (for
|
|
|
|
listing symbols from object files), size (for listing the section sizes
|
|
|
|
of an object or archive file), strip (for discarding symbols), readline
|
|
|
|
(the see the raw ELF file structures), and elflint (to check for
|
|
|
|
well-formed ELF files). Also included are numerous helper libraries
|
|
|
|
which implement DWARF, ELF, and machine-specific ELF handling.
|
|
|
|
|
|
|
|
%package -n libebl1
|
|
|
|
Summary: A collection of utilities and DSOs to handle compiled objects
|
|
|
|
Group: Development/Tools/Other
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
Provides: libebl = %{version}
|
|
|
|
Obsoletes: libebl < %{version}
|
|
|
|
|
|
|
|
%description -n libebl1
|
|
|
|
Elfutils is a collection of utilities, including ld (a linker), nm (for
|
|
|
|
listing symbols from object files), size (for listing the section sizes
|
|
|
|
of an object or archive file), strip (for discarding symbols), readline
|
|
|
|
(the see the raw ELF file structures), and elflint (to check for
|
|
|
|
well-formed ELF files). Also included are numerous helper libraries
|
|
|
|
which implement DWARF, ELF, and machine-specific ELF handling.
|
|
|
|
|
|
|
|
%package -n libebl-devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
Requires: glibc-devel, libebl1 = %{version}, libdw-devel = %{version}
|
|
|
|
|
|
|
|
%description -n libebl-devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%package -n libelf1
|
|
|
|
Summary: Library to read and write ELF files
|
|
|
|
Group: System/Libraries
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%description -n libelf1
|
|
|
|
This package provide a high-level library to read and write ELF files.
|
|
|
|
This is a part of elfutils package.
|
|
|
|
|
|
|
|
%package -n libelf-devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
Requires: glibc-devel, libelf1 = %{version}
|
|
|
|
Conflicts: libelf0-devel
|
|
|
|
|
|
|
|
%description -n libelf-devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%package -n libdw1
|
|
|
|
Summary: Library to access DWARF debugging information
|
|
|
|
Group: System/Libraries
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%description -n libdw1
|
|
|
|
This package provide a high-level library to access the DWARF debugging
|
|
|
|
information. This is a part of elfutils package.
|
|
|
|
|
|
|
|
%package -n libdw-devel
|
2009-02-19 18:07:55 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2008-10-14 02:26:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-02-10 12:24:02 +01:00
|
|
|
License: GPLv2+
|
2009-02-19 18:07:55 +01:00
|
|
|
Requires: glibc-devel, libdw1 = %{version}
|
|
|
|
Requires: libelf-devel = %{version}
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%description -n libdw-devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n elfutils-%{version}
|
|
|
|
%patch1 -p1
|
2010-05-25 10:29:40 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2010-09-17 20:47:03 +02:00
|
|
|
%patch7 -p1
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --program-prefix=eu-
|
2010-07-22 11:19:45 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
# remove unneeded files
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2010-05-25 10:29:40 +02:00
|
|
|
ls -lR $RPM_BUILD_ROOT%{_libdir}/libelf*
|
2008-10-14 02:26:42 +02:00
|
|
|
|
2009-02-19 18:07:55 +01:00
|
|
|
%post -n libebl1 -p /sbin/ldconfig
|
|
|
|
|
2008-10-14 02:26:42 +02:00
|
|
|
%post -n libelf1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libdw1 -p /sbin/ldconfig
|
|
|
|
|
2009-02-19 18:07:55 +01:00
|
|
|
%postun -n libebl1 -p /sbin/ldconfig
|
|
|
|
|
2008-10-14 02:26:42 +02:00
|
|
|
%postun -n libelf1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdw1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING EXCEPTION NEWS NOTES README THANKS TODO
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n libasm1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libasm.so.*
|
|
|
|
%{_libdir}/libasm-%{version}.so
|
|
|
|
|
|
|
|
%files -n libasm-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libasm.so
|
|
|
|
%{_libdir}/libasm.a
|
|
|
|
%dir %{_includedir}/elfutils
|
|
|
|
%{_includedir}/elfutils/libasm.h
|
|
|
|
|
|
|
|
%files -n libebl1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/elfutils
|
|
|
|
|
|
|
|
%files -n libebl-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libebl.a
|
|
|
|
%dir %{_includedir}/elfutils
|
|
|
|
%{_includedir}/elfutils/libebl.h
|
|
|
|
|
|
|
|
%files -n libelf1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libelf.so.*
|
|
|
|
%{_libdir}/libelf-%{version}.so
|
|
|
|
|
|
|
|
%files -n libelf-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libelf.so
|
|
|
|
%{_libdir}/libelf.a
|
2010-05-25 10:29:40 +02:00
|
|
|
#%{_libdir}/libelf_pic.a
|
2008-10-14 02:26:42 +02:00
|
|
|
%{_includedir}/libelf.h
|
|
|
|
%{_includedir}/gelf.h
|
|
|
|
%{_includedir}/nlist.h
|
|
|
|
%dir %{_includedir}/elfutils
|
|
|
|
%{_includedir}/elfutils/elf-knowledge.h
|
2009-02-19 18:07:55 +01:00
|
|
|
%{_includedir}/elfutils/version.h
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
%files -n libdw1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libdw.so.*
|
|
|
|
%{_libdir}/libdw-%{version}.so
|
|
|
|
|
|
|
|
%files -n libdw-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libdw.a
|
|
|
|
%{_libdir}/libdw.so
|
|
|
|
%{_includedir}/dwarf.h
|
|
|
|
%dir %{_includedir}/elfutils
|
|
|
|
%{_includedir}/elfutils/libdw.h
|
|
|
|
%{_includedir}/elfutils/libdwfl.h
|
|
|
|
|
|
|
|
%changelog
|