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