From 15f718916e831ca06a107b9b8fc76576ebc38da0 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:16:17 +0100 Subject: [PATCH] rebuilt devel [release 2.0.05-2mamba;Sat Nov 27 2010] --- README.md | 4 ++ javahelp2-jhindexer.sh | 31 +++++++++++ javahelp2-jhsearch.sh | 31 +++++++++++ javahelp2.spec | 124 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 190 insertions(+) create mode 100644 javahelp2-jhindexer.sh create mode 100644 javahelp2-jhsearch.sh create mode 100644 javahelp2.spec diff --git a/README.md b/README.md index eb280cd..2e44fc9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # javahelp2 +JavaHelp software is a full-featured, platform-independent, extensible help system that enables developers and authors to incorporate online +help in applets, components, applications, operating systems, and devices. Authors can also use the JavaHelp software to deliver online +documentation for the Web and corporate Intranet. + diff --git a/javahelp2-jhindexer.sh b/javahelp2-jhindexer.sh new file mode 100644 index 0000000..f873ed2 --- /dev/null +++ b/javahelp2-jhindexer.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# jhindexer script +# JPackage project (http://jpackage.sourceforge.net) +# $Id$ + +# Source functions library +. /usr/share/java-utils/java-functions + +# Allow system prefs +if [ -f /etc/jhindexer.conf ] ; then + . /etc/jhindexer.conf +fi + +# Allow user-defined prefs +if [ -f $HOME/.jhindexerrc ] ; then + . $HOME/.jhindexerrc +fi + +# Configuration +MAIN_CLASS=com.sun.java.help.search.Indexer +BASE_JARS=javahelp2 + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/javahelp2-jhsearch.sh b/javahelp2-jhsearch.sh new file mode 100644 index 0000000..8a54851 --- /dev/null +++ b/javahelp2-jhsearch.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# jhsearch script +# JPackage project (http://jpackage.sourceforge.net) +# $Id$ + +# Source functions library +. /usr/share/java-utils/java-functions + +# Allow system prefs +if [ -f /etc/jhsearch.conf ] ; then + . /etc/jhsearch.conf +fi + +# Allow user-defined prefs +if [ -f $HOME/.jhsearchrc ] ; then + . $HOME/.jhsearch +fi + +# Configuration +MAIN_CLASS=com.sun.java.help.search.QueryEngine +BASE_JARS=javahelp2 + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/javahelp2.spec b/javahelp2.spec new file mode 100644 index 0000000..b4e16da --- /dev/null +++ b/javahelp2.spec @@ -0,0 +1,124 @@ +Name: javahelp2 +Version: 2.0.05 +Release: 2mamba +Summary: The JavaHelp System +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: https://javahelp.dev.java.net/ +Source0: https://javahelp.dev.java.net/files/documents/5985/59373/javahelp2-src-%{version}.zip +Source1: javahelp2-jhindexer.sh +Source2: javahelp2-jhsearch.sh +License: GPL +BuildRequires: apache-ant +BuildRequires: apache-ant-nodeps +BuildRequires: apache-tomcat5-jsp20-api +BuildRequires: apache-tomcat5-servletapi5 +BuildRequires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +JavaHelp software is a full-featured, platform-independent, extensible help system that enables developers and authors to incorporate online +help in applets, components, applications, operating systems, and devices. Authors can also use the JavaHelp software to deliver online +documentation for the Web and corporate Intranet. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation + +%description javadoc +JavaHelp software is a full-featured, platform-independent, extensible help system that enables developers and authors to incorporate online +help in applets, components, applications, operating systems, and devices. Authors can also use the JavaHelp software to deliver online +documentation for the Web and corporate Intranet. + +This package contains javadoc for %{name}. + +%prep + +%setup -q +chmod -R go=u-w * + +for file in `find . -type f -name .bat`; do + rm -f $file +done + +# +# This class provides native browser integration and would require +# JDIC project (https://jdic.dev.java.net/) to be present. Currently there is no JDIC +# package, so deleting the class. When JDIC package is created, +# add BuildProvides and remove the "rm" call. +# +rm jhMaster/JavaHelp/src/new/javax/help/plaf/basic/BasicNativeContentViewerUI.java + +mkdir javahelp_nbproject/lib +pushd javahelp_nbproject/lib + ln -sf $(build-classpath jsp-api20) jsp-api.jar + ln -sf $(build-classpath servletapi5) servlet-api.jar +popd + +%build + +export CLASSPATH=$(build-classpath jsp-api20 servletapi5 ant/ant-nodeps junit-3.8.2) +ant -f javahelp_nbproject/build.xml \ + -Djdic-jar-present=true -Djdic-zip-present=true \ + -Dservlet-jar-present=true -Dtomcat-zip-present=true \ + release javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir}/%{name}/bin +install -m 644 javahelp_nbproject/dist/lib/jhall.jar \ + %{buildroot}%{_javadir}/%{name}-%{version}.jar + +install -m 644 javahelp_nbproject/dist/lib/jh*.jar \ + %{buildroot}%{_javadir}/%{name} +install -m 644 javahelp_nbproject/dist/bin/jh*.jar \ + %{buildroot}%{_javadir}/%{name}/bin + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` + done +) + +mkdir -p %{buildroot}%{_bindir} + +install -m 755 %{S:1} %{buildroot}%{_bindir}/jh2indexer +install -m 755 %{S:2} %{buildroot}%{_bindir}/jh2search + + +mkdir -p %{buildroot}%{_datadir}/%{name} + +mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version} +cp -pr javahelp_nbproject/dist/lib/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/jh2indexer +%{_bindir}/jh2search +%{_javadir}/javahelp2-%{version}.jar +%{_javadir}/javahelp2.jar +%{_javadir}/javahelp2/bin/jhindexer.jar +%{_javadir}/javahelp2/bin/jhsearch.jar +%{_javadir}/javahelp2/jh-client.jar +%{_javadir}/javahelp2/jh.jar +%{_javadir}/javahelp2/jhall.jar +%{_javadir}/javahelp2/jhbasic.jar +%dir %{_datadir}/%{name} + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/%{name}-%{version} + +%changelog +* Sat Nov 27 2010 gil 2.0.05-2mamba +- rebuilt devel + +* Wed Apr 08 2009 gil 2.0.05-1mamba +- package created by autospec