forked from pool/javahelp2
This commit is contained in:
164
javahelp2.spec
Normal file
164
javahelp2.spec
Normal file
@@ -0,0 +1,164 @@
|
||||
#
|
||||
# spec file for package javahelp2 (Version 2.0.05)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define oname javahelp
|
||||
%define section free
|
||||
|
||||
Name: javahelp2
|
||||
Version: 2.0.05
|
||||
Release: 3
|
||||
Summary: Java online help system
|
||||
License: GPL v2 or later
|
||||
Url: https://javahelp.dev.java.net/
|
||||
Group: Development/Libraries/Java
|
||||
Source0: %{name}-src-%{version}.tar.bz2
|
||||
# svn export -r 59 https://javahelp.dev.java.net/svn/javahelp/trunk javahelp2-2.0.05 --username guest
|
||||
Source1: %{name}-jhindexer.sh
|
||||
Source2: %{name}-jhsearch.sh
|
||||
Source3: %{oname}-%{version}.pom
|
||||
Source4: https://javahelp.dev.java.net/license.txt
|
||||
BuildArch: noarch
|
||||
PreReq: jpackage-utils >= 1.7.4
|
||||
Requires: geronimo-jsp-2_0-api
|
||||
Requires: geronimo-servlet-2_4-api
|
||||
BuildRequires: jpackage-utils >= 1.7.4
|
||||
BuildRequires: java-devel >= 1.5.0
|
||||
BuildRequires: ant >= 1.6.5
|
||||
BuildRequires: ant-nodeps
|
||||
BuildRequires: geronimo-jsp-2_0-api
|
||||
BuildRequires: geronimo-servlet-2_4-api
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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 manual
|
||||
License: GPL v2 or later
|
||||
Summary: Java online help system
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description manual
|
||||
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
|
||||
License: GPL v2 or later
|
||||
Summary: Java online help system
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# fix files perms
|
||||
chmod -R go=u-w *
|
||||
# remove windows files
|
||||
find . -type f -name .bat | xargs rm -f
|
||||
#
|
||||
# This class provides native browser integration and would require
|
||||
# JDIC project to be present. Currently there is no such jpackage.org
|
||||
# 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
|
||||
ln -s %{_javadir}/jsp.jar javahelp_nbproject/lib/jsp-api.jar
|
||||
ln -s %{_javadir}/servlet.jar javahelp_nbproject/lib/servlet-api.jar
|
||||
cp %{SOURCE4} .
|
||||
|
||||
%build
|
||||
#export JAVA_HOME=%{_jvmdir}/java-1.5.0
|
||||
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
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/jh2indexer
|
||||
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/jh2search
|
||||
install -m 644 javahelp_nbproject/dist/lib/jhall.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
#cp -pr jhMaster/JavaHelp/doc/public-spec/dtd $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
cp -pr javahelp_nbproject/dist/lib/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
# create unversioned symlinks
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
%add_to_maven_depmap javax.help %{oname} %{version} JPP %{name}
|
||||
# pom
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
||||
install -pm 644 %{SOURCE3} \
|
||||
$RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc license.txt
|
||||
%attr(0755,root,root) %{_bindir}/*
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_javadir}/%{name}.jar
|
||||
#%dir %{_datadir}/%{name}
|
||||
#%{_datadir}/%{name}/dtd
|
||||
%{_datadir}/maven2/poms/*
|
||||
%config %{_mavendepmapfragdir}
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc jhMaster/JavaHelp/doc/public-spec/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
%changelog
|
||||
* Mon May 18 2009 mvyskocil@suse.cz
|
||||
- fixed bnc#503327: Confirm licenses of javahelp2
|
||||
* used clean source code from javahelp.dev.java.net
|
||||
* added a license.txt from this site
|
||||
* Wed May 06 2009 mvyskocil@suse.cz
|
||||
- Initial SUSE packaging of 2.0.05 (from jpp 5.0)
|
||||
Reference in New Issue
Block a user