2019-11-19 11:49:23 +08:00
|
|
|
Name: libdwarf
|
2024-03-25 15:36:48 +08:00
|
|
|
Epoch: 1
|
|
|
|
|
Version: 0.9.1
|
2022-07-28 08:52:35 +08:00
|
|
|
Release: 1
|
2019-11-19 11:49:23 +08:00
|
|
|
Summary: Library to access DWARF debugging information
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
URL: http://www.prevanders.net/dwarf.html
|
2023-06-15 16:34:38 +08:00
|
|
|
Source0: https://www.prevanders.net/%{name}-%{version}.tar.xz
|
2024-03-25 15:36:48 +08:00
|
|
|
Patch0: CVE-2024-2002.patch
|
2023-06-15 16:34:38 +08:00
|
|
|
BuildRequires: gcc make python3
|
2019-11-19 11:49:23 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Libdwarf is a library of functions to provide read/write DWARF
|
|
|
|
|
debugging records.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Library and header files of libdwarf
|
2024-03-25 15:36:48 +08:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2019-11-19 11:49:23 +08:00
|
|
|
Provides: libdwarf-static = %{version}-%{release}
|
|
|
|
|
Obsoletes: libdwarf-static < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Libdwarf-devel provides libraries and header files for libdwarf.
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
|
Summary: Tools to access the DWARF debugging file format
|
2024-03-25 15:36:48 +08:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2019-11-19 11:49:23 +08:00
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
Libdwarf-tools contains dwarfdump, a tool to access DWARF debug information.
|
|
|
|
|
|
2020-06-12 09:21:53 +08:00
|
|
|
%package_help
|
2019-11-19 11:49:23 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
2022-07-28 08:52:35 +08:00
|
|
|
|
2019-11-19 11:49:23 +08:00
|
|
|
%build
|
|
|
|
|
%configure --enable-shared
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2020-06-12 09:21:53 +08:00
|
|
|
|
|
|
|
|
%check
|
2023-06-15 16:34:38 +08:00
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=$PWD/src/lib/libdwarf/.libs TZ=:America/Los_Angeles %__make check
|
2020-06-12 09:21:53 +08:00
|
|
|
|
2019-11-19 11:49:23 +08:00
|
|
|
%files
|
2020-06-12 09:21:53 +08:00
|
|
|
%defattr(-,root,root)
|
2023-06-15 16:34:38 +08:00
|
|
|
%license src/lib/libdwarf/{COPYING,LIBDWARFCOPYRIGHT,LGPL.txt}
|
|
|
|
|
%{_libdir}/libdwarf.so.0
|
|
|
|
|
%{_libdir}/libdwarf.so.0.*
|
2019-11-19 11:49:23 +08:00
|
|
|
|
|
|
|
|
%files devel
|
2020-06-12 09:21:53 +08:00
|
|
|
%defattr(-,root,root)
|
2023-06-15 16:34:38 +08:00
|
|
|
%{_includedir}/libdwarf-0
|
|
|
|
|
%{_libdir}/pkgconfig/libdwarf.pc
|
2022-07-28 08:52:35 +08:00
|
|
|
%{_libdir}/libdwarf.so
|
2023-06-15 16:34:38 +08:00
|
|
|
%{_libdir}/libdwarf.a
|
|
|
|
|
%exclude %{_libdir}/*.la
|
2019-11-19 11:49:23 +08:00
|
|
|
|
|
|
|
|
%files tools
|
2020-06-12 09:21:53 +08:00
|
|
|
%defattr(-,root,root)
|
2023-06-15 16:34:38 +08:00
|
|
|
%license src/bin/dwarfdump/{COPYING,DWARFDUMPCOPYRIGHT,GPL.txt}
|
2019-11-19 11:49:23 +08:00
|
|
|
%{_bindir}/dwarfdump
|
|
|
|
|
%{_datadir}/dwarfdump/dwarfdump.conf
|
|
|
|
|
|
|
|
|
|
%files help
|
2020-06-12 09:21:53 +08:00
|
|
|
%defattr(-,root,root)
|
2023-06-15 16:34:38 +08:00
|
|
|
%doc src/lib/libdwarf/{ChangeLog,README} doc/*.pdf
|
2019-11-19 11:49:23 +08:00
|
|
|
%{_mandir}/man1/dwarfdump.1.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-25 15:36:48 +08:00
|
|
|
* Mon Mar 25 2024 wangkai <13474090681@163.com> - 1:0.9.1-1
|
|
|
|
|
- Update to 0.9.1 and fix CVE-2024-2002
|
|
|
|
|
|
2023-06-15 16:34:38 +08:00
|
|
|
* Thu Jun 15 2023 liyanan <thistleslyn@163.com> - 0.7.0-1
|
|
|
|
|
- Update to 0.7.0
|
|
|
|
|
|
2022-07-28 08:52:35 +08:00
|
|
|
* Tue Jul 26 2022 panys<panyanshuang@nati-gba.cn> - 20210528-1
|
|
|
|
|
- upgrade to version 20210528
|
2022-07-26 14:21:02 +08:00
|
|
|
|
2020-11-24 11:17:57 +08:00
|
|
|
* Tue Nov 24 2020 SimpleUpdate Robot <tc@openeuler.org> - 20201020-1
|
|
|
|
|
- Upgrade to version 20201020
|
|
|
|
|
|
2022-07-28 08:52:35 +08:00
|
|
|
* Sun Jun 21 2020 hanhui<hanhui15@huawei.com> - 20200114
|
2020-06-12 09:21:53 +08:00
|
|
|
- Mainline branch update to 20200114
|
|
|
|
|
|
|
|
|
|
* Tue Apr 21 2020 songnannan <songnannan2@huawei.com> - 20200114
|
|
|
|
|
- update to 20200114
|
|
|
|
|
|
2019-11-19 11:49:23 +08:00
|
|
|
* Tue Nov 05 2019 yanzhihua <yanzhihua4@huawei.com> - 20180809-2
|
|
|
|
|
- Package init
|