!13 strip软件包中的动态库文件
From: @crrs666 Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
f4c0987db7
@ -2,7 +2,7 @@
|
||||
|
||||
Name: ovirt-engine-wildfly
|
||||
Version: 19.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: WildFly Application Server for oVirt Engine
|
||||
Group: Virtualization/Management
|
||||
License: Apache 2.0
|
||||
@ -11,6 +11,7 @@ Source: https://github.com/wildfly/wildfly/archive/refs/tags/wildfly-19.1.0.Fin
|
||||
|
||||
BuildRequires: unzip
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: binutils
|
||||
|
||||
# Prevent breaking packages that require e.g. libapr-1.so
|
||||
AutoReqProv: no
|
||||
@ -46,16 +47,21 @@ remove_shared_objects linux-x86_64
|
||||
%endif
|
||||
|
||||
# Delete the "rpath" of the remaining shared objects:
|
||||
# Strip the remaining shared objects
|
||||
find \
|
||||
%{buildroot}%{_datadir}/%{name}/modules/system/layers/base \
|
||||
-type f \
|
||||
-name '*.so' \
|
||||
-exec chrpath --delete {} \;
|
||||
-exec chrpath --delete {} \; \
|
||||
-exec strip {} \;
|
||||
|
||||
%files
|
||||
%{_datadir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Apr 07 2023 wangdi <wangdi@kylinos.cn> - 19.1.0-2
|
||||
- strip shared objects
|
||||
|
||||
* Mon Jun 27 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 19.1.0-1
|
||||
- Init package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user