!16 Strip shared objects

From: @jxy_git 
Reviewed-by: @wm-wm-wm 
Signed-off-by: @wm-wm-wm
This commit is contained in:
openeuler-ci-bot 2023-05-24 07:32:04 +00:00 committed by Gitee
commit fd052c602a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: ovirt-engine-wildfly Name: ovirt-engine-wildfly
Version: 19.1.0 Version: 19.1.0
Release: 2 Release: 3
Summary: WildFly Application Server for oVirt Engine Summary: WildFly Application Server for oVirt Engine
Group: Virtualization/Management Group: Virtualization/Management
License: Apache 2.0 License: Apache 2.0
@ -11,14 +11,16 @@ Source: https://github.com/wildfly/wildfly/archive/refs/tags/wildfly-19.1.0.Fin
BuildRequires: unzip BuildRequires: unzip
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: binutils
# Prevent breaking packages that require e.g. libapr-1.so # Prevent breaking packages that require e.g. libapr-1.so
AutoReqProv: no AutoReqProv: no
%description %description
WildFly Application Server for oVirt Engine. WildFly Application Server for oVirt Engine.
%build
true
%install %install
mkdir -p %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_datadir}
@ -45,17 +47,21 @@ remove_shared_objects linux-x86_64
%endif %endif
# Delete the "rpath" of the remaining shared objects: # Delete the "rpath" of the remaining shared objects:
# Strip the remaining shared objects
find \ find \
%{buildroot}%{_datadir}/%{name}/modules/system/layers/base \ %{buildroot}%{_datadir}/%{name}/modules/system/layers/base \
-type f \ -type f \
-name '*.so' \ -name '*.so' \
-exec chrpath --delete {} \; -exec chrpath --delete {} \; \
-exec strip {} \;
%files %files
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Sun Sep 26 2021 Ge Wang <wangge20@huawei.com> 19.1.0-1 * Wed May 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 19.1.0-3
- Strip shared objects
* Sun Sep 26 2021 Ge Wang <wangge20@huawei.com> - 19.1.0-1
- Init Package - Init Package