[Jpackage-commits] dist/jung/devel .cvsignore, 1.1, 1.2 jung-1.7.6.pom, NONE, 1.1 jung-build.xml, NONE, 1.1 jung.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 21:02:24 CEST 2008


Update of /home/projects/jpackage/cvs/dist/jung/devel
In directory ryu.zarb.org:/tmp/cvs-serv27970/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jung-1.7.6.pom jung-build.xml jung.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: jung.spec ---
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free

Name:           jung
Version:        1.7.6
Release:        1jpp
Epoch:          0
Summary:        Java Universal Network/Graph Framework
License:        BSD
Url:            http://jung.sourceforge.net/
Source0:        jung-1.7.6.tar.gz
#cvs -d:pserver:anonymous at jung.cvs.sourceforge.net:/cvsroot/jung login 
#cvs -z3 -d:pserver:anonymous at jung.cvs.sourceforge.net:/cvsroot/jung export -r JUNG_1_7_6 jung
Source1:        jung-build.xml
Source2:        http://repo1.maven.org/maven2/jung/jung/1.7.6/jung-1.7.6.pom

Group:          Development/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  colt
BuildRequires:  jakarta-commons-collections >= 0:3.1
BuildRequires:  junit
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif
Requires:  java >= 0:1.5.0
Requires:  colt
Requires:  jakarta-commons-collections >= 0:3.1

%description
JUNG — the Java Universal Network/Graph Framework--is a software 
library that provides a common and extendible language for the 
modeling, analysis, and visualization of data that can be 
represented as a graph or network. It is written in Java, which 
allows JUNG-based applications to make use of the extensive 
built-in capabilities of the Java API, as well as those of other 
existing third-party Java libraries.
The JUNG architecture is designed to support a variety of 
representations of entities and their relations, such as 
directed and undirected graphs, multi-modal graphs, graphs 
with parallel edges, and hypergraphs. It provides a mechanism 
for annotating graphs, entities, and relations with metadata. 
This facilitates the creation of analytic tools for complex 
data sets that can examine the relations between entities as 
well as the metadata attached to each entity and relation.
The current distribution of JUNG includes implementations of
a number of algorithms from graph theory, data mining, and 
social network analysis, such as routines for clustering, 
decomposition, optimization, random graph generation, 
statistical analysis, and calculation of network distances, 
flows, and importance measures (centrality, PageRank, HITS, etc.).
JUNG also provides a visualization framework that makes it easy to 
construct tools for the interactive exploration of network data. 
Users can use one of the layout algorithms provided, or use the 
framework to create their own custom layouts. In addition, 
filtering mechanisms are provided which allow users to focus their 
attention, or their algorithms, on specific portions of the graph.
As an open-source library, JUNG provides a common framework for 
graph/network analysis and visualization. We hope that JUNG will 
make it easier for those who work with relational data to make use 
of one anothers' development efforts, and thus avoid continually 
re-inventing the wheel. 

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}.

%prep
%setup -q 
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
cp %{SOURCE1} build.xml

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
export CLASSPATH=$(build-classpath colt commons-collections)
ant \
   -Dbuild.sysclasspath=only \
   build javadoc

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}

install -m 644 lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

(cd $RPM_BUILD_ROOT%{_javadir} 
for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE2} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}
fi

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%changelog
* Mon Apr 21 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.7.6-1jpp
- First JPP release
- Validate build in mock


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jung/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 19:02:05 -0000	1.1
--- sources	28 May 2008 19:02:22 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ e2f5ad398f8be6188827ac4257036a00  jung-1.7.6.tar.gz

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jung/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 19:02:05 -0000	1.1
--- .cvsignore	28 May 2008 19:02:22 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ jung-1.7.6.tar.gz

--- NEW FILE: jung-build.xml ---
<?xml version="1.0"?>

<!-- 
	 This is a simple build file for users to build jung.jar
     from the main source tree. 
     This build file expects to find the colt.jar and
     commons-collections.jar files in the project lib
     directory.
     -->

<project name="jung" default="build" basedir=".">

<property name="src" value="./src"/>
<property name="classes" value="./classes"/>
<property name="lib" value="./lib"/>
<property name="doc.dir" value="./api"/>

<path id="project.path">
  <pathelement location="${classes}"/>
  <fileset dir="${lib}"
    includes="commons-collections*.jar colt*.jar"/>
</path>

<target name="init" description="makes required output directories">
  <mkdir dir="lib"/>
  <mkdir dir="classes"/>
  <mkdir dir="api"/>
</target>

<target name="compile" depends="init" description="compiles the source">
  <javac srcdir="${src}"
	 destdir="${classes}"
	 includes="**/*.java"
	 excludes="scratch/** test/**"
	 deprecation="off"
	 debug="on">
    <classpath refid="project.path"/>
  </javac>
</target>

<target name="build" depends="compile" description="creates the jung.jar file">
  <jar jarfile="${lib}/jung.jar"
       basedir="${classes}" />
</target>

<target name="clean" description="removes the jung.jar and class files">
  <delete>
    <fileset dir="${lib}" includes="jung.jar" />
    <fileset dir="${classes}" includes="**" />
  </delete>
</target>
        <target name="javadoc" description="generate documentation">
                <javadoc destdir="${doc.dir}" access="protected" source="1.5"
            use="true" notree="false" nonavbar="false" noindex="false"
            splitindex="true" author="true" version="true"
            nodeprecatedlist="false" nodeprecated="false"
            overview="overview.html"
                        windowtitle="JUNG ${version} API"
                        additionalparam="-breakiterator">
                        <classpath refid="alljars" />
                        <doctitle>JUNG 1.7.6</doctitle>
                        <fileset dir=".">
                                <include name="**/*.java" />
                                <exclude name="scratch/**" />
                                <exclude name="test/**" />
                        </fileset>
                        <link href="http://java.sun.com/j2se/1.4.2/docs/api"/>
                        <link href="http://dsd.lbl.gov/~hoschek/colt/api/"/>
                        <link href="http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_1/"/>
                        <link href="http://xml.apache.org/xerces2-j/javadocs/api/"/>
                </javadoc>
        </target>

</project>

--- NEW FILE: jung-1.7.6.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>jung</groupId>
  <artifactId>jung</artifactId>
  <version>1.7.6</version>
  <packaging>jar</packaging>
  <name>Java Universal Network Graph</name>
  <url>http://jung.sourceforge.net</url>
  <licenses>
    <license>
      <name>The BSD License</name>
      <url>http://jung.sourceforge.net/license.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://jung.cvs.sourceforge.net/jung/</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>colt</groupId>
      <artifactId>colt</artifactId>
      <version>1.2.0</version>
    </dependency>
  </dependencies>
</project>



More information about the JPackage-commits mailing list