[jsap/f21] importing package

Ismael Olea olea at fedoraproject.org
Thu Aug 21 16:05:12 UTC 2014


commit 2c454a4aa2d49338177c24b6d3ae890e4b3e3158
Author: Ismael Olea <ismael at olea.org>
Date:   Thu Aug 21 18:02:57 2014 +0200

    importing package

 .gitignore         |    1 +
 jsap-2.1.pom       |   30 ++++++++++
 jsap-javac.patch   |   29 ++++++++++
 jsap-javadoc.patch |   11 ++++
 jsap.spec          |  149 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 6 files changed, 221 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5251f56 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JSAP-2.1-src.tar.gz
diff --git a/jsap-2.1.pom b/jsap-2.1.pom
new file mode 100644
index 0000000..b4b2193
--- /dev/null
+++ b/jsap-2.1.pom
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.martiansoftware</groupId>
+  <artifactId>jsap</artifactId>
+  <name>JSAP</name>
+  <version>2.1</version>
+  <description>the Java-based Simple Argument Parser</description>
+  <url>http://www.martiansoftware.com/jsap/</url>
+  <licenses>
+    <license>
+      <name>LGPL</name>
+      <url>http://www.martiansoftware.com/jsap/license.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+    <url>http://jsap.cvs.sourceforge.net/jsap/</url>
+  </scm>
+  <developers>
+    <developer>
+      <name>John Mutchek</name>
+    </developer>
+    <developer>
+      <name>Marty Lamb</name>
+    </developer>
+    <developer>
+      <name>Sebastiano Vigna</name>
+    </developer>
+  </developers>
+</project>
diff --git a/jsap-javac.patch b/jsap-javac.patch
new file mode 100644
index 0000000..cf4d9be
--- /dev/null
+++ b/jsap-javac.patch
@@ -0,0 +1,29 @@
+--- JSAP-2.1/build.xml~	2014-08-20 19:42:42.000000000 +0200
++++ JSAP-2.1/build.xml	2014-08-20 19:43:23.051461871 +0200
+@@ -123,7 +123,7 @@
+     
+     <!-- compile the JSAP API -->
+     <target name="compile-api" depends="init" >
+-        <javac target="1.4" source="1.4" destdir="${build}" srcdir="${javasrc}">
++        <javac target="1.5" source="1.5" destdir="${build}" srcdir="${javasrc}">
+ <!--        	<exclude name="${testFiles}" />
+         	<exclude name="${exampleFiles}" /> -->
+         	<classpath refid="lib.class.path" />
+@@ -137,7 +137,7 @@
+ 
+ 	<!-- compile the JSAP API and JUnit tests -->
+     <target name="compile-tests" depends="init" >
+-        <javac target="1.4" source="1.4" destdir="${build}" srcdir="${javasrc}">
++        <javac target="1.5" source="1.5" destdir="${build}" srcdir="${javasrc}">
+ <!--        	<exclude name="${exampleFiles}" /> -->
+         	<classpath refid="lib.class.path" />
+         </javac>
+@@ -150,7 +150,7 @@
+ 
+ 	<!-- compile the JSAP API, JUnit tests, and examples -->
+     <target name="compile-all" depends="init" >
+-        <javac target="1.4" source="1.4" destdir="${build}" srcdir="${javasrc}">
++        <javac target="1.5" source="1.5" destdir="${build}" srcdir="${javasrc}">
+         	<classpath refid="lib.class.path" />
+         </javac>
+     </target>
diff --git a/jsap-javadoc.patch b/jsap-javadoc.patch
new file mode 100644
index 0000000..5da0001
--- /dev/null
+++ b/jsap-javadoc.patch
@@ -0,0 +1,11 @@
+--- JSAP-2.1/build.xml~	2006-08-04 02:30:58.000000000 +0200
++++ JSAP-2.1/build.xml	2014-08-16 22:46:06.166801559 +0200
+@@ -188,7 +188,7 @@
+         	sourcepath="${javasrc}" 
+         	packagenames="com.martiansoftware.*"
+         	windowtitle="JSAP: the Java Simple Argument Parser"
+-        	classpathref="lib.class.path">
++        	>
+         	
+ 			<link href="${j2se.apiurl}"/>
+ 			<link href="${xstream.apiurl}"/>
diff --git a/jsap.spec b/jsap.spec
new file mode 100644
index 0000000..3c68f54
--- /dev/null
+++ b/jsap.spec
@@ -0,0 +1,149 @@
+# Copyright (c) 2000-2012, 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:           jsap
+Version:        2.1
+Release:        5.3%{?dist}
+Summary:        A Java-based Simple Argument Parser
+License:        LGPLv3+
+Source0:        http://prdownloads.sourceforge.net/jsap/JSAP-2.1-src.tar.gz
+Source1:        http://central.maven.org/maven2/com/martiansoftware/jsap/2.1/jsap-2.1.pom
+Patch0:         jsap-javadoc.patch
+Patch1:         jsap-javac.patch
+URL:            http://www.martiansoftware.com/jsap/
+BuildArch:      noarch
+
+BuildRequires:  javapackages-local
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  ant-junit
+BuildRequires:  xstream
+BuildRequires:  rundoc
+BuildRequires:  snip
+BuildRequires:  xmlto
+
+# /usr/share/maven-metadata needs an owner:
+Requires:       javapackages-tools
+
+%description 
+JSAP not only syntactically validates your program's command line
+arguments, but it converts those arguments into objects you specify. If you
+tell JSAP that one of your parameters is an Integer, for example, and the
+user does not provide a String that can be converted to an Integer when
+invoking the program, JSAP will throw a ParseException when you have it
+parse the command line. If no exception is thrown, you are guaranteed an
+Integer when you request that parameter's value from your program. There's
+a pretty big (and growing) list of return types supported by JSAP, including
+Integers, Floats, Dates, URLs, and even java.awt.Colors; you can also add
+your own in a matter of minutes.
+
+
+%package javadoc
+Summary:        Javadoc for %{name}
+
+%description javadoc
+Javadoc for %{name}.
+
+%package doc
+Summary:        Manual for %{name}
+
+%description doc
+Manual for %{name}.
+
+%prep
+%setup -q -c
+
+rm JSAP-%{version}/lib/ant.jar
+rm JSAP-%{version}/lib/JSAP-2.1.jar
+rm JSAP-%{version}/lib/junit.jar
+rm JSAP-%{version}/lib/rundoc-0.11.jar
+rm JSAP-%{version}/lib/snip-0.11.jar
+rm JSAP-%{version}/lib/xstream-1.1.2.jar
+
+%patch0 
+%patch1 
+
+cp %{SOURCE1} %{name}.pom
+
+%build
+mv JSAP-%{version}/* .
+export CLASSPATH=%(build-classpath xstream snip rundoc junit)
+ant \
+  -Dversion=%{version} \
+  -Dj2se.apiurl=%{_javadocdir}/java \
+  -Dxstream.apiurl=%{_javadocdir}/xstream/core \
+  jar javadoc manual
+mv doc/javadoc .
+
+# Tell XMvn which artifact belongs to which POM
+%mvn_artifact %{name}.pom dist/JSAP-%{version}.jar
+
+
+%install
+%mvn_install -J javadoc/
+
+
+%files -f .mfiles
+%doc LICENSE.TXT CHANGELOG.TXT
+%dir %{_datadir}/maven-poms/%{name}/
+%dir %{_javadir}/%{name}/
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.TXT
+
+%files doc
+%doc doc/*
+%doc LICENSE.TXT
+
+%changelog
+* Wed Aug 20 2014 Ismael Olea <ismael at olea.org> - 2.1-5.3
+- More review suggestions from https://bugzilla.redhat.com/show_bug.cgi?id=1127894
+
+* Sat Aug  16 2014 Ismael Olea <ismael at olea.org> - 2.1-5.2
+- Spec enhancenments
+
+* Thu Aug  7 2014 Ismael Olea <ismael at olea.org> - 2.1-5.1
+- Fedora build
+
+* Thu Nov 01 2012 Will Tatam <will.tatam at red61.com> 2.1-5
+- Auto rebuild for JPackage 6 in centos5 mock
+
+* Mon Aug 13 2012 Ralph Apel <r.apel at r-apel.de> 0:2.1-4
+- First JPP-6 release
+
+* Wed Jan 14 2009 Sebastiano Vigna <vigna at acm.org> 0:2.1-3.jpp5
+- Fixed spec file
+
+* Fri Dec 26 2008 Sebastiano Vigna <vigna at acm.org> 0:2.1-1jpp
+- Updated to 2.1
+
+* Tue Jun 21 2005 Sebastiano Vigna <vigna at acm.org> 0:2.0-1jpp
+- Updated to 2.0--many new features
+
+* Wed Mar 16 2005 Sebastiano Vigna <vigna at acm.org> 0:1.03a-1jpp
+- First JPackage version
diff --git a/sources b/sources
index e69de29..14767dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f5aef90601e77cbb4b3db4a691b66a42  JSAP-2.1-src.tar.gz


More information about the scm-commits mailing list