packages java-d-haven-event.spec
      Pages: < 1 >  DOWNLOAD      
%define        javahome   /usr/lib/jvm/jdk-gcj
Name:          java-d-haven-event
Version:       1.1.0
Release:       4mamba
Summary:       D-Haven Event based processing
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://d-haven.org/
Source0:       http://d-haven.org/svn/open/dist/d-haven-event/src/d-haven-event-%{version}-src.tar.gz
Source1:       java-d-haven-event-1.1.0-navigation.xml
Source2:       java-d-haven-event-1.1.0.pom
Patch0:        java-d-haven-event-1.1.0-build_xml.patch
License:       Apache Software License 2.0
BuildRequires: apache-ant
BuildRequires: apache-ant-junit
BuildRequires: java-concurrent
BuildRequires: java-gcj-compat
BuildRequires: java-junit3
BuildRequires: jpackage-utils
Requires:      java-concurrent
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
D-Haven Event is a library designed to make it easier to
develop event based processing systems.  It also includes
a CommandManager to handle certain activities behind the
scenes in a controlled number of background threads.  The
library has been fully tested, and all dependencies have
been brought to a minimum.

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

%description    javadoc
D-Haven Event is a library designed to make it easier to
develop event based processing systems.  It also includes
a CommandManager to handle certain activities behind the
scenes in a controlled number of background threads.  The
library has been fully tested, and all dependencies have
been brought to a minimum.

This package contains javadoc for %{name}

%prep

%setup -q -n d-haven-event-%{version}
for j in $(find . -name "*.jar"); do
   mv $j $j.no
done
%patch0 -p1
mkdir xdocs
cp %{S:1} xdocs/navigation.xml

%build
export JAVA_HOME=%javahome
export CLASSPATH=$(build-classpath concurrent junit-3.8.2 ant/ant-junit)
CLASSPATH=$CLASSPATH:target/classes:target/test-classes
ant \
   -Dsource=1.4 \
   -Dbuild.sysclasspath=only \
   jar javadoc

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

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

install -m 644 target/d-haven-event-1.1.0.jar \
	%{buildroot}%{_javadir}/d-haven-event-%{version}.jar

%add_to_maven_depmap d-haven-event d-haven-event %{version} JPP d-haven-event
install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP.d-haven-event.pom

(
  cd %{buildroot}%{_javadir}
  for jar in *-%{version}*; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

mkdir -p %{buildroot}%{_javadocdir}/d-haven-event-%{version}
cp -pr target/docs/apidocs/* %{buildroot}%{_javadocdir}/d-haven-event-%{version}
ln -s d-haven-event-%{version} %{buildroot}%{_javadocdir}/d-haven-event

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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_javadir}/d-haven-event-%{version}.jar
%{_javadir}/d-haven-event.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE.txt

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/d-haven-event-%{version}
%{_javadocdir}/d-haven-event

%changelog
* Sat Mar 26 2011 gil <puntogil@...> 1.1.0-4mamba
- rebuilt with java-gcj-compat support

* Fri Nov 05 2010 gil <puntogil@...> 1.1.0-3mamba
- rebuilt devel

* Sat Jan 16 2010 gil <puntogil@...> 1.1.0-2mamba
- added maven pom

* Thu Apr 02 2009 gil <puntogil@...> 1.1.0-1mamba
- package created by autospec