com.ca.level=UNUSED
#dir this sets the directories that JXplorer reads its resources from.
-dir.help===DATADIR==/help/
-dir.htmldocs===DATADIR==/htmldocs/
-dir.icons===DATADIR==/icons/
-dir.images===DATADIR==/images/
-dir.local===DATADIR==/
+dir.help=@DATADIR@/help/
+dir.htmldocs=@DATADIR@/htmldocs/
+dir.icons=@DATADIR@/icons/
+dir.images=@DATADIR@/images/
+dir.local=@DATADIR@/
dir.plugins=plugins/
dir.templates=templates/
cd "$HOME/.JXplorer"
CLASSPATH=$(build-classpath junit jhall JXplorer)
+MAIN_CLASS=com.ca.directory.jxplorer.JXplorer
+JAVA_HOME=@JVMDIR@/java-sun-jre
if [ "$#" == "0" ]; then
- run com.ca.directory.jxplorer.JXplorer < /dev/null > /dev/null 2>&1 &
+ run < /dev/null > /dev/null 2>&1 &
else if [ "$1" = "console" ] ; then
- run com.ca.directory.jxplorer.JXplorer
+ run
else
echo "Usage: $0 [console|help]"
fi
+# NOTE:
+# - it builds with any JDK, but it runs on java-sun only. It's not able to
+# connect to LDAP on icedtea6
%include /usr/lib/rpm/macros.java
Summary: LDAP browser
Summary(pl.UTF-8): PrzeglÄ…darka LDAP
Name: JXplorer
Version: 3.2
-Release: 2
+Release: 3
License: Computer Associates Open Source Software License
Group: Applications/Databases/Interfaces
Source0: http://dl.sourceforge.net/jxplorer/JXv%{version}deploy.tar.bz2
BuildRequires: sed >= 4.0
BuildConflicts: java-gcj-compat-devel
Requires: java-help
-Requires: jpackage-utils
-Requires: jre-X11
Requires: java-junit
+Requires: java-sun-jre-base-X11
+Requires: jpackage-utils
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
install %{SOURCE2} jxplorer.sh
install %{SOURCE3} jxconfig.txt
-%{__sed} -i -e 's~==DATADIR==~%{_datadir}/%{name}~g' jxconfig.txt
+%{__sed} -i -e 's~@DATADIR@~%{_datadir}/%{name}~g' jxconfig.txt
+%{__sed} -i -e 's~@JVMDIR@~%{_jvmdir}~g' jxconfig.sh
echo 'JX_JAVADIR=%{_javadir}/%{name}' > jxplorer.sysconfig
echo 'JX_DATADIR=%{_datadir}/%{name}' >> jxplorer.sysconfig