init package
This commit is contained in:
parent
08180864a2
commit
692948ad95
62
ovirt-engine-wildfly.spec
Normal file
62
ovirt-engine-wildfly.spec
Normal file
@ -0,0 +1,62 @@
|
||||
%global __jar_repack 0
|
||||
|
||||
Name: ovirt-engine-wildfly
|
||||
Version: 22.0.0
|
||||
Release: 1
|
||||
Summary: WildFly Application Server for oVirt Engine
|
||||
Group: Virtualization/Management
|
||||
License: ASL 2.0
|
||||
URL: http://wildfly.org
|
||||
Source: wildfly-22.0.0.Final.zip
|
||||
|
||||
BuildRequires: unzip
|
||||
BuildRequires: chrpath
|
||||
|
||||
# Prevent breaking packages that require e.g. libapr-1.so
|
||||
AutoReqProv: no
|
||||
|
||||
|
||||
%description
|
||||
WildFly Application Server for oVirt Engine.
|
||||
|
||||
|
||||
%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 {} \;
|
||||
|
||||
|
||||
%files
|
||||
%{_datadir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 06 2021 lijunwei <lijunwei@kylinos.cn> 22.0.0-1
|
||||
- init package
|
||||
|
||||
BIN
wildfly-22.0.0.Final.zip
Normal file
BIN
wildfly-22.0.0.Final.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user