65 lines
1.6 KiB
RPMSpec
65 lines
1.6 KiB
RPMSpec
%global __jar_repack 0
|
|
|
|
Name: ovirt-engine-wildfly
|
|
Version: 23.0.2
|
|
Release: 1
|
|
Summary: WildFly Application Server for oVirt Engine
|
|
Group: Virtualization/Management
|
|
License: LGPL-2.1
|
|
URL: http://wildfly.org
|
|
Source0: https://github.com/wildfly/wildfly/archive/refs/tags/wildfly-23.0.2.Final.zip
|
|
BuildRequires: unzip
|
|
BuildRequires: chrpath
|
|
Requires: java-1.8.0-openjdk
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
WildFly Application Server for oVirt Engine.
|
|
|
|
%build
|
|
true
|
|
|
|
%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:
|
|
find \
|
|
%{buildroot}%{_datadir}/%{name}/modules/system/layers/base \
|
|
-type f \
|
|
-name '*.so' \
|
|
-exec chrpath --delete {} \;
|
|
|
|
# Delete all files what support win in exec dir
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/bin/*.bat %{buildroot}%{_datadir}/%{name}/bin/*.ps1
|
|
|
|
%files
|
|
%{_datadir}/%{name}
|
|
|
|
%changelog
|
|
* Mon Sep 6 2021 baizhonggui <baizhonggui@huawei.com> - 23.0.2-1
|
|
- Update to 23.0.2
|
|
|
|
* Tue Jul 06 2021 lijunwei <lijunwei@kylinos.cn> 22.0.0-1
|
|
- init package
|