Generic version
This commit is contained in:
parent
bfb7404cd2
commit
64db96e6e8
14
xmvn.spec
14
xmvn.spec
@ -157,25 +157,25 @@ cp -a "${maven_home}" target/dependency/apache-maven-$mver
|
|||||||
%build
|
%build
|
||||||
%mvn_build -j -- -P\\!quality
|
%mvn_build -j -- -P\\!quality
|
||||||
|
|
||||||
version=4.1.0
|
version=4.*
|
||||||
tar --delay-directory-restore -xvf target/xmvn-*-bin.tar.gz
|
tar --delay-directory-restore -xvf target/xmvn-*-bin.tar.gz
|
||||||
chmod -R +rwX %{name}-${version}*
|
chmod -R +rwX %{name}-${version}
|
||||||
# These are installed as doc
|
# These are installed as doc
|
||||||
rm -f %{name}-${version}*/{AUTHORS-XMVN,README-XMVN.md,LICENSE,NOTICE,NOTICE-XMVN}
|
rm -f %{name}-${version}/{AUTHORS-XMVN,README-XMVN.md,LICENSE,NOTICE,NOTICE-XMVN}
|
||||||
# Not needed - we use JPackage launcher scripts
|
# Not needed - we use JPackage launcher scripts
|
||||||
rm -Rf %{name}-${version}*/lib/{installer,resolver,subst}/
|
rm -Rf %{name}-${version}/lib/{installer,resolver,subst}/
|
||||||
# Irrelevant Maven launcher scripts
|
# Irrelevant Maven launcher scripts
|
||||||
rm -f %{name}-${version}*/bin/*
|
rm -f %{name}-${version}/bin/*
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
version=4.1.0
|
version=4.*
|
||||||
maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} which mvn)))/..)
|
maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} which mvn)))/..)
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -r%{?mbi:L} %{name}-${version}*/* %{buildroot}%{_datadir}/%{name}/
|
cp -r%{?mbi:L} %{name}-${version}/* %{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
for cmd in mvn mvnDebug; do
|
for cmd in mvn mvnDebug; do
|
||||||
cat <<EOF >%{buildroot}%{_datadir}/%{name}/bin/$cmd
|
cat <<EOF >%{buildroot}%{_datadir}/%{name}/bin/$cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user