elfutils/elfutils.spec

363 lines
12 KiB
RPMSpec
Raw Normal View History

%define libname libelf
%define _program_prefix eu-
%define portability_version 0.163
Name: elfutils
Version: 0.192
Release: 1mamba
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>
URL: https://sourceware.org/elfutils/
Source: https://sourceware.org/elfutils/ftp/%{version}/elfutils-%{version}.tar.bz2
## 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
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
BuildRequires: libarchive-devel
BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libjson-c-devel
BuildRequires: liblzma-devel
BuildRequires: libmicrohttpd-devel
BuildRequires: libopenssl-devel
BuildRequires: librpm-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## 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
Obsoletes: elfutils-libelf < 0.186
%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}
Requires: glibc-devel
Provides: elfutils-libelf-devel
Obsoletes: elfutils-libelf-devel < 0.186
%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.
%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
Obsoletes: elfutils-devel < 0.186
%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.
%debug_package
%prep
%setup -q
#%patch3 -p1
#%patch2 -p1
#%patch1 -p1
#%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} \
--host= \
CFLAGS="$RPM_OPT_FLAGS -fexceptions -D__NO_INLINE__"
%if "%{_host}" == "%{_build}"
%make %{?_smp_mflags}
#% ifnarch arm
#% make check
#% endif
%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*
#chmod +x %{buildroot}%{_libdir}/%{name}/lib*.so*
# 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}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/profile.d/debuginfod.csh
%{_sysconfdir}/profile.d/debuginfod.sh
%{_bindir}/%{_program_prefix}ar
%{_bindir}/%{_program_prefix}make-debug-archive
%{_bindir}/%{_program_prefix}elfcompress
%{_bindir}/%{_program_prefix}elflint
%{_bindir}/%{_program_prefix}elfclassify
%{_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}srcfiles
%{_bindir}/%{_program_prefix}strings
%{_bindir}/debuginfod
%{_bindir}/debuginfod-find
%{_datadir}/fish/vendor_conf.d/debuginfod.fish
%{_mandir}/man1/debuginfod-find.1*
%{_mandir}/man1/%{_program_prefix}elfclassify.1*
%{_mandir}/man1/%{_program_prefix}readelf.1*
%{_mandir}/man1/%{_program_prefix}srcfiles.1*
%{_mandir}/man7/debuginfod-client-config.7*
%{_mandir}/man8/debuginfod*.8*
%files -n libdw
%defattr(-,root,root)
%{_libdir}/libdw-%{version}.so
%{_libdir}/libdw.so.*
%doc AUTHORS COPYING
%files -n libdw-devel
%defattr(-,root,root)
%{_includedir}/dwarf.h
%dir %{_includedir}/elfutils
%{_includedir}/elfutils/*.h
%{_libdir}/libdw.a
%{_libdir}/libdw.so
%{_libdir}/pkgconfig/libdw.pc
%doc ChangeLog NEWS README THANKS TODO
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libelf-%{version}.so
%{_libdir}/libelf.so.*
%{_libdir}/libdebuginfod-%{version}.so
%{_libdir}/libdebuginfod.so.*
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/libelf.h
%{_includedir}/gelf.h
%{_includedir}/nlist.h
%{_libdir}/libelf.a
%{_libdir}/libelf.so
%{_libdir}/libdebuginfod.so
%{_mandir}/man3/debuginfod_*.3*
%{_mandir}/man3/elf_*.3*
%{_mandir}/man3/elf32_*.3*
%{_mandir}/man3/elf64_*.3*
%{_mandir}/man3/libelf.3*
%{_libdir}/pkgconfig/libelf.pc
%{_libdir}/pkgconfig/libdebuginfod.pc
%changelog
* Sat Oct 19 2024 Automatic Build System <autodist@openmamba.org> 0.192-1mamba
- automatic version update by autodist
* Sat Mar 02 2024 Automatic Build System <autodist@openmamba.org> 0.191-1mamba
- automatic version update by autodist
* Mon Nov 06 2023 Automatic Build System <autodist@mambasoft.it> 0.190-1mamba
- automatic version update by autodist
* Sat Mar 04 2023 Automatic Build System <autodist@mambasoft.it> 0.189-1mamba
- automatic version update by autodist
* Sat Nov 05 2022 Automatic Build System <autodist@mambasoft.it> 0.188-1mamba
- automatic version update by autodist
* Tue Apr 26 2022 Automatic Build System <autodist@mambasoft.it> 0.187-1mamba
- automatic version update by autodist
* Fri Nov 12 2021 Automatic Build System <autodist@mambasoft.it> 0.186-1mamba
- automatic version update by autodist
* Sun May 23 2021 Automatic Build System <autodist@mambasoft.it> 0.185-1mamba
- automatic version update by autodist
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.184-1mamba
- update to 0.184
* Sun Feb 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.183-1mamba
- update to 0.183
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 0.182-1mamba
- automatic version update by autodist
* Tue Sep 22 2020 Automatic Build System <autodist@mambasoft.it> 0.181-1mamba
- automatic version update by autodist
* Thu Jun 25 2020 Automatic Build System <autodist@mambasoft.it> 0.180-1mamba
- automatic version update by autodist
* Wed May 27 2020 Automatic Build System <autodist@mambasoft.it> 0.179-1mamba
- automatic version update by autodist
* Fri Sep 20 2019 Automatic Build System <autodist@mambasoft.it> 0.177-1mamba
- automatic version update by autodist
* Wed Mar 06 2019 Automatic Build System <autodist@mambasoft.it> 0.176-1mamba
- automatic version update by autodist
* Sat Dec 15 2018 Automatic Build System <autodist@mambasoft.it> 0.175-1mamba
- automatic version update by autodist
* Sat Sep 29 2018 Automatic Build System <autodist@mambasoft.it> 0.174-1mamba
- automatic version update by autodist
* Wed Aug 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.171-2mamba
- rebuilt with debug package
* Wed Jun 06 2018 Automatic Build System <autodist@mambasoft.it> 0.171-1mamba
- automatic version update by autodist
* Sat Mar 31 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.170-2mamba
- libelf-devel: require glibc-devel
* Sat Sep 23 2017 Automatic Build System <autodist@mambasoft.it> 0.170-1mamba
- automatic version update by autodist
* Sun Jun 04 2017 Automatic Build System <autodist@mambasoft.it> 0.169-1mamba
- automatic version update by autodist
* Tue Jan 03 2017 Automatic Build System <autodist@mambasoft.it> 0.168-1mamba
- automatic version update by autodist
* Mon Aug 29 2016 Automatic Build System <autodist@mambasoft.it> 0.167-1mamba
- automatic version update by autodist
* Fri Apr 15 2016 Automatic Build System <autodist@mambasoft.it> 0.166-1mamba
- automatic version update by autodist
* Sat Jan 16 2016 Automatic Build System <autodist@mambasoft.it> 0.165-1mamba
- automatic version update by autodist
* Sun Nov 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.164-1mamba
- update to 0.164
* Sun Aug 02 2015 Automatic Build System <autodist@mambasoft.it> 0.163-1mamba
- automatic version update by autodist
* Wed Jan 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.161-1mamba
- update to 0.161
* Thu Nov 06 2014 Automatic Build System <autodist@mambasoft.it> 0.160-1mamba
- automatic version update by autodist
* Mon Sep 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.159-2mamba
- move libdw stuff to libdw and libdw-devel new subpackages
* Mon Jul 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.159-1mamba
- update to 0.159
* 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