!1 add dwarves package
From: @xia_qirong Reviewed-by: @MrRlu,@hubble_zhu Signed-off-by: @hubble_zhu
This commit is contained in:
commit
ea6027258e
85
dwarves.spec
Normal file
85
dwarves.spec
Normal file
@ -0,0 +1,85 @@
|
||||
%define libname libdwarves
|
||||
%define libver 1
|
||||
%define libbpfver 0.1.0
|
||||
|
||||
Name: dwarves
|
||||
Version: 1.17
|
||||
Release: 1
|
||||
License: GPLv2
|
||||
Summary: Debugging Information Manipulation Tools
|
||||
URL: http://acmel.wordpress.com
|
||||
Source: http://github.com/acmel/dwarves/archive/v%{version}.tar.gz
|
||||
Source1: http://github.com/libbpf/libbpf/archive/v%{libbpfver}.tar.gz
|
||||
Requires: %{libname}%{libver} = %{version}-%{release}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: cmake
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: elfutils-devel >= 0.170
|
||||
|
||||
%description
|
||||
dwarves is a set of tools that use the debugging information inserted in
|
||||
ELF binaries by compilers such as GCC, used by well known debuggers such as
|
||||
GDB, and more recent ones such as systemtap.
|
||||
|
||||
%package -n %{libname}%{libver}
|
||||
Summary: Debugging information processing library
|
||||
|
||||
%description -n %{libname}%{libver}
|
||||
Debugging information processing library.
|
||||
|
||||
%package -n %{libname}%{libver}-devel
|
||||
Summary: Debugging information library development files
|
||||
Requires: %{libname}%{libver} = %{version}-%{release}
|
||||
|
||||
%description -n %{libname}%{libver}-devel
|
||||
Debugging information processing library development files.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
tar -zxvf %{SOURCE1} --strip-components 1 -C %{_builddir}/%{name}-%{version}/lib/bpf/
|
||||
|
||||
%build
|
||||
%cmake .
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -Rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%ldconfig_scriptlets -n %{libname}%{libver}
|
||||
|
||||
%files
|
||||
%doc README.ctracer
|
||||
%doc README.btf
|
||||
%doc changes-v1.17
|
||||
%doc NEWS
|
||||
%{_bindir}/*
|
||||
%dir %{_datadir}/dwarves/
|
||||
%dir %{_datadir}/dwarves/runtime/
|
||||
%dir %{_datadir}/dwarves/runtime/python/
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_mandir}/man1/pahole.1*
|
||||
%{_datadir}/dwarves/runtime/Makefile
|
||||
%{_datadir}/dwarves/runtime/linux.blacklist.cu
|
||||
%{_datadir}/dwarves/runtime/ctracer_relay.c
|
||||
%{_datadir}/dwarves/runtime/ctracer_relay.h
|
||||
%attr(0755,root,root) %{_datadir}/dwarves/runtime/python/ostra.py*
|
||||
|
||||
%files -n %{libname}%{libver}
|
||||
%{_libdir}/%{libname}.so.*
|
||||
%{_libdir}/%{libname}_emit.so.*
|
||||
%{_libdir}/%{libname}_reorganize.so.*
|
||||
|
||||
%files -n %{libname}%{libver}-devel
|
||||
%doc MANIFEST README
|
||||
%{_includedir}/*
|
||||
%{_libdir}/%{libname}.so
|
||||
%{_libdir}/%{libname}_emit.so
|
||||
%{_libdir}/%{libname}_reorganize.so
|
||||
|
||||
%changelog
|
||||
* Wed Sep 16 2020 xiaqirong <xiaqirong1@huawei.com> - 1.17-1
|
||||
- Type:package init
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:add dwarves package
|
||||
BIN
v0.1.0.tar.gz
Normal file
BIN
v0.1.0.tar.gz
Normal file
Binary file not shown.
BIN
v1.17.tar.gz
Normal file
BIN
v1.17.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user