ovirt-engine-wildfly/ovirt-engine-wildfly.spec

68 lines
1.6 KiB
RPMSpec
Raw Normal View History

2021-07-06 16:33:11 +08:00
%global __jar_repack 0
2022-06-27 14:28:20 +08:00
Name: ovirt-engine-wildfly
Version: 19.1.0
2023-04-07 11:21:33 +08:00
Release: 2
2022-06-27 14:28:20 +08:00
Summary: WildFly Application Server for oVirt Engine
Group: Virtualization/Management
License: Apache 2.0
URL: http://wildfly.org
Source: https://github.com/wildfly/wildfly/archive/refs/tags/wildfly-19.1.0.Final.zip
BuildRequires: unzip
BuildRequires: chrpath
2023-04-07 11:21:33 +08:00
BuildRequires: binutils
2022-06-27 14:28:20 +08:00
# Prevent breaking packages that require e.g. libapr-1.so
AutoReqProv: no
2021-07-06 16:33:11 +08:00
%description
WildFly Application Server for oVirt Engine.
2021-09-06 11:14:22 +08:00
%build
true
2021-07-06 16:33:11 +08:00
%install
mkdir -p %{buildroot}%{_datadir}
unzip -d %{buildroot}%{_datadir} %{SOURCE0}
mv %{buildroot}%{_datadir}/wildfly-%{version}.Final %{buildroot}%{_datadir}/%{name}
# Remove the shared objects that aren't suitable for the architecture
# that the package is being built for:
function remove_shared_objects () {
find \
%{buildroot}%{_datadir}/%{name}/modules/system/layers/base \
-depth \
-type d \
-name "$1" \
-exec rm -rf {} \;
}
remove_shared_objects solaris-x86_64
remove_shared_objects solaris-sparcv9
%ifarch x86_64
remove_shared_objects linux-i686
%endif
%ifarch %{ix86}
remove_shared_objects linux-x86_64
%endif
# Delete the "rpath" of the remaining shared objects:
2023-04-07 11:21:33 +08:00
# Strip the remaining shared objects
2021-07-06 16:33:11 +08:00
find \
%{buildroot}%{_datadir}/%{name}/modules/system/layers/base \
-type f \
-name '*.so' \
2023-04-07 11:21:33 +08:00
-exec chrpath --delete {} \; \
-exec strip {} \;
2021-07-06 16:33:11 +08:00
%files
%{_datadir}/%{name}
2021-09-06 11:14:22 +08:00
2022-06-27 14:28:20 +08:00
%changelog
2023-04-07 11:21:33 +08:00
* Fri Apr 07 2023 wangdi <wangdi@kylinos.cn> - 19.1.0-2
- strip shared objects
2022-06-27 14:28:20 +08:00
* Mon Jun 27 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 19.1.0-1
- Init package