diff --git a/commons-compiler-2.7.8.pom b/commons-compiler-2.7.8.pom new file mode 100644 index 0000000..07b7778 --- /dev/null +++ b/commons-compiler-2.7.8.pom @@ -0,0 +1,27 @@ + + + 4.0.0 + + + org.codehaus.janino + janino-parent + 2.7.8 + + + commons-compiler + + Commons Compiler + + + + junit + junit + test + + + diff --git a/commons-compiler-jdk-2.7.8.pom b/commons-compiler-jdk-2.7.8.pom new file mode 100644 index 0000000..c73c9fa --- /dev/null +++ b/commons-compiler-jdk-2.7.8.pom @@ -0,0 +1,39 @@ + + + 4.0.0 + + + org.codehaus.janino + janino-parent + 2.7.8 + + + commons-compiler-jdk + + Commons Compiler Jdk + + + + org.codehaus.janino + commons-compiler + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.6 + 1.6 + + + + + diff --git a/janino-2.7.8-remove-nullanalysis-annotations.patch b/janino-2.7.8-remove-nullanalysis-annotations.patch new file mode 100644 index 0000000..4ef6fba --- /dev/null +++ b/janino-2.7.8-remove-nullanalysis-annotations.patch @@ -0,0 +1,24 @@ +diff -Nru janino-2.7.8/commons-compiler-jdk/src/org/codehaus/commons/compiler/jdk/package-info.java janino-2.7.8.nullanalysis/commons-compiler-jdk/src/org/codehaus/commons/compiler/jdk/package-info.java +--- janino-2.7.8/commons-compiler-jdk/src/org/codehaus/commons/compiler/jdk/package-info.java 2014-12-17 22:06:58.000000000 +0100 ++++ janino-2.7.8.nullanalysis/commons-compiler-jdk/src/org/codehaus/commons/compiler/jdk/package-info.java 2015-02-11 04:39:15.055288383 +0100 +@@ -25,8 +25,5 @@ + */ + + /** Main package of the plugin. */ +-@NotNullByDefault + package org.codehaus.commons.compiler.jdk; + +-import de.unkrig.commons.nullanalysis.NotNullByDefault; +- +diff -Nru janino-2.7.8/commons-compiler-jdk/src/org/codehaus/commons/io/package-info.java janino-2.7.8.nullanalysis/commons-compiler-jdk/src/org/codehaus/commons/io/package-info.java +--- janino-2.7.8/commons-compiler-jdk/src/org/codehaus/commons/io/package-info.java 2014-12-17 22:07:00.000000000 +0100 ++++ janino-2.7.8.nullanalysis/commons-compiler-jdk/src/org/codehaus/commons/io/package-info.java 2015-02-11 04:38:47.904850661 +0100 +@@ -25,8 +25,5 @@ + */ + + /** I/O utilities. */ +-@NotNullByDefault + package org.codehaus.commons.io; + +-import de.unkrig.commons.nullanalysis.NotNullByDefault; +- diff --git a/janino-2.7.8.pom b/janino-2.7.8.pom new file mode 100644 index 0000000..47fe695 --- /dev/null +++ b/janino-2.7.8.pom @@ -0,0 +1,37 @@ + + + 4.0.0 + + + org.codehaus.janino + janino-parent + 2.7.8 + + + janino + + Janino + + + + junit + junit + test + + + org.apache.ant + ant-nodeps + true + + + + org.codehaus.janino + commons-compiler + + + diff --git a/janino-2.7.8.zip b/janino-2.7.8.zip new file mode 100644 index 0000000..a0a6e83 Binary files /dev/null and b/janino-2.7.8.zip differ diff --git a/janino-parent-2.7.8.pom b/janino-parent-2.7.8.pom new file mode 100644 index 0000000..80a8f5e --- /dev/null +++ b/janino-parent-2.7.8.pom @@ -0,0 +1,263 @@ + + + 4.0.0 + + + org.codehaus + codehaus-parent + 4 + + + org.codehaus.janino + janino-parent + 2.7.8 + pom + + Janino Parent + + Janino is a compiler that reads a JavaTM expression, block, class body, source file or a set of source files, and + generates JavaTM bytecode that is loaded and executed directly. Janino is not intended to be a development tool, + but an embedded compiler for run-time compilation purposes, e.g. expression evaluators or "server pages" engines + like JSP. + + http://docs.codehaus.org/display/JANINO/Home + 2001 + + + New BSD License + http://dist.codehaus.org/janino/new_bsd_license.txt + repo + + + + + + Development List + dev-subscribe@janino.codehaus.org + dev-unsubscribe@janino.codehaus.org + dev@janino.codehaus.org + http://archive.janino.codehaus.org/dev/ + + + User List + user-subscribe@janino.codehaus.org + user-unsubscribe@janino.codehaus.org + user@janino.codehaus.org + http://archive.janino.codehaus.org/user/ + + + Commits List + scm-subscribe@janino.codehaus.org + scm-unsubscribe@janino.codehaus.org + http://archive.janino.codehaus.org/scm/ + + + + + + aunkrig + Arno Unkrig + + Despot + Developer + + + + + + commons-compiler + commons-compiler-jdk + janino + + + + scm:svn:http://svn.codehaus.org/janino/tags/janino_2.7.8/ + scm:svn:https://svn.codehaus.org/janino/tags/janino_2.7.8/ + http://fisheye.codehaus.org/browse/janino/tags/janino_2.7.8/ + + + Jira + http://jira.codehaus.org/browse/JANINO + + + + + + org.codehaus.janino + commons-compiler + 2.7.8 + + + org.codehaus.janino + commons-compiler-jdk + 2.7.8 + + + + junit + junit + 4.7 + test + + + org.apache.ant + ant-nodeps + 1.7.1 + true + + + + + + src + tests + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3 + + 1.2 + 1.1 + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.4.3 + + **/*Tests + false + + + + org.codehaus.mojo + buildnumber-maven-plugin + 1.0-beta-2 + + {0,date,yyyy-MM-dd HH:mm:ss} + + timestamp + + + + + validate + + create + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.4 + + + org.apache.maven.plugins + maven-resources-plugin + 2.4.2 + + + org.apache.maven.plugins + maven-install-plugin + 2.3 + + + org.apache.maven.plugins + maven-deploy-plugin + 2.5 + + + org.apache.maven.plugins + maven-site-plugin + 2.0.1 + + + org.apache.maven.plugins + maven-source-plugin + 2.1.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3 + + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.1.2 + + + + + + + reporting + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.5 + + + org.apache.maven.plugins + maven-pmd-plugin + 2.4 + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.4.3 + + + org.apache.maven.plugins + maven-jxr-plugin + 2.1 + + ${project.build.sourceEncoding} + + + + org.codehaus.mojo + findbugs-maven-plugin + 1.1.1 + + + org.codehaus.mojo + jdepend-maven-plugin + 2.0-beta-2 + + + org.codehaus.mojo + javancss-maven-plugin + 2.0 + + + + + + diff --git a/janino.spec b/janino.spec new file mode 100644 index 0000000..6a646f5 --- /dev/null +++ b/janino.spec @@ -0,0 +1,116 @@ +# Copyright (c) 2000-2007, 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: janino +Version: 2.7.8 +Release: 11 +Summary: A super-small, super-fast Java compiler. +License: BSD +URL: http://janino-compiler.github.io/janino +Source0: http://janino.unkrig.de/download/%{name}-%{version}.zip +Source1: https://repo1.maven.org/maven2/org/codehaus/%{name}/%{name}-parent/%{version}/%{name}-parent-%{version}.pom +Source2: https://repo1.maven.org/maven2/org/codehaus/%{name}/commons-compiler/%{version}/commons-compiler-%{version}.pom +Source3: https://repo1.maven.org/maven2/org/codehaus/%{name}/commons-compiler-jdk/%{version}/commons-compiler-jdk-%{version}.pom +Source4: https://repo1.maven.org/maven2/org/codehaus/%{name}/%{name}/%{version}/%{name}-%{version}.pom +# removes the de.unkrig.commons.nullanalysis annotations +Patch0: %{name}-2.7.8-remove-nullanalysis-annotations.patch + +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.ant:ant) +BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) +BuildRequires: mvn(org.codehaus:codehaus-parent:pom:) +BuildRequires: /usr/bin/perl + +BuildArch: noarch + +%description +Janino can not only compile a set of source files to a set of class files like JAVAC, +but also compile a Java expression, a block, a class body, one .java file or a set of +.java files in memory, load the bytecode and execute it directly in the same JVM. + +%package help +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} +Summary: Javadoc for janino. + +%description help +This package contains Introduction for janino. + +%prep +%setup -q + +find . -name "*.jar" -delete +find . -name "*.class" -delete + +for m in commons-compiler commons-compiler-jdk %{name};do + mkdir -p ${m}/src + ( + cd ${m}/src/ + unzip -qq ../../${m}-src.zip + if [ -f org.codehaus.commons.compiler.properties ]; then + mkdir -p main/resources + mv org.codehaus.commons.compiler.properties main/resources + fi + ) +done + +%patch0 -p1 + +install -m 644 %{SOURCE1} pom.xml +install -m 644 %{SOURCE2} commons-compiler/pom.xml +install -m 644 %{SOURCE3} commons-compiler-jdk/pom.xml +install -m 644 %{SOURCE4} %{name}/pom.xml + +%pom_change_dep -r :ant-nodeps :ant + +%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:source" 1.6 +%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:target" 1.6 + +perl -pi -e 's/\r$//g' new_bsd_license.txt README.txt + +for plugin in buildnumber-maven-plugin maven-clean-plugin maven-deploy-plugin \ + maven-site-plugin maven-source-plugin;do + %pom_remove_plugin :$plugin +done + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.txt +%license new_bsd_license.txt + +%files help -f .mfiles-javadoc +%license new_bsd_license.txt + +%changelog +* Mon Mar 16 2020 yangjian - 2.7.8-11 +- Package init