[Jpackage-commits] dist/ssj/JPP-6 Makefile, NONE, 1.1 sources, NONE, 1.1 ssj.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Sat Jun 26 11:46:00 CEST 2010


Update of /home/projects/jpackage/cvs/dist/ssj/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv1789/JPP-6

Added Files:
	Makefile sources ssj.spec 
Log Message:
Import ssj into JPP-6

--- NEW FILE: sources ---
f39a451dc63dcc13c7cd4bfbf11b509b  ssj-2.2-source.zip

--- NEW FILE: ssj.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.
#

Name:           ssj
Version:        2.2
Release:        1%{?dist}
Summary:        Stochastic Simulation in Java

Group:          Development/Libraries
License:        GPL
URL:            http://www.iro.umontreal.ca/~simardr/ssj/ssj-2.2-source.zip

Source0:        http://www.iro.umontreal.ca/~simardr/ssj/ssj-2.2-source.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ant >= 1.6.5
BuildRequires:  colt
BuildRequires:  dsol-basic
BuildRequires:  fpl-optimization
BuildRequires:  jcommon
BuildRequires:  jfreechart
BuildRequires:  latex2html
BuildRequires:  perl
BuildRequires:  tcode
BuildRequires:  java-devel >= 1.6.0
BuildRequires:  jpackage-utils >= 0:5.0.0

Requires:  java >= 1.6.0
Requires:  jpackage-utils >= 0:5.0.0
Requires:  colt
Requires:  dsol-basic
Requires:  fpl-optimization
Requires:  jcommon
Requires:  jfreechart

Requires(post):    jpackage-utils >= 0:5.0.0
Requires(postun):  jpackage-utils >= 0:5.0.0

BuildArch:      noarch

%description
SSJ is a Java library for stochastic simulation, developed 
under the direction of Pierre L'Ecuyer, in the Département 
d'Informatique et de Recherche Opérationnelle (DIRO), at the
Université de Montréal. It provides facilities for generating
uniform and nonuniform random variates, computing different
measures related to probability distributions, performing
goodness-of-fit tests, applying quasi-Monte Carlo methods,
collecting (elementary) statistics, and programming
discrete-event simulations with both events and processes.

%package javadoc 
Summary:        Javadocs for %{name} 
Group:          Documentation 
Requires:       %{name} = %{version}-%{release} 
 
%description javadoc 
%{summary}. 

%prep
%setup -q 
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%build
export TCODEHOME=/usr/share/tcode
export CLASSPATH=$(build-classpath \
colt \
fpl-optimization \
tcode \
dsol/event \
dsol/interpreter \
jcommon \
jfreechart \
)
%ant lib htmldoc

# charts         Provides tools to draw charts and plots
# clean          Cleans auxiliary and backup files
# cleanall       Cleans all generated files
# cleanbuild     Cleans the build tree
# cleandoc       Cleans the generated documentation
# cleanlib       Cleans the generated library files
# cleanmore      Cleans backup and class files
# dist           Creates the SSJ binary distribution
# doc            Creates the PDF and HTML documentation
# functionfit    Compiles tools to compute function fittings
# functions      Provides tools to use mathematical functions
# gof            Compiles the goodness of fit tests
# htmldoc        Creates the HTML documentation
# hups           Compiles the highly uniform point sets
# jni            Builds SSJ native methods, only if ssj.buildjnichrono or ssj.buildjniunuran are set
# lib            Creates the JAR file
# pdfdoc         Creates the PDF documentation
# probdist       Compiles the probability distributions
# probdistmulti  Compiles the multivariate probability distributions
# randvar        Compiles the random variate generators
# randvarmulti   Compiles the random multi-variate generators
# rng            Compiles the uniform random streams
# simevents      Compiles the event-driven simulation package
# simprocs       Compiles the process-driven simulation package
# srcdist        Cleans the tree and zip it as a source distribution
# stat           Compiles the statistics tools
# stochprocess   Simulates stochastic processes
# util           Compiles the basic utilities

%install
%__rm -rf %{buildroot}

# jar
%__mkdir_p %{buildroot}%{_javadir}
%__install -m 644 lib/%{name}.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 -a doc/html/* %{buildroot}%{_javadocdir}/%{name}-%{version} 
%__ln_s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} 

%__mkdir_p %{buildroot}%{_datadir}/%{name}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.txt
%{_javadir}/*.jar
%{_datadir}/%{name}

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

%changelog
* Sat Jun 26 2010 Ralph Apel <r.apel at r-apel.de> 2.2-1
- First release


--- NEW FILE: Makefile ---
# Makefile for source rpm: ssj
# $Id: Makefile,v 1.1 2010/06/26 09:45:56 jpackage Exp $
NAME := ssj
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)




More information about the JPackage-commits mailing list