Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37855919
en ru br
ALT Linux repos
S:1.6.0-alt1
5.0: 1.3.18-alt1
4.1: 1.3.6-alt4
4.0: 1.3.6-alt4
3.0: 1.3-alt1

Group :: System/Base
RPM: java-common

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: java-common
Version: 1.3
Release: alt1

Summary: Common files for Java runtimes
Group: System/Base
License: GPL

Provides: %_bindir/java

Source0: java.sh
Source1: java-functions

BuildArch: noarch

BuildPreReq: rpm-build-java

%description
This package contains the Java wrapper that selects a Java runtime
environment available in the system to execute Java applications,
as well as common routines to set up Java application launcher
scripts.
The package also provides the system-wide installation directory
for Java packages.

%install
%__mkdir_p %buildroot%_bindir
%__install -p -m 755 %SOURCE0 %buildroot%_bindir/java
%__subst -p 's, at SCRIPTDIR at ,%_datadir/%name,g' %buildroot%_bindir/java
%__install -d -m 755 %buildroot%_datadir/%name
%__install -p -m 644 %SOURCE1 %buildroot%_datadir/%name/java-functions
%__subst -p 's, at LIBDIR at ,%_libdir,g; s, at JAVADIR at ,%_javadir,g' \
   %buildroot%_datadir/%name/java-functions
# Provide symlink in %_libdir for backwards compatibility
%__mkdir_p %buildroot%_libdir
%__ln_s -nf $(relative %_datadir/%name %_libdir/) %buildroot%_libdir/java-common
%__install -d -m 755 %buildroot%_javadir
%__install -d -m 755 %buildroot%_javadocdir

%files
%_bindir/java
%_datadir/%name
%_libdir/java-common
%dir %_javadir
%dir %_javadocdir

%pre
%__rm -rf %_libdir/java-common

%triggerun -- java-common < 1.3
if [ -L %_libdir/java-common ]; then
   %__rm -f %_libdir/java-common
fi

%triggerpostun -- java-common < 1.3
%__ln_s -nf $(relative %_datadir/%name %_libdir/) %_libdir/java-common

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin