packages java-jhighlight.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-jhighlight
Version:       1.0
Release:       2mamba
Summary:       Small embeddable pure Java library for syntax highlighting
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
License:       Common Development and Distribution License
BuildRequires: apache-ant
%if "%{stage1}" != "1"
BuildRequires: apache-tomcat5-servletapi5
BuildRequires: java-servletapi4
BuildRequires: java-jflex
BuildRequires: jpackage-utils
%if "%{stage1}" != "1"
Requires:      apache-tomcat5-servletapi5
Requires:      java-servletapi4
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

JHighlight is an embeddable pure Java syntax highlighting library that supports Java,
Groovy, C++, HTML, XHTML, XML and LZX languages and outputs to XHTML.

It also supports RIFE templates tags and highlights them clearly so that you can easily identify the
difference between your RIFE markup and the actual marked up source.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
Small embeddable pure Java library for syntax highlighting.

This package contains javadoc for %{name}.

%setup -q -n jhighlight-%{version}-src

for j in $(find . -name "*.jar"); do
	mv $j ${j}.no

pushd lib
	ln -sf $(build-classpath jflex-1.4.1) jflex-1.4.1.jar
%if "%{stage1}" != "1"
	ln -sf $(build-classpath servletapi5) servlet-2.3.jar
	ln -sf $(build-classpath servletapi4) servlet-2.3.jar


[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms

install -m 644 build/dist/jhighlight-%{version}.jar \

	cd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} ${jar/-%{version}/}
install -m 644 %{SOURCE1} \
%add_to_maven_depmap com.uwyn jhighlight %{version} JPP jhighlight

mkdir -p %{buildroot}%{_javadocdir}/jhighlight-%{version}
cp -pr build/javadocs/jhighlight-javadocs-%{version}/docs/api/* \
ln -s jhighlight-%{version} %{buildroot}%{_javadocdir}/jhighlight

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"




%files javadoc

* Thu Nov 25 2010 gil <puntogil@...> 1.0-2mamba
- rebuilt devel

* Mon Jul 06 2009 gil <puntogil@...> 1.0-1mamba
- package created by autospec