[jopt-simple] Initial import

Karel Klíč kklic at fedoraproject.org
Thu Aug 11 15:22:44 UTC 2011


commit d73a7132eb6b9685a3b415d7fb658205b84f6601
Author: Karel Klic <kklic at redhat.com>
Date:   Thu Aug 11 17:22:30 2011 +0200

    Initial import

 .gitignore                   |    1 +
 jopt-simple-buildfixes.patch |  132 ++++++++++++++++++++++++++++++++++++++++++
 jopt-simple.spec             |  115 ++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 4 files changed, 249 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e4d2d26 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pholser-jopt-simple-jopt-simple-3.3-0-g59a05aa.tar.gz
diff --git a/jopt-simple-buildfixes.patch b/jopt-simple-buildfixes.patch
new file mode 100644
index 0000000..6914f9f
--- /dev/null
+++ b/jopt-simple-buildfixes.patch
@@ -0,0 +1,132 @@
+diff -up pholser-jopt-simple-9d4f1b6/pom.xml.buildfixes pholser-jopt-simple-9d4f1b6/pom.xml
+--- pholser-jopt-simple-9d4f1b6/pom.xml.buildfixes	2011-05-22 01:42:28.000000000 +0200
++++ pholser-jopt-simple-9d4f1b6/pom.xml	2011-07-29 20:37:39.160086000 +0200
+@@ -32,32 +32,6 @@
+             <url>http://www.pholser.com</url>
+         </developer>
+     </developers>
+-    <dependencies>
+-        <dependency>
+-            <groupId>joda-time</groupId>
+-            <artifactId>joda-time</artifactId>
+-            <version>1.6</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.apache.ant</groupId>
+-            <artifactId>ant</artifactId>
+-            <version>1.7.0</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>junit</groupId>
+-            <artifactId>junit</artifactId>
+-            <version>4.7</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.infinitest</groupId>
+-            <artifactId>continuous-testing-toolkit</artifactId>
+-            <version>1.0</version>
+-            <scope>test</scope>
+-        </dependency>
+-    </dependencies>
+     <build>
+         <extensions>
+             <extension>
+@@ -70,11 +44,6 @@
+                 <artifactId>maven-scm-manager-plexus</artifactId>
+                 <version>1.3</version>
+             </extension>
+-            <extension>
+-                <groupId>org.kathrynhuxtable.maven.wagon</groupId>
+-                <artifactId>wagon-gitsite</artifactId>
+-                <version>0.3.1</version>
+-            </extension>
+         </extensions>
+         <plugins>
+             <plugin>
+@@ -97,44 +66,6 @@
+                 </configuration>
+             </plugin>
+             <plugin>
+-                <groupId>org.codehaus.mojo</groupId>
+-                <artifactId>cobertura-maven-plugin</artifactId>
+-                <version>2.4</version>
+-                <configuration>
+-                    <check>
+-                        <haltOnFailure>true</haltOnFailure>
+-                        <branchRate>83</branchRate>
+-                        <totalBranchRate>96</totalBranchRate>
+-                        <totalLineRate>99</totalLineRate>
+-                    </check>
+-                </configuration>
+-                <executions>
+-                    <execution>
+-                        <goals>
+-                            <goal>clean</goal>
+-                            <goal>check</goal>
+-                        </goals>
+-                    </execution>
+-                </executions>
+-            </plugin>
+-            <plugin>
+-                <groupId>org.apache.maven.plugins</groupId>
+-                <artifactId>maven-pmd-plugin</artifactId>
+-                <version>2.5</version>
+-                <configuration>
+-                    <minimumTokens>40</minimumTokens>
+-                    <targetJdk>1.5</targetJdk>
+-                </configuration>
+-                <executions>
+-                    <execution>
+-                        <phase>compile</phase>
+-                        <goals>
+-                            <goal>cpd-check</goal>
+-                        </goals>
+-                    </execution>
+-                </executions>
+-            </plugin>
+-            <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-antrun-plugin</artifactId>
+                 <version>1.3</version>
+@@ -197,38 +128,12 @@
+             </plugin>
+             <plugin>
+                 <groupId>org.codehaus.mojo</groupId>
+-                <artifactId>cobertura-maven-plugin</artifactId>
+-                <configuration>
+-                    <formats>
+-                        <format>xml</format>
+-                        <format>html</format>
+-                    </formats>
+-                </configuration>
+-            </plugin>
+-            <plugin>
+-                <groupId>org.apache.maven.plugins</groupId>
+-                <artifactId>maven-checkstyle-plugin</artifactId>
+-                <configuration>
+-                    <configLocation>${basedir}/conf/src-checkstyle.xml</configLocation>
+-                    <headerLocation>${basedir}/LICENSE.txt</headerLocation>
+-                </configuration>
+-            </plugin>
+-            <plugin>
+-                <groupId>org.codehaus.mojo</groupId>
+                 <artifactId>findbugs-maven-plugin</artifactId>
+                 <version>2.3.2</version>
+                 <configuration>
+                     <threshold>Low</threshold>
+                 </configuration>
+             </plugin>
+-            <plugin>
+-                <groupId>org.apache.maven.plugins</groupId>
+-                <artifactId>maven-pmd-plugin</artifactId>
+-                <configuration>
+-                    <minimumTokens>40</minimumTokens>
+-                    <targetJdk>1.5</targetJdk>
+-                </configuration>
+-            </plugin>
+         </plugins>
+     </reporting>
+     <distributionManagement>
diff --git a/jopt-simple.spec b/jopt-simple.spec
new file mode 100644
index 0000000..e653f36
--- /dev/null
+++ b/jopt-simple.spec
@@ -0,0 +1,115 @@
+# Copyright (c) 2000-2009, 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: jopt-simple
+Version: 3.3
+Release: 3%{?dist}
+Summary: A Java command line parser
+License: MIT
+Group: Development/Libraries
+URL: http://jopt-simple.sourceforge.net
+# https://github.com/pholser/jopt-simple/tarball/jopt-simple-3.3
+Source0: https://download.github.com/pholser-jopt-simple-jopt-simple-%{version}-0-g59a05aa.tar.gz
+Patch0: jopt-simple-buildfixes.patch
+BuildArch: noarch
+BuildRequires: jpackage-utils
+BuildRequires: java-devel >= 1.5.0
+BuildRequires: maven, maven-scm
+Requires: java >= 0:1.5.0
+Requires: jpackage-utils
+# Unit testing is disabled due to missing dependencies.
+#BuildRequires:  joda-time
+#BuildRequires:  junit4
+#BuildRequires:  continuous-testing-toolkit
+#BuildRequires:  ant
+
+%description
+A Java library for parsing command line options.
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n pholser-jopt-simple-9d4f1b6
+%patch0 -p1 -b .buildfixes
+
+%build
+mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip=true
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
+
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+install -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rf target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%doc LICENSE.txt
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%doc LICENSE.txt
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Aug 11 2011 Karel Klíč <kklic at redhat.com> - 3.3-3
+- Include the license text in the javadoc package, which is
+  independent from the main package
+- Use %%add_maven_depmap instead of %%add_to_maven_depmap
+
+* Fri Jul 29 2011 Karel Klíč <kklic at redhat.com> - 3.3-2
+- Use %%{_mavenpomdir} instead of %%{_datadir}/maven2/poms
+- Removed %%post(un) %%update_maven_depmap calls, not needed in F-15+
+
+* Wed Jun 29 2011 Karel Klíč <kklic at redhat.com> - 3.3-1
+- Use maven3 instead of maven2 to build the package.
+- Updated to upstream final 3.3 release.
+
+* Thu Apr 28 2011 Karel Klíč <kklic at redhat.com> - 3.3-0.2.git12c0e63
+- Added jpackage-utils dependency to -javadoc package (needed for directory)
+- Better versioning
+
+* Tue Apr 26 2011 Karel Klíč <kklic at redhat.com> - 3.3-0.1.git12c0e63
+- Repackaged to follow Fedora guidelines
+- Upstream version 3.2 source code seems not to be available,
+  3.3-SNAPSHOT is available in git and seems stable
+
+* Tue Aug 18 2009 Ralph Apel <r.apel at r-apel.de> - 0:3.1-1
+- first release
diff --git a/sources b/sources
index e69de29..b352589 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d44f52b4be44ca97756e2e0823b1b59d  pholser-jopt-simple-jopt-simple-3.3-0-g59a05aa.tar.gz


More information about the scm-commits mailing list