Репозитории ALT
S: | 1.6.0-alt1 |
5.1: | 1.3.18-alt1 |
4.1: | 1.3.6-alt4 |
4.0: | 1.3.6-alt4 |
3.0: | 1.3-alt1 |
Группа :: Система/Основа
Пакет: java-common
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: java-common
Version: 1.3.18
Release: alt1
Summary: Common files for Java runtimes
Group: System/Base
License: GPL
Packager: Igor Vlasenko <viy at altlinux.org>
Requires: jpackage-utils
BuildArch: noarch
BuildRequires(pre): rpm-build-java
%description
This package contains the Java profile scripts
used to select a Java runtime environment available
in the system to execute Java applications.
%install
# Install profile scripts
# note: they are not needed in jpackage environment
mkdir -p %buildroot%{_sysconfdir}/profile.d/
cat >%buildroot%{_sysconfdir}/profile.d/javahome.sh <<EOF
if test -e %{_prefix}/lib/jvm/java; then
JAVA_HOME=%{_prefix}/lib/jvm/java
export JAVA_HOME
else if test -e %{_prefix}/lib/jvm/jre; then
JRE_HOME=%{_prefix}/lib/jvm/jre
export JRE_HOME
fi
fi
EOF
chmod 755 %buildroot%{_sysconfdir}/profile.d/javahome.sh
cat >%buildroot%{_sysconfdir}/profile.d/javahome.csh <<EOF
if ( -e %{_prefix}/lib/jvm/java ) then
setenv JAVA_HOME %{_prefix}/lib/jvm/java
else if ( -e %{_prefix}/lib/jvm/jre ) then
setenv JRE_HOME %{_prefix}/lib/jvm/jre
endif
EOF
chmod 755 %buildroot%{_sysconfdir}/profile.d/javahome.csh
%files
%{_sysconfdir}/profile.d/javahome.*sh
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.3.18
Release: alt1
Summary: Common files for Java runtimes
Group: System/Base
License: GPL
Packager: Igor Vlasenko <viy at altlinux.org>
Requires: jpackage-utils
BuildArch: noarch
BuildRequires(pre): rpm-build-java
%description
This package contains the Java profile scripts
used to select a Java runtime environment available
in the system to execute Java applications.
%install
# Install profile scripts
# note: they are not needed in jpackage environment
mkdir -p %buildroot%{_sysconfdir}/profile.d/
cat >%buildroot%{_sysconfdir}/profile.d/javahome.sh <<EOF
if test -e %{_prefix}/lib/jvm/java; then
JAVA_HOME=%{_prefix}/lib/jvm/java
export JAVA_HOME
else if test -e %{_prefix}/lib/jvm/jre; then
JRE_HOME=%{_prefix}/lib/jvm/jre
export JRE_HOME
fi
fi
EOF
chmod 755 %buildroot%{_sysconfdir}/profile.d/javahome.sh
cat >%buildroot%{_sysconfdir}/profile.d/javahome.csh <<EOF
if ( -e %{_prefix}/lib/jvm/java ) then
setenv JAVA_HOME %{_prefix}/lib/jvm/java
else if ( -e %{_prefix}/lib/jvm/jre ) then
setenv JRE_HOME %{_prefix}/lib/jvm/jre
endif
EOF
chmod 755 %buildroot%{_sysconfdir}/profile.d/javahome.csh
%files
%{_sysconfdir}/profile.d/javahome.*sh
%changelog
…
Полный changelog можно просмотреть здесь