SHA256
1
0
forked from pool/maven
Fridrich Strba 2021-10-22 07:12:46 +00:00 committed by Git OBS Bridge
parent 757444ac04
commit 45633ac62c

View File

@ -19,14 +19,12 @@
%global bundled_slf4j_version 1.7.25
%global homedir %{_datadir}/%{name}%{?maven_version_suffix}
%global confdir %{_sysconfdir}/%{name}%{?maven_version_suffix}
%bcond_with logback
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%bcond_with logback
Name: maven
Version: 3.8.1
Release: 0
@ -107,7 +105,7 @@ Requires(postun):aaa_base
BuildRequires: mvn(ch.qos.logback:logback-classic)
%endif
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
@ -406,6 +404,7 @@ if [ $1 -eq 0 ]; then
update-alternatives --remove mvn %{homedir}/bin/mvn
fi
%else
%pre
# removing old update-alternatives entries
if [ "$1" > 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
@ -438,8 +437,9 @@ fi
%{_datadir}/libalternatives/mvnDebug/%{?maven_alternatives_priority}1.conf
%{_bindir}/mvn
%{_bindir}/mvnDebug
%{_mandir}/man1/mvn.1.gz
%{_mandir}/man1/mvn.1%{?ext_man}
%endif
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE