Revision: 12438
http://unicore.svn.sourceforge.net/unicore/?rev=12438&view=rev
Author: bschuller
Date: 2012-01-30 16:11:32 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
switch to packman
Modified Paths:
--------------
ucc/trunk/ucc-distribution/pom.xml
Added Paths:
-----------
ucc/trunk/ucc-distribution/src/main/package/
ucc/trunk/ucc-distribution/src/main/package/conf.properties
ucc/trunk/ucc-distribution/src/main/package/distributions/
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/changelog
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/compat
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/control
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/copyright
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-install
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-remove
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-startup
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/postinst
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/preinst
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/prerm
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/rules
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/source/
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/source/format
ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/src/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/bash_completion.d/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/bash_completion.d/unicore-ucc
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/extensions
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/logging.properties
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/preferences
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/ucc
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/doc/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/doc/unicore/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/doc/unicore/ucc/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/emacs/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/emacs/site-lisp/
ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/share/emacs/site-lisp/unicore-ucc/
ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/
ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/component.spec_template
ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/src/
Removed Paths:
-------------
ucc/trunk/ucc-distribution/build.xml
ucc/trunk/ucc-distribution/src/deb/
ucc/trunk/ucc-distribution/src/rpm/
ucc/trunk/ucc-distribution/tools/
ucc/trunk/ucc-distribution/update-specfile.py
Deleted: ucc/trunk/ucc-distribution/build.xml
===================================================================
--- ucc/trunk/ucc-distribution/build.xml 2012-01-30 15:47:43 UTC (rev 12437)
+++ ucc/trunk/ucc-distribution/build.xml 2012-01-30 16:11:32 UTC (rev 12438)
@@ -1,273 +0,0 @@
-<?xml version="1.0"?>
-<project xmlns:mvn="urn:maven-artifact-ant" name="UNICORE UCC Linux bundles" default="full-build">
-
- <description>Build the UCC Linux bundle(s)</description>
-
- <!-- the version of UCC to package -->
- <property name="ucc-version" value="1.4.3-SNAPSHOT"/>
-
- <property name="version" value="6.4.3"/>
- <property name="release" value="1"/>
- <property name="mvn-repo-url" value="http://unicore-dev.zam.kfa-juelich.de/maven"/>
-
- <property name="libs" value="target/jars"/>
-
- <!-- directories for the rpm build -->
- <property name="rpm-src" value="src/rpm"/>
- <property name="rpm-base" value="${basedir}/target/rpm"/>
- <property name="rpm-libs" value="${rpm-base}/usr/share/unicore/ucc/lib"/>
-
- <!-- directories for the deb build -->
- <property name="deb-src" value="src/deb"/>
- <property name="deb-base" value="${basedir}/target/deb"/>
-
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant">
- <classpath>
- <pathelement location="./tools/maven-ant-tasks-2.1.0.jar"/>
- </classpath>
- </typedef>
-
- <!-- set some properties -->
- <target name="set-version-if-set" if="package.version">
- <echo message="... package.version is set to ${package.version}" />
- <property name="version" value="${package.version}" />
- </target>
-
- <target name="set-version-if-not-set" unless="package.version">
- <echo message="... package.version is not set. Using default: ${ucc-version} " />
- <property name="version" value="${ucc-version}" />
- </target>
-
- <target name="set-release-if-set" if="package.release">
- <echo message="... package.release is set to ${package.release}" />
- <property name="release" value="${package.release}" />
- </target>
-
- <target name="set-release-if-not-set" unless="package.release">
- <echo message="... package.release is not set" />
- <property name="release" value="${ucc-release}" />
- </target>
-
- <target name="set-mavenRepo-if-set" if="maven.repo.local">
- <echo message="... maven.repo.local is set to ${maven.repo.local}" />
- <property name="maven-repo" value="${maven.repo.local}" />
- </target>
-
- <target name="set-mavenRepo-if-not-set" unless="maven.repo.local">
- <echo message="... maven.repo.local is not set. Using default at ${user.home}/.m2/repository " />
- <property name="maven-repo" value="${user.home}/.m2/repository" />
- </target>
-
- <target name="set-props" depends="set-version-if-set, set-version-if-not-set,
- set-release-if-set, set-release-if-not-set, set-mavenRepo-if-set, set-mavenRepo-if-not-set" />
-
-
- <!--
- Build the rpm and deb packages
- -->
-
- <target name="full-build" depends="rpm,deb"/>
-
-
- <!--
- get the latest jar files
- -->
-
- <target name="update-jars" depends="set-props">
- <echo>... updating jar files </echo>
- <mkdir dir="${libs}"/>
-
- <mvn:remoteRepository id="vsgc-public" url="${mvn-repo-url}"/>
- <mvn:localRepository id="local.repo" path="${maven-repo}" />
- <mvn:dependencies filesetId="ucc.dependencies" useScope="runtime">
- <remoteRepository refid="vsgc-public" />
- <localRepository refid="local.repo" />
- <dependency groupId="de.fzj.unicore" artifactId="ucc-core" version="${ucc-version}"/>
- <dependency groupId="de.fzj.unicore" artifactId="ucc-workflow" version="${ucc-version}"/>
- <dependency groupId="de.fzj.unicore" artifactId="ucc-ogsabes" version="${ucc-version}"/>
- <dependency groupId="de.fzj.unicore" artifactId="ucc-infoservice" version="${ucc-version}"/>
- </mvn:dependencies>
-
- <copy todir="${libs}">
- <fileset refid="ucc.dependencies"/>
- <mapper type="flatten"/>
- </copy>
-
- <mvn:mvn pom="${basedir}/pom.xml" fork="true">
- <localRepository refid="local.repo" />
- <arg value="process-resources"/>
- <arg value="-Dmaven.repo.local=${maven-repo}"/>
- </mvn:mvn>
-
- <copy todir="${libs}/endorsed">
- <fileset dir="${basedir}/target/endorsed"/>
- <mapper type="flatten"/>
- </copy>
-
- <delete>
- <fileset dir="${libs}" includes="*.pom"/>
- </delete>
- </target>
-
-
- <!--
- Build the rpm package
- -->
-
- <target name="rpm" depends="set-props,rpm-prepare,rpm-copy-jars,rpm-build"/>
-
- <target name="rpm-copy-jars" depends="update-jars">
- <echo>... copying jar files </echo>
-
- <copy todir="${rpm-libs}">
- <fileset dir="${libs}" includes="*.jar"/>
- </copy>
-
- <copy todir="${rpm-libs}/endorsed">
- <fileset dir="${libs}/endorsed" includes="*.jar"/>
- </copy>
-
- </target>
-
- <target name="rpm-prepare">
- <echo>... preparing RPM </echo>
-
- <echo> ... copying files </echo>
- <mkdir dir="${rpm-base}"/>
-
- <copy todir="${rpm-base}" >
- <fileset dir="${rpm-src}" includes="**/*"/>
- </copy>
-
- <copy file="src/main/extras/bash-completion/ucc_bash_completion.sh"
- tofile="${rpm-base}/etc/bash_completion.d/unicore-ucc" />
-
- <copy todir="${rpm-base}/usr/share/emacs/site-lisp/unicore-ucc" >
- <fileset dir="src/main/extras/emacs-mode/" includes="*.el"/>
- </copy>
-
- <copy todir="${rpm-base}/usr/share/emacs/site-lisp/">
- <fileset dir="${rpm-src}/usr/share/emacs/site-lisp/" includes="*.el"/>
- </copy>
-
- <mkdir dir="${rpm-base}/usr/share/doc/unicore/ucc/samples"/>
- <copy todir="${rpm-base}/usr/share/doc/unicore/ucc/samples" >
- <fileset dir="src/main/samples/" includes="**/*"/>
- </copy>
-
- <copy todir="${rpm-base}/usr/share/doc/unicore/ucc/" >
- <fileset dir="." includes="CHANGES.txt"/>
- <fileset dir="src/doc" includes="*.txt"/>
- </copy>
-
- <exec dir="${rpm-base}/usr/bin/" executable="chmod" failonerror="true">
- <arg value="+x"/>
- <arg value="ucc"/>
- </exec>
-
- </target>
-
- <target name="rpm-build">
- <echo>... building RPM </echo>
-
- <echo> ... updating spec file </echo>
- <exec dir="target" executable="../update-specfile.py" failonerror="true">
- <arg value="${version}"/>
- <arg value="${release}"/>
- </exec>
-
- <delete>
- <fileset dir="${rpm-base}" includes="unicore-ucc.spec_template"/>
- </delete>
-
- <echo> ... building RPM </echo>
- <exec dir="${rpm-base}" executable="rpmbuild" failonerror="true">
- <arg value="-bb"/>
- <arg value="--buildroot"/>
- <arg value="${rpm-base}"/>
- <arg value="../unicore-ucc.spec"/>
- </exec>
- </target>
-
- <!--
- Build the deb package
- -->
-
- <target name="deb-prepare" depends="update-jars">
-
- <echo> ... building DEB </echo>
-
- <echo> ... copying files </echo>
- <mkdir dir="${deb-base}"/>
- <mkdir dir="${deb-base}/lib"/>
- <mkdir dir="${deb-base}/lib/endorsed"/>
- <mkdir dir="${deb-base}/conf"/>
- <mkdir dir="${deb-base}/extras"/>
- <mkdir dir="${deb-base}/samples"/>
- <mkdir dir="${deb-base}/doc"/>
-
- <copy todir="${deb-base}/lib" >
- <fileset dir="${libs}" includes="*.jar"/>
- </copy>
-
- <copy todir="${deb-base}/lib/endorsed" >
- <fileset dir="${libs}/endorsed" includes="*.jar"/>
- </copy>
-
- <copy todir="${deb-base}/samples" >
- <fileset dir="src/main/samples" includes="**/*"/>
- </copy>
-
- <copy todir="${deb-base}/conf" >
- <fileset dir="src/main/conf" includes="**/*"/>
- </copy>
-
- <copy todir="${deb-base}/extras" >
- <fileset dir="src/main/extras" includes="**/*"/>
- </copy>
-
- <copy todir="${deb-base}/debian" >
- <fileset dir="${deb-src}/debian" includes="**/*"/>
- </copy>
-
- <copy todir="${deb-base}/ucc_debian" >
- <fileset dir="${deb-src}/ucc_debian" includes="**/*"/>
- </copy>
-
- <copy todir="${deb-base}/doc" >
- <fileset dir="." includes="*.txt"/>
- <fileset dir="src/doc" includes="*.txt"/>
- </copy>
-
- <exec dir="${deb-base}/debian" executable="chmod" failonerror="true">
- <arg value="+x"/>
- <arg value="rules"/>
- </exec>
-
- </target>
-
-
- <target name="deb" depends="deb-prepare">
- <echo> ... building package </echo>
- <exec dir="${deb-base}" executable="dpkg-buildpackage" failonerror="true">
- <arg value="-rfakeroot"/>
- </exec>
-
- </target>
-
-
- <!--
- Clean
- -->
-
- <target name="clean" depends="">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="${rpm-base}"/>
- <fileset dir="${deb-base}"/>
- <fileset dir="." includes="unicore-ucc*.deb"/>
- <fileset dir="." includes="unicore-ucc*.rpm"/>
- </delete>
- </target>
-
-
-</project>
Modified: ucc/trunk/ucc-distribution/pom.xml
===================================================================
--- ucc/trunk/ucc-distribution/pom.xml 2012-01-30 15:47:43 UTC (rev 12437)
+++ ucc/trunk/ucc-distribution/pom.xml 2012-01-30 16:11:32 UTC (rev 12438)
@@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.fzj.unicore</groupId>
- <artifactId>ucc</artifactId>
+ <artifactId>ucc-distribution</artifactId>
<packaging>pom</packaging>
<description>UNICORE 6 Commandline Client</description>
<inceptionYear>2007</inceptionYear>
@@ -75,6 +75,15 @@
<descriptor>src/main/assembly/dep.xml</descriptor>
</descriptors>
</configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Added: ucc/trunk/ucc-distribution/src/main/package/conf.properties
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/conf.properties (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/conf.properties 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,21 @@
+# component name. Without prefix unicore-.
+component.package.name=ucc
+package.suffix=6
+
+# maven module is just a pom
+dependency.type=pom
+
+# root dir for src.tar.gz.
+src.tar.gz.main.dir=/../
+
+# pre command in specfile install macro
+pre.src.rpm.command=cd ucc-distribution
+
+# Files from src to be copied into packages
+files.usr.share.doc.1=CHANGES.txt
+files.usr.share.doc.2=LICENSE*
+files.usr.share.doc.3=src/doc/*.txt
+
+# emacs mode
+files.usr.share.emacs.site-lisp.unicore-ucc.1=src/main/extras/emacs-mode/*.el
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/changelog
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/changelog (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/changelog 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,5 @@
+@component-prefix@...@ (@component-version@...@) unstable; urgency=low
+
+ * Deb packaging
+
+ -- Bernd Schuller <b.schuller@...> Mon, 30 Jan 2012 14:16:20 +0100
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/compat
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/compat (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/compat 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1 @@
+7
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/control
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/control (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/control 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,18 @@
+Source: @component-prefix@...@
+Section: contrib/misc
+Priority: extra
+Maintainer: Bernd Schuller <unicore-support@...>
+Homepage: http://www.unicore.eu
+@build_depends@
+
+Package: @component-prefix@...@
+Architecture: @component-architecture@
+Depends: sun-java6-jre | openjdk-6-jre
+Description:UNICORE (Uniform Interface to Computing Resources) offers a
+ ready-to-run Grid system including client and server software.
+ UNICORE makes distributed computing and data resources available
+ in a seamless and secure way in intranets and the internet.
+ .
+ This package contains the UNICORE Commandline Client (UCC).
+
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/copyright
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/copyright (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/copyright 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,35 @@
+ *********************************************************************************
+ * Copyright (c) 2006-2012 Forschungszentrum Juelich GmbH,
+ * ICM Uniwersytet Warszawski and other contributors to UNICORE:
+ * http://www.unicore.eu
+ *
+ * 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 disclaimer at the end. 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.
+ *
+ * (2) Neither the name of the copyright holders nor the names of any
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * DISCLAIMER
+ *
+ * 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.
+ *********************************************************************************
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-install
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-install (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-install 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/unicore-ucc
+
+# Written by Jim Van Zandt <jrv@...>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@...> and octave by Dirk Eddelbuettel <edd@...>.
+
+FLAVOR=$1
+PACKAGE=unicore-ucc
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-remove
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-remove (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-remove 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/unicore-ucc
+
+FLAVOR=$1
+PACKAGE=unicore-ucc
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/unicore-ucc.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-startup
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-startup (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/emacsen-startup 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50unicore-ucc.el
+;; for the Debian unicore-ucc package
+;;
+;; Originally contributed by Nils Naumann <naumann@...>
+;; Modified by Dirk Eddelbuettel <edd@...>
+;; Adapted for dh-make by Jim Van Zandt <jrv@...>
+
+;; The unicore-ucc package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/unicore-ucc")))
+;; If package-dir does not exist, the unicore-ucc package must have
+;; removed but not purged, and we should skip the setup.
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))
+ (autoload 'ucc-mode "ucc-mode"
+ "Minor mode for ucc." t)
+ (add-to-list 'auto-mode-alist '("\\.u$" . ucc-mode))))
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/postinst
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/postinst (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/postinst 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,49 @@
+#!/bin/sh
+# postinst script for unicore-ucc
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+
+ chmod 755 /usr/share/doc/unicore/ucc/
+ chmod 644 /usr/share/doc/unicore/ucc/*
+
+ chmod 755 /usr/share/unicore/ucc/lib
+ chmod 644 /usr/share/unicore/ucc/lib/*.jar
+ chmod 755 /usr/share/unicore/ucc/lib/endorsed
+ chmod 644 /usr/share/unicore/ucc/lib/endorsed/*.jar
+
+ chmod 755 /usr/bin/ucc
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/preinst
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/preinst (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/preinst 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,36 @@
+#!/bin/sh
+# preinst script for unicore-ucc
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/prerm
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/prerm (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/prerm 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# prerm script for unicore-ucc
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove)
+ ;;
+ upgrade|deconfigure)
+ ;;
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/rules
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/rules (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/rules 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+@vars@
+
+build:
+ @build_command@
+clean:
+ dh_clean
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+# Add here commands to install the package into debian/unicore-ucc
+ @install_command@
+
+# Build architecture-independent files here.
+binary-indep: install
+ dh_testdir
+ dh_testroot
+# dh_installchangelogs
+# dh_installdocs
+# dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+ dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+# dh_installwm
+# dh_installudev
+# dh_lintian
+# dh_undocumented
+# dh_installman
+# dh_link
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture-dependent files here.
+#binary-arch: install
+
+binary: binary-indep
+.PHONY: clean binary-indep binary install
Property changes on: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/source/format
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/source/format (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Debian/debian/source/format 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/bash_completion.d/unicore-ucc
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/bash_completion.d/unicore-ucc (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/bash_completion.d/unicore-ucc 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,149 @@
+
+_ucc()
+{
+ local cur prev commands global_opts opts
+ COMPREPLY=()
+ cur=`_get_cword`
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ commands="abort-job batch bes-job-status bes-list-att bes-list-jobs bes-submit-job bes-terminate-job broker-run cip-query connect connect-to-testgrid copy-file copy-file-status create-storage find get-file get-output get-status issue-delegation list-applications list-jobs list-sites list-storages ls metadata mkdir put-file resolve rm run run-groovy shell system-info workflow-control workflow-info workflow-submit workflow-trace wsrf"
+ global_opts="--registry --with-timing --delegationAssertion --truststore --user --truststorePassword --configuration --help --keystore --long --alias --output --password --verbose --storetype"
+
+
+ # parsing for ucc command word (2nd word in commandline.
+ # ucc <command> [OPTIONS] <args>)
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W "${commands}" -- ${cur}) )
+ return 0
+ fi
+
+ # looking for arguments matching to command
+ case "${COMP_WORDS[1]}" in
+ abort-job)
+ opts="$global_opts "
+ ;;
+ batch)
+ opts="$global_opts --threads --input --noFetchOutcome --noResourceCheck --update --jsdl --maxNewJobs --siteWeights --follow --submitOnly --max --keep --sitename"
+ ;;
+ bes-job-status)
+ opts="$global_opts "
+ ;;
+ bes-list-att)
+ opts="$global_opts --sitename"
+ ;;
+ bes-list-jobs)
+ opts="$global_opts --sitename"
+ ;;
+ bes-submit-job)
+ opts="$global_opts --sitename --jsdl --stdout --brief --stderr"
+ ;;
+ bes-terminate-job)
+ opts="$global_opts "
+ ;;
+ broker-run)
+ opts="$global_opts --sitename --noFilenameFix --asynchronous --lifetime --factoryURL --storageURL"
+ ;;
+ cip-query)
+ opts="$global_opts --sitename --maxrecords --glue --topic"
+ ;;
+ connect)
+ opts="$global_opts --lifetime"
+ ;;
+ connect-to-testgrid)
+ opts="$global_opts "
+ ;;
+ copy-file)
+ opts="$global_opts --protocols --source --force-remote --target --asynchronous"
+ ;;
+ copy-file-status)
+ opts="$global_opts "
+ ;;
+ create-storage)
+ opts="$global_opts --sitename --lifetime --factoryURL"
+ ;;
+ find)
+ opts="$global_opts --name --recursive"
+ ;;
+ get-file)
+ opts="$global_opts --source --target --protocols"
+ ;;
+ get-output)
+ opts="$global_opts --sitename --stdout --jsdl --asynchronous --stderr --example --brief"
+ ;;
+ get-status)
+ opts="$global_opts "
+ ;;
+ issue-delegation)
+ opts="$global_opts --sitename --file --target --validity --subject"
+ ;;
+ list-applications)
+ opts="$global_opts --sitename --filter --all"
+ ;;
+ list-jobs)
+ opts="$global_opts --sitename --filter --all"
+ ;;
+ list-sites)
+ opts="$global_opts --filter --all"
+ ;;
+ list-storages)
+ opts="$global_opts --filter --all"
+ ;;
+ ls)
+ opts="$global_opts --human --show-metadata --recursive"
+ ;;
+ metadata)
+ opts="$global_opts --query --file --storage --metadata-service --advanced-query --command"
+ ;;
+ mkdir)
+ opts="$global_opts "
+ ;;
+ put-file)
+ opts="$global_opts --protocols --source --target --append"
+ ;;
+ resolve)
+ opts="$global_opts "
+ ;;
+ rm)
+ opts="$global_opts --quiet"
+ ;;
+ run)
+ opts="$global_opts --sitename --stdout --jsdl --asynchronous --stderr --example --brief"
+ ;;
+ run-groovy)
+ opts="$global_opts --expression --file"
+ ;;
+ shell)
+ opts="$global_opts --file"
+ ;;
+ system-info)
+ opts="$global_opts "
+ ;;
+ workflow-control)
+ opts="$global_opts "
+ ;;
+ workflow-info)
+ opts="$global_opts --filter --nofiles --all"
+ ;;
+ workflow-submit)
+ opts="$global_opts --sitename --noFilenameFix --wait --workflowName --lifetime --factoryURL --storageURL --uccInput"
+ ;;
+ workflow-trace)
+ opts="$global_opts "
+ ;;
+
+ wsrf)
+ #looking for wsrf command
+ if [ $COMP_CWORD -eq 2 ]; then
+ opts="getproperties destroy extend"
+ else
+ opts="$global_opts "
+ fi
+ ;;
+ esac
+
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+
+ _filedir
+
+}
+
+complete -o filenames -F _ucc ucc
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/extensions
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/extensions (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/extensions 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,10 @@
+#
+# UCC extensions file
+#
+#
+# To add new commands to UCC, add lines to this file
+# <cmdname>=<Java class name>
+# where <Java class name> is the name of a Java class extending
+# the de.fzj.unicore.ucc.Command class
+#
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/logging.properties
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/logging.properties (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/logging.properties 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,10 @@
+# Set root logger level to OFF and its only appender to A1.
+log4j.rootLogger=INFO, A1
+
+# A1 is set to be a FileAppender.
+log4j.appender.A1=org.apache.log4j.FileAppender
+log4j.appender.A1.File=ucc.log
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c{1} %x - %m%n
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/preferences
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/preferences (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/etc/unicore/ucc/preferences 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,53 @@
+#
+# sample user preferences for UCC
+#
+# if not specified using the -c option, UCC checks whether a
+# file '$HOME/.ucc/preferences' exists and reads preferences from it
+#
+
+#
+# keystore containing a key entry for accessing the Grid
+#
+# if you are not using a separate truststore, the keystore
+# must also contain the certificates of the CAs that you trust
+#
+keystore=../certs/user-keystore.jks
+password=the!user
+
+# if not JKS, set store type
+#storetype=pkcs12
+
+# in case you have more than one key make sure to set the alias
+#alias=demo user
+
+#
+# optional: configure separate truststore (must be JKS)
+#
+#truststore=....
+#truststorePassword=....
+
+#
+# The address(es) of the registries to contact
+# (space separated list)
+
+registry=https://localhost:8080/DEMO-SITE/services/Registry?res=default_registry
+
+#
+# default directory for output
+#
+output=.
+
+#
+# HTTP Proxy settings
+#
+#http.proxyHost=
+#http.proxyPort=
+#http.proxy.user=
+#http.proxy.password=
+#http.nonProxyHosts=<space separated list of hostnames>
+
+#
+# connection timeout in millis (default = 10000)
+#
+#http.connection.timeout=<timeout in millis>
+
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/ucc
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/ucc (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/ucc 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,99 @@
+#!/bin/bash
+#
+# Startup script for the UNICORE Commandline client
+#
+
+if [ ! -e ${HOME}/.ucc/ ]; then
+ mkdir ${HOME}/.ucc/
+fi
+
+
+for f in /etc/unicore/ucc/*; do
+ if [ ! -e ${HOME}/.ucc/`basename $f` ]; then
+ cp $f ${HOME}/.ucc/`basename $f`
+ fi
+done
+
+
+#
+# where the UCC jar files are
+#
+UCC_LIB=/usr/share/unicore/ucc/lib
+
+#
+# Java command
+#
+JAVA=java
+
+#
+# helper function to set an option if it is not already set
+#
+# arg1: option name (without leading "-", e.g "Ducc.extensions")
+# arg2: option value (e.g. =conf/extensions)
+#
+Options=( )
+set_option(){
+ if [[ "$UCC_OPTS" != *$1* ]]
+ then
+ N=${#Options[*]}
+ Options[$N]="-$1$2"
+ fi
+}
+
+
+#
+# Options to the Java VM
+#
+
+#
+#Memory for the VM
+#
+set_option "Xmx" "128m"
+
+#set this one if you have ssl problems and need debug info
+#OPTS=$OPTS" -Djavax.net.debug=ssl,handshake"
+
+#
+# default location of user preferences file
+#
+set_option "Ducc.preferences" "=${HOME}/.ucc/preferences"
+
+#
+# extensions file
+#
+set_option "Ducc.extensions" "=${HOME}/.ucc/extensions"
+
+#
+# log configuration
+#
+set_option "Dlog4j.configuration" "=file://${HOME}/.ucc/logging.properties"
+
+
+
+#
+# put all jars in lib/ on the classpath
+#
+CP=$(find "$UCC_LIB" -name "*.jar" -printf ":%p")
+
+#
+# put all jars in ~/.ucc/lib/ on the classpath
+#
+if [ -d $HOME/.ucc/lib ]
+then
+ CP=$CP$(find "$HOME/.ucc/lib" -name "*.jar" -printf ":%p")
+fi
+
+
+CP=."$CP"
+
+
+#
+# setup endorsed directory
+#
+DEFS="-Djava.endorsed.dirs=${UCC_LIB}/endorsed"
+
+
+#
+# go
+#
+$JAVA "${Options[@]}" ${DEFS} ${UCC_OPTS} -cp ${CP} de.fzj.unicore.ucc.UCC ${1+"$@"}
Property changes on: ucc/trunk/ucc-distribution/src/main/package/distributions/Default/src/usr/bin/ucc
___________________________________________________________________
Added: svn:executable
+ *
Added: ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/component.spec_template
===================================================================
--- ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/component.spec_template (rev 0)
+++ ucc/trunk/ucc-distribution/src/main/package/distributions/RedHat/component.spec_template 2012-01-30 16:11:32 UTC (rev 12438)
@@ -0,0 +1,74 @@
+Buildroot: %{_builddir}/%{name}-root
+Name: unicore-@...@
+Obsoletes: unicore-@...@
+Provides: unicore-@...@
+Version: @component-version@
+Release: @component-release@...@
+Summary: UNICORE Commandline Client
+License: BSD
+Distribution: RedHat
+Group: Converted/contrib/misc
+URL: http://www.unicore.eu
+Requires: jre-1.6.0-openjdk
+BuildArch: @component-architecture@
+Packager: Bernd Schuller unicore-support@...
+@preamble@
+
+%description
+UNICORE (Uniform Interface to Computing Resources) offers a
+ready-to-run Grid system including client and server software.
+UNICORE makes distributed computing and data resources available
+in a seamless and secure way in intranets and the internet.
+
+This package contains the UNICORE commandline client UCC.
+
+
+%changelog
+* Mon Jan 30 2012 Bernd Schuller <unicore-support@...> 5.0.0-1
+-packaging updated, changed version schema, changed name to unicore-ucc6
+* Tue Feb 15 2011 Bernd Schuller <unicore-support@...> 6.4.0-1
+-updates for 6.4.0 release
+* Wed May 5 2010 Bernd Schuller <unicore-support@...> 6.3.1-1
+-include rpm build into automated UCC builds
+* Fri Nov 20 2009 Rebecca Breu <unicore-support@...> 6.2.0-1
+-get site-start for Emacs right
+* Thu Oct 15 2009 Rebecca Breu <unicore-support@...> 6.2.0-1
+-Initial rpm package
+
+@install_command@
+
+%files
+%defattr(640, root, root, 755)
+
+#
+# Config files
+#
+%dir %attr(750 root root) "/etc/unicore/ucc/"
+%config %attr(640 root root) "/etc/unicore/ucc/"
+%config %attr(640 root root) "/etc/unicore/ucc/extensions"
+%config %attr(640 root root) "/etc/unicore/ucc/logging.properties"
+%config %attr(640 root root) "/etc/unicore/ucc/preferences"
+
+#
+# Bash completion
+#
+%config %attr(640 root root) "/etc/bash_completion.d/unicore-ucc"
+
+#
+# Documentation and samples
+#
+%docdir %attr(755 root root) "/usr/share/doc/unicore/ucc/"
+%attr(644 root root) "/usr/share/doc/unicore/ucc/*"
+
+#
+# jar files
+#
+%dir %attr(755 root root) "/usr/share/unicore/ucc/lib"
+%attr(644 root root) "/usr/share/unicore/ucc/lib/*.jar"
+%dir %attr(755 root root) "/usr/share/unicore/ucc/lib/endorsed"
+%attr(644 root root) "/usr/share/unicore/ucc/lib/endorsed/*.jar"
+
+#
+# ucc sript
+#
+%attr(755 root root) "/usr/bin/ucc"
\ No newline at end of file
Deleted: ucc/trunk/ucc-distribution/update-specfile.py
===================================================================
--- ucc/trunk/ucc-distribution/update-specfile.py 2012-01-30 15:47:43 UTC (rev 12437)
+++ ucc/trunk/ucc-distribution/update-specfile.py 2012-01-30 16:11:32 UTC (rev 12438)
@@ -1,70 +0,0 @@
-#!/usr/bin/env python
-
-#
-# updates the spec file with the current jar files
-#
-
-
-import os
-import sys
-import socket
-import shutil
-
-
-#
-# version and release number passed in from commandline
-#
-version=sys.argv[1]
-release=sys.argv[2]
-
-#
-# spec file to produce
-#
-specfile="unicore-ucc.spec"
-
-jarsource="rpm/usr/share/unicore/ucc/lib"
-
-jarbase="/usr/share/unicore/ucc/lib"
-
-#
-#loop over list of config files and do the substitution
-#
-
-try:
- print "Generating "+specfile
- jars=os.listdir(jarsource)
- s=""
- for j in jars:
- if(j[-3:]=="jar"):
- s = s + '"'+jarbase+"/"+j+'"\n'
-
- jars=os.listdir(jarsource+"/endorsed")
- endorsed=""
- for j in jars:
- if(j[-3:]=="jar"):
- endorsed = endorsed + '"'+jarbase+"/endorsed/"+j+'"\n'
-
-
- file = open("rpm/"+specfile+"_template")
- lines=file.readlines()
- file.close()
-
- file = open(specfile, 'w')
-
- for line in lines:
- line=line.replace("$jars", s);
- line=line.replace("$endorsed", endorsed);
- line=line.replace("$ucc-version", version);
- line=line.replace("$release", release);
- file.write(line)
-
- file.close()
-
-except Exception,e :
- print "Error processing",e
-
-print "Done processing "+specfile
-
-
-
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|