2024-01-05 22:04:00 +01:00
|
|
|
%define libname libelf
|
|
|
|
%define _program_prefix eu-
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
%define portability_version 0.163
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
Name: elfutils
|
2024-01-05 22:04:02 +01:00
|
|
|
Version: 0.187
|
2024-01-05 22:04:01 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 22:04:00 +01:00
|
|
|
Summary: A collection of utilities and DSOs to handle compiled objects
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 22:04:01 +01:00
|
|
|
URL: https://sourceware.org/elfutils/
|
2024-01-05 22:04:01 +01:00
|
|
|
Source: https://sourceware.org/elfutils/ftp/%{version}/elfutils-%{version}.tar.bz2
|
2024-01-05 22:04:01 +01:00
|
|
|
## NOTE: manual intervetion needed for updates, upstream files don't have version in name
|
|
|
|
#Patch1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-0.158-robustify.patch
|
|
|
|
#Patch2: https://fedorahosted.org/releases/e/l/elfutils/%{portability_version}/elfutils-portability-%{portability_version}.patch
|
2024-01-05 22:04:00 +01:00
|
|
|
Patch3: %{name}-0.131-strip-copy-symtab.patch
|
|
|
|
Patch4: %{name}-0.131-gcc43.patch
|
|
|
|
Patch5: %{name}-0.131-off64_t.patch
|
|
|
|
License: Open Software License
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 22:04:01 +01:00
|
|
|
BuildRequires: libarchive-devel
|
|
|
|
BuildRequires: libbzip2-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: liblzma-devel
|
|
|
|
BuildRequires: libmicrohttpd-devel
|
|
|
|
BuildRequires: libsqlite-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
BuildRequires: libzstd-devel
|
2024-01-05 22:04:00 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: gcc >= 3.4
|
|
|
|
BuildRequires: bison >= 1.875
|
|
|
|
BuildRequires: flex >= 2.5.4a
|
|
|
|
BuildRequires: bzip2
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Elfutils is a collection of utilities, including:
|
|
|
|
* nm (for listing symbols from object files)
|
|
|
|
* size (for listing the section sizes of an object or archive file)
|
|
|
|
* strip (for discarding symbols)
|
|
|
|
* readelf (to see the raw ELF file structures)
|
|
|
|
* 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 %{libname}
|
|
|
|
Summary: Library to read and write ELF files
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: elfutils-libelf
|
2024-01-05 22:04:02 +01:00
|
|
|
Obsoletes: elfutils-libelf < 0.186
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
The %{libname} package provides a DSO which allows reading and writing ELF files on a high level.
|
|
|
|
Third party programs depend on this package to read internals of ELF files.
|
|
|
|
The programs of the %{name} package use it also to generate new ELF files.
|
|
|
|
|
|
|
|
%package -n %{libname}-devel
|
|
|
|
Summary: Development support for libelf
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2024-01-05 22:04:00 +01:00
|
|
|
Requires: glibc-devel
|
2024-01-05 22:04:00 +01:00
|
|
|
Provides: elfutils-libelf-devel
|
2024-01-05 22:04:02 +01:00
|
|
|
Obsoletes: elfutils-libelf-devel < 0.186
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
|
|
|
The %{libname}-devel package contains the libraries to create applications for handling compiled objects.
|
|
|
|
Libelf allows you to access the internals of the ELF object file format, so you can see the different sections of an ELF file.
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
%package -n libdw
|
|
|
|
Summary: A library that provides access to DWARF debug information stored inside ELF files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdw
|
|
|
|
The %{libname} package provides a DSO which allows reading and writing ELF files on a high level.
|
|
|
|
libdw provides access to DWARF debug information stored inside ELF files.
|
|
|
|
|
|
|
|
%package -n libdw-devel
|
|
|
|
Summary: Development support for libdw
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
Provides: elfutils-devel
|
2024-01-05 22:04:02 +01:00
|
|
|
Obsoletes: elfutils-devel < 0.186
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%description -n libdw-devel
|
|
|
|
The %{libname}-devel package contains the libraries to create applications for handling compiled objects.
|
|
|
|
libdw provides access to DWARF debug information stored inside ELF files.
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch3 -p1
|
2024-01-05 22:04:00 +01:00
|
|
|
#%patch2 -p1
|
2024-01-05 22:04:00 +01:00
|
|
|
#%patch1 -p1
|
2024-01-05 22:04:00 +01:00
|
|
|
#%patch5 -p1
|
|
|
|
#sed -i "s|-Werror||" src/Makefile.in tests/Makefile.in libelf/Makefile.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
RPM_OPT_FLAGS="${RPM_OPT_FLAGS/-Wall/}"
|
|
|
|
%configure \
|
|
|
|
--program-prefix=%{_program_prefix} \
|
2024-01-05 22:04:01 +01:00
|
|
|
--host= \
|
2024-01-05 22:04:00 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fexceptions -D__NO_INLINE__"
|
|
|
|
|
|
|
|
%if "%{_host}" == "%{_build}"
|
|
|
|
%make %{?_smp_mflags}
|
2024-01-05 22:04:00 +01:00
|
|
|
#% ifnarch arm
|
|
|
|
#% make check
|
|
|
|
#% endif
|
2024-01-05 22:04:00 +01:00
|
|
|
%else
|
|
|
|
make CC=%{_build}-gcc -C lib libeu.a
|
|
|
|
make CC=%{_build}-gcc -C libcpu i386_gendis
|
|
|
|
mv libcpu/i386_gendis libcpu/i386_gendis.build
|
|
|
|
sed -i "s|\./i386_gendis|./i386_gendis.build|" libcpu/Makefile
|
|
|
|
make -C libcpu clean
|
|
|
|
make -C lib clean
|
|
|
|
%make || %make
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
chmod +x %{buildroot}%{_libdir}/lib*.so*
|
2024-01-05 22:04:01 +01:00
|
|
|
#chmod +x %{buildroot}%{_libdir}/%{name}/lib*.so*
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
# Remove unpackaged files
|
|
|
|
rm -f %{buildroot}%{_bindir}/%{_program_prefix}{ld,objdump}
|
|
|
|
rm -f %{buildroot}%{_includedir}/%{name}/libasm.h
|
|
|
|
rm -f %{buildroot}%{_libdir}/libasm-%{version}.so
|
|
|
|
rm -f %{buildroot}%{_libdir}/libasm.{a,so,so.*}
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_sysconfdir}/profile.d/debuginfod.csh
|
|
|
|
%{_sysconfdir}/profile.d/debuginfod.sh
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_bindir}/%{_program_prefix}ar
|
|
|
|
%{_bindir}/%{_program_prefix}make-debug-archive
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_bindir}/%{_program_prefix}elfcompress
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_bindir}/%{_program_prefix}elflint
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_bindir}/%{_program_prefix}elfclassify
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_bindir}/%{_program_prefix}nm
|
|
|
|
%{_bindir}/%{_program_prefix}readelf
|
|
|
|
%{_bindir}/%{_program_prefix}size
|
|
|
|
%{_bindir}/%{_program_prefix}stack
|
|
|
|
%{_bindir}/%{_program_prefix}strip
|
|
|
|
%{_bindir}/%{_program_prefix}unstrip
|
|
|
|
%{_bindir}/%{_program_prefix}findtextrel
|
|
|
|
%{_bindir}/%{_program_prefix}addr2line
|
|
|
|
%{_bindir}/%{_program_prefix}elfcmp
|
|
|
|
%{_bindir}/%{_program_prefix}ranlib
|
|
|
|
%{_bindir}/%{_program_prefix}strings
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_bindir}/debuginfod
|
|
|
|
%{_bindir}/debuginfod-find
|
|
|
|
%{_mandir}/man1/debuginfod-find.1*
|
|
|
|
%{_mandir}/man1/eu-elfclassify.1*
|
|
|
|
%{_mandir}/man1/eu-readelf.1*
|
2024-01-05 22:04:02 +01:00
|
|
|
%{_mandir}/man7/debuginfod-client-config.7*
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_mandir}/man8/debuginfod.8*
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%files -n libdw
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_libdir}/libdw-%{version}.so
|
|
|
|
%{_libdir}/libdw.so.*
|
2024-01-05 22:04:00 +01:00
|
|
|
%doc AUTHORS COPYING
|
2024-01-05 22:04:00 +01:00
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
%files -n libdw-devel
|
2024-01-05 22:04:00 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/dwarf.h
|
2024-01-05 22:04:00 +01:00
|
|
|
%dir %{_includedir}/elfutils
|
|
|
|
%{_includedir}/elfutils/*.h
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_libdir}/libdw.a
|
|
|
|
%{_libdir}/libdw.so
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_libdir}/pkgconfig/libdw.pc
|
2024-01-05 22:04:00 +01:00
|
|
|
%doc ChangeLog NEWS README THANKS TODO
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libelf-%{version}.so
|
|
|
|
%{_libdir}/libelf.so.*
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_libdir}/libdebuginfod-%{version}.so
|
|
|
|
%{_libdir}/libdebuginfod.so.*
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/libelf.h
|
|
|
|
%{_includedir}/gelf.h
|
|
|
|
%{_includedir}/nlist.h
|
|
|
|
%{_libdir}/libelf.a
|
|
|
|
%{_libdir}/libelf.so
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_libdir}/libdebuginfod.so
|
|
|
|
%{_mandir}/man3/debuginfod_*.3*
|
|
|
|
%{_mandir}/man3/elf_*.3*
|
2024-01-05 22:04:00 +01:00
|
|
|
%{_libdir}/pkgconfig/libelf.pc
|
2024-01-05 22:04:01 +01:00
|
|
|
%{_libdir}/pkgconfig/libdebuginfod.pc
|
2024-01-05 22:04:00 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:04:02 +01:00
|
|
|
* Tue Apr 26 2022 Automatic Build System <autodist@mambasoft.it> 0.187-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:02 +01:00
|
|
|
* Fri Nov 12 2021 Automatic Build System <autodist@mambasoft.it> 0.186-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Sun May 23 2021 Automatic Build System <autodist@mambasoft.it> 0.185-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.184-1mamba
|
|
|
|
- update to 0.184
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Sun Feb 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.183-1mamba
|
|
|
|
- update to 0.183
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 0.182-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Tue Sep 22 2020 Automatic Build System <autodist@mambasoft.it> 0.181-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Thu Jun 25 2020 Automatic Build System <autodist@mambasoft.it> 0.180-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Wed May 27 2020 Automatic Build System <autodist@mambasoft.it> 0.179-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Fri Sep 20 2019 Automatic Build System <autodist@mambasoft.it> 0.177-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Wed Mar 06 2019 Automatic Build System <autodist@mambasoft.it> 0.176-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Sat Dec 15 2018 Automatic Build System <autodist@mambasoft.it> 0.175-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Sat Sep 29 2018 Automatic Build System <autodist@mambasoft.it> 0.174-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Wed Aug 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.171-2mamba
|
|
|
|
- rebuilt with debug package
|
|
|
|
|
2024-01-05 22:04:01 +01:00
|
|
|
* Wed Jun 06 2018 Automatic Build System <autodist@mambasoft.it> 0.171-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sat Mar 31 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.170-2mamba
|
|
|
|
- libelf-devel: require glibc-devel
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sat Sep 23 2017 Automatic Build System <autodist@mambasoft.it> 0.170-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sun Jun 04 2017 Automatic Build System <autodist@mambasoft.it> 0.169-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Tue Jan 03 2017 Automatic Build System <autodist@mambasoft.it> 0.168-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Mon Aug 29 2016 Automatic Build System <autodist@mambasoft.it> 0.167-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Fri Apr 15 2016 Automatic Build System <autodist@mambasoft.it> 0.166-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sat Jan 16 2016 Automatic Build System <autodist@mambasoft.it> 0.165-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sun Nov 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.164-1mamba
|
|
|
|
- update to 0.164
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sun Aug 02 2015 Automatic Build System <autodist@mambasoft.it> 0.163-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Wed Jan 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.161-1mamba
|
|
|
|
- update to 0.161
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Thu Nov 06 2014 Automatic Build System <autodist@mambasoft.it> 0.160-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Mon Sep 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.159-2mamba
|
|
|
|
- move libdw stuff to libdw and libdw-devel new subpackages
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Mon Jul 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.159-1mamba
|
|
|
|
- update to 0.159
|
|
|
|
|
2024-01-05 22:04:00 +01:00
|
|
|
* Sat Feb 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.158-1mamba
|
|
|
|
- update to 0.158
|
|
|
|
|
|
|
|
* Sat Nov 09 2013 Automatic Build System <autodist@mambasoft.it> 0.157-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 23 2013 Automatic Build System <autodist@mambasoft.it> 0.156-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 0.155-1mamba
|
|
|
|
- update to 0.155
|
|
|
|
|
|
|
|
* Wed Jan 12 2011 Automatic Build System <autodist@mambasoft.it> 0.148-2mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Nov 21 2010 Automatic Build System <autodist@mambasoft.it> 0.148-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jun 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.147-1mamba
|
|
|
|
- update to 0.147
|
|
|
|
|
|
|
|
* Mon Apr 12 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.145-1mamba
|
|
|
|
- update to 0.145
|
|
|
|
|
|
|
|
* Wed Jul 01 2009 Automatic Build System <autodist@mambasoft.it> 0.141-1mamba
|
|
|
|
- update to 0.141
|
|
|
|
|
|
|
|
* Tue Feb 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.131-2mamba
|
|
|
|
- add off64_t patch
|
|
|
|
|
|
|
|
* Sun May 18 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.131-1mamba
|
|
|
|
- update to 0.131
|
|
|
|
- rename elfutils-libelf to libelf and obsolete old package names
|
|
|
|
|
|
|
|
* Tue Feb 28 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.119-2qilnx
|
|
|
|
- added portability patch
|
|
|
|
|
|
|
|
* Mon Feb 27 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.119-1qilnx
|
|
|
|
- update to version 0.119 by autospec
|
|
|
|
- fixed source URL
|
|
|
|
- fixed license
|
|
|
|
|
|
|
|
* Tue Jan 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.118-1qilnx
|
|
|
|
- package created by autospec
|