packages java-grapht.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-grapht
Version:       0.8.0
Release:       2mamba
Summary:       Java library for mathematical graph-theory objects and algorithms
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://jgrapht.sourceforge.net/
Source:        http://switch.dl.sourceforge.net/sourceforge/jgrapht/jgrapht-%{version}.tar.gz
License:       LGPL
BuildRequires: apache-ant
BuildRequires: apache-ant-junit
BuildRequires: java-graph
BuildRequires: java-junit3
BuildRequires: java-svnant
BuildRequires: java-tggraphlayout
BuildRequires: jpackage-utils
BuildRequires: netbeans-svnclientadapter
BuildRequires: xmlunit
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms.

JGraphT supports various types of graphs including:

* directed and undirected graphs.
* graphs with weighted / unweighted / labeled or any user-defined edges.
* various edge multiplicity options, including: simple-graphs, multigraphs, pseudographs.
* unmodifiable graphs - allow modules to provide "read-only" access to internal graphs.
* listenable graphs - allow external listeners to track modification events.
* subgraphs graphs that are auto-updating subgraph views on other graphs.
* all compositions of above graphs.

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

%description    javadoc
JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms.

This package contains javadoc for %{name}.

%package        source
Summary:        %{name} source
Group:          Development/Languages

%description    source
JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms.

This package contains %{name} source

%prep

%setup -q -n jgrapht-%{version}

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

for c in $(find . -name "*.class"); do
	rm -rf $c
done

pushd lib
	ln -sf $(build-classpath junit-3.8.2) junit.jar
	ln -sf $(build-classpath netbeans-svnclientadapter) svnClientAdapter.jar
	ln -sf $(build-classpath xmlunit) xmlunit1.0.jar
	ln -sf $(build-classpath tggraphlayout) TGGraphLayout.jar
	ln -sf $(build-classpath jgraph) jgraph.jar
	ln -sf $(build-classpath svnant) svnant.jar
popd

%build
export CLASSPATH=$(build-classpath junit-3.8.2 ant/ant-junit)
ant all

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir  temp
pushd temp
unzip -qq ../jgrapht-%{version}-local.zip
mkdir -p %{buildroot}%{_javadir}
install -pm 644  jgrapht-%{version}-local/jgrapht-jdk1.6.jar \
	%{buildroot}%{_javadir}/jgrapht-%{version}.jar
ln -sf jgrapht-%{version}.jar %{buildroot}%{_javadir}/jgrapht.jar
ln -sf jgrapht-%{version}.jar %{buildroot}%{_javadir}/jgrapht-jdk1.6.jar

mkdir -p %{buildroot}%{_javadocdir}/jgrapht-%{version}
cp -pr jgrapht-%{version}-local/javadoc %{buildroot}%{_javadocdir}/jgrapht-%{version}
ln -sf jgrapht-%{version} %{buildroot}%{_javadocdir}/jgrapht
popd
mkdir -p %{buildroot}%{_sourcedir}
cp -pr jgrapht-%{version}-local.zip %{buildroot}%{_sourcedir}/
cp -pr jgrapht-%{version}-local.tar.gz %{buildroot}%{_sourcedir}/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_javadir}/jgrapht-%{version}.jar
%{_javadir}/jgrapht-jdk1.6.jar
%{_javadir}/jgrapht.jar
%doc license-LGPL.txt README.html 
%doc temp/jgrapht-%{version}-local/etc

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/jgrapht-%{version}
%{_javadocdir}/jgrapht

%files source
%defattr(-,root,root)
%{_sourcedir}/jgrapht-%{version}-local.zip
%{_sourcedir}/jgrapht-%{version}-local.tar.gz

%changelog
* Fri Dec 10 2010 gil <puntogil@...> 0.8.0-2mamba
- rebuilt devel

* Fri Apr 17 2009 gil <puntogil@...> 0.8.0-1mamba
- package created by autospec