add requires xz, binutils for objreloc
This commit is contained in:
parent
5240bf773d
commit
b1533cec9f
@ -3,7 +3,7 @@
|
|||||||
%global __cargo_common_opts %{?__cargo_common_opts} --all
|
%global __cargo_common_opts %{?__cargo_common_opts} --all
|
||||||
Name: native-turbo
|
Name: native-turbo
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Numa Aware Scheduling
|
Summary: Numa Aware Scheduling
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/native-turbo
|
URL: https://gitee.com/openeuler/native-turbo
|
||||||
@ -20,8 +20,7 @@ sysboost can merge ELF files to improve performance.
|
|||||||
# Add devel subpackage
|
# Add devel subpackage
|
||||||
%package tools
|
%package tools
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: xz, binutils
|
||||||
BuildRequires: binutils
|
|
||||||
|
|
||||||
%description tools
|
%description tools
|
||||||
The %{name}-tools package contains some tools of sysboost.
|
The %{name}-tools package contains some tools of sysboost.
|
||||||
@ -83,6 +82,12 @@ install -m 755 $RPM_BUILD_DIR/objreloc $RPM_BUILD_ROOT%{_bindir}/
|
|||||||
%systemd_postun_with_restart %{name}.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 12 2023 liutie <liutie4@huawei.com> - 1.0.0-5
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: when tools should run with xz and
|
||||||
|
|
||||||
* Mon Jun 12 2023 liutie <liutie4@huawei.com> - 1.0.0-4
|
* Mon Jun 12 2023 liutie <liutie4@huawei.com> - 1.0.0-4
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Binary file not shown.
@ -12,4 +12,6 @@ fi
|
|||||||
|
|
||||||
# Remove debug and unnecessary sections, and create relocation and primary files
|
# Remove debug and unnecessary sections, and create relocation and primary files
|
||||||
objcopy --strip-debug --strip-dwo --strip-unneeded "$LIB_FILE" "$LIB_FILE.relocation"
|
objcopy --strip-debug --strip-dwo --strip-unneeded "$LIB_FILE" "$LIB_FILE.relocation"
|
||||||
objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim"
|
xz -z "$LIB_FILE.relocation"
|
||||||
|
mv -f "$LIB_FILE.relocation.xz" "$LIB_FILE.relocation"
|
||||||
|
# objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim"
|
||||||
Loading…
x
Reference in New Issue
Block a user