[Jpackage-commits] rpms/free/jgrapht jgrapht-0.8.1-build.patch, NONE, 1.1 jgrapht.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Dec 8 19:11:18 CET 2010


Update of /home/projects/jpackage/cvs/rpms/free/jgrapht
In directory ryu.zarb.org:/tmp/WZBAbzSokJ/rpms/free/jgrapht

Added Files:
	jgrapht-0.8.1-build.patch jgrapht.spec 
Log Message:
0.8.2-1.jpp6

--- NEW FILE: jgrapht.spec ---
# Copyright (c) 2000-2010, 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 with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%define section free

Name:           jgrapht
Version:        0.8.2
Release:        1%{?dist}
Epoch:          0
Summary:        Java graph library
License:        LGPLv2+
URL:            http://jgrapht.sourceforge.net/
Group:          Development/Java
Source0:        http://downloads.sourceforge.net/jgrapht/jgrapht-0.8.2.tar.gz
Patch0:         jgrapht-0.8.1-build.patch
Requires:       jgraph
Requires:       jpackage-utils
Requires:       tggraphlayout
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-devel
BuildRequires:  jgraph
BuildRequires:  jpackage-utils
BuildRequires:  junit
BuildRequires:  tggraphlayout
BuildRequires:  xmlunit
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-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:          Development/Documentation
Requires:       jpackage-utils

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%patch0 -p0 -b .sav0
%{_bindir}/find -name "*.jar" | %{_bindir}/xargs -t %{__rm}
%{__rm} -r javadoc

%build
export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit`"
export CLASSPATH=
%{ant} -Djunit.jar=$(build-classpath junit) \
       -Dxmlunit.jar=$(build-classpath xmlunit) \
       -Djgraph.jar=$(build-classpath jgraph) \
       -Dtouchgraph.jar=$(build-classpath tggraphlayout)

%install
%{__rm} -rf %{buildroot}
%{__tar} xf jgrapht-%{version}-local.tar.gz

pushd jgrapht-%{version}-local

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__install} -p -m 0644 jgrapht.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

popd

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc jgrapht-%{version}-local/license-LGPL.txt jgrapht-%{version}-local/README.html
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Wed Dec 08 2010 David Walluck <dwalluck at redhat.com> 0:0.8.2-1
- 0.8.2

* Mon Sep 21 2009 David Walluck <dwalluck at redhat.com> 0:0.8.1-1
- release

--- NEW FILE: jgrapht-0.8.1-build.patch ---
--- build.xml.orig	2009-07-04 03:08:11.000000000 -0400
+++ build.xml	2009-09-20 19:10:48.319894575 -0400
@@ -145,7 +145,7 @@
 
     <!-- File names -->
     <property name="project.jar.name"    
-      value="${project.name}-jdk1.6.jar" />
+      value="${project.name}.jar" />
     <property name="project.tar.name"    
       value="${project.prefix}.tar" />
     <property name="project.tar.gz.name" 
@@ -234,11 +234,11 @@
     <mkdir dir="${build.dir}" />
 
     <!-- compile the source -->
-    <javac srcdir="${src.dir}" destdir="${build.dir}" source="1.6">
+    <javac srcdir="${src.dir}" destdir="${build.dir}">
       <classpath refid="build.classpath" />
       <include name="org/jgrapht/util/TypeUtil.java"/>
     </javac>
-    <javac srcdir="${src.dir}" destdir="${build.dir}" source="1.6">
+    <javac srcdir="${src.dir}" destdir="${build.dir}">
       <compilerarg line="-Xlint:all" />
       <classpath refid="build.classpath" />
       <include name="**/*.java"/>
@@ -247,7 +247,7 @@
       <exclude name="org/jgrapht/ext/JGraphModelAdapter.java"/>
       <exclude name="org/jgrapht/demo/JGraphAdapterDemo.java"/>
     </javac>
-    <javac srcdir="${src.dir}" destdir="${build.dir}" source="1.6">
+    <javac srcdir="${src.dir}" destdir="${build.dir}">
       <classpath refid="build.classpath" />
       <include name="**/*.java"/>
     </javac>
@@ -269,14 +269,12 @@
       <manifest>
         <attribute name="Main-Class" 
           value="org.jgrapht.demo.JGraphAdapterDemo"/>
-        <attribute name="Class-Path" 
-          value="lib/${jgraph.jar.name}"/>
         <attribute name="Specification-Title" 
           value="${project.name}"/>
         <attribute name="Specification-Version" 
           value="${project.version}"/>
         <attribute name="Implementation-Version" 
-          value="${project.version}-jdk1.6"/>
+          value="${project.version}"/>
       </manifest> 
     </jar>
   </target>
@@ -287,7 +285,7 @@
     <!-- create a test build directory -->
     <mkdir dir="${testbuild.dir}" />
 
-    <javac srcdir="${testsrc.dir}" destdir="${testbuild.dir}" source="1.6"
+    <javac srcdir="${testsrc.dir}" destdir="${testbuild.dir}"
       debug="on">
       <classpath refid="testbuild.classpath" />
       <include name="org/jgrapht/**"/>
@@ -351,7 +349,7 @@
   <target name="javadoc" depends="init" description="Creates the Javadocs.">
     <delete dir="${javadoc.dir}" />
     <mkdir dir="${javadoc.dir}" />
-    <javadoc destdir="${javadoc.dir}" source="1.6" failonerror="true"
+    <javadoc destdir="${javadoc.dir}" failonerror="true"
       access="protected" 
       windowtitle="JGraphT : a free Java graph library"
       overview="${src.dir}/overview.html">




More information about the JPackage-commits mailing list