2024-01-06 00:16:17 +01:00
|
|
|
Name: javahelp2
|
|
|
|
Version: 2.0.05
|
2024-01-06 00:16:17 +01:00
|
|
|
Release: 3mamba
|
2024-01-06 00:16:17 +01:00
|
|
|
Summary: The JavaHelp System
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 00:16:17 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 00:16:17 +01:00
|
|
|
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
|
2024-01-06 00:16:17 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: java-openjdk8
|
2024-01-06 00:16:17 +01:00
|
|
|
BuildRequires: apache-ant
|
|
|
|
BuildRequires: apache-ant-nodeps
|
2024-01-06 00:16:17 +01:00
|
|
|
BuildRequires: javapackages
|
2024-01-06 00:16:17 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%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)
|
2024-01-06 00:16:17 +01:00
|
|
|
export JAVA_HOME=%{_jvmdir}/java-8
|
|
|
|
#export JAVA_CMD=%{_jvmdir}/java-8/bin/java
|
2024-01-06 00:16:17 +01:00
|
|
|
ant -f javahelp_nbproject/build.xml \
|
|
|
|
-Djdic-jar-present=true -Djdic-zip-present=true \
|
|
|
|
-Dservlet-jar-present=true -Dtomcat-zip-present=true \
|
2024-01-06 00:16:17 +01:00
|
|
|
release
|
2024-01-06 00:16:17 +01:00
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:16:17 +01:00
|
|
|
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.05-3mamba
|
|
|
|
- rebuilt
|
|
|
|
|
2024-01-06 00:16:17 +01:00
|
|
|
* Sat Nov 27 2010 gil <puntogil@libero.it> 2.0.05-2mamba
|
|
|
|
- rebuilt devel
|
|
|
|
|
|
|
|
* Wed Apr 08 2009 gil <puntogil@libero.it> 2.0.05-1mamba
|
|
|
|
- package created by autospec
|