diff --git a/jenkins-json-lib-2.4.tar.xz b/jenkins-json-lib-2.4.tar.xz new file mode 100644 index 0000000..216f02b Binary files /dev/null and b/jenkins-json-lib-2.4.tar.xz differ diff --git a/json-lib-2.4-jenkins-3.pom b/json-lib-2.4-jenkins-3.pom new file mode 100644 index 0000000..3c9abdf --- /dev/null +++ b/json-lib-2.4-jenkins-3.pom @@ -0,0 +1,418 @@ + + + 4.0.0 + org.kohsuke.stapler + json-lib + jar + 2.4-jenkins-3 + json-lib + + http://json-lib.sourceforge.net + + + Java library for transforming beans, maps, collections, java + arrays and XML to JSON. + + + 2006 + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + This product includes software developed by Douglas + Crockford (http://www.crockford.com). + + + + + Json-lib + http://json-lib.sourceforge.net + + + + scm:git:git://github.com/jenkinsci/json-lib.git + scm:git:ssh://git@github.com/jenkinsci/json-lib.git + https://github.com/jenkinsci/json-lib + + + + SourceForge + https://sourceforge.net/tracker/?group_id=171425 + + + + + Json-lib User List + + http://lists.sourceforge.net/lists/listinfo/json-lib-user + + + http://lists.sourceforge.net/lists/listinfo/json-lib-user + + + http://sourceforge.net/mailarchive/forum.php?forum=json-lib-user + + + + + + + Douglas Crockford + json at JSON.org + JSON.org + + Original source code developer + + + + Andres Almiray + aalmiray + aalmiray@users.sourceforge.net + -5 + + Java Developer + + + + + + + Matt Small + WaveMaker + + Contributed generics support + + + + Dan Fabulich + + Feedback on JDK5 and JEE features + + + + Masato Nagai + + Patch for XMLSerializer + + + + Gino Miceli + + Patch for PropertySet strategy + + + + Mino Tonga + + + Yee_Keat Phuah + + Patch for thread safety in JSONObject/JSONArray + + + + Oliver Zyngier + + + Marcelo Liberato + + + Mathias Herberst + + + Ales Novy + + Patch for performance improvements in JSONUtils + Patch for propagating JsonConfig to missing methods on JSONObject + + + + Peter Schubert + + Performance patch for JSONUtils + + + + Ian Wolfcat Atha + + Performance patch for JSONUtils + + + + + + + junit + junit + 3.8.2 + compile + true + + + xmlunit + xmlunit + 1.0 + test + + + commons-beanutils + commons-beanutils + 1.8.0 + compile + + + commons-collections + commons-collections + 3.2.1 + compile + + + commons-lang + commons-lang + 2.5 + compile + + + commons-logging + commons-logging + 1.1.1 + compile + + + log4j + log4j + + + logkit + logkit + + + avalon-framework + avalon-framework + + + javax.servlet + servlet-api + + + + + xom + xom + 1.1 + compile + true + + + oro + oro + 2.0.8 + compile + true + + + net.sf.ezmorph + ezmorph + 1.0.6 + compile + + + log4j + log4j + 1.2.14 + runtime + true + + + org.codehaus.groovy + groovy-all + 1.8.0 + compile + true + + + commons-httpclient + commons-httpclient + 3.1 + test + + + + + 3.0.1 + + + + install + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-source + generate-sources + + add-source + + + + src/main/jdk15 + + + + + add-test-source + generate-test-sources + + add-test-source + + + + src/test/jdk15 + + + + + + + org.apache.maven.plugins + maven-site-plugin + + + ${basedir}/src/site + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.8 + + + **/Abstract*.java + **/AllTests.java + **/*closure* + + + **/Test*.java + + + + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + org.apache.maven.plugins + maven-surefire-report-plugin + + + org.apache.maven.plugins + maven-jxr-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.1 + + + http://java.sun.com/j2se/1.5.0/docs/api/ + http://www.junit.org/junit/javadoc/ + + http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/ + + + http://jakarta.apache.org/commons/lang/api-2.2/ + + http://ezmorph.sourceforge.net/apidocs/ + + + + + org.codehaus.mojo + cobertura-maven-plugin + + + org.codehaus.mojo + changes-maven-plugin + + + + changes-report + + + + + + org.codehaus.mojo + jdepend-maven-plugin + + + org.codehaus.mojo + javancss-maven-plugin + 2.0-beta-1 + + + + + + + + maven.jenkins-ci.org + http://maven.jenkins-ci.org:8081/content/repositories/releases + + + maven.jenkins-ci.org + http://maven.jenkins-ci.org:8081/content/repositories/snapshots + + + + + + diff --git a/json-lib-2.4.tar.xz b/json-lib-2.4.tar.xz new file mode 100644 index 0000000..7c75b36 Binary files /dev/null and b/json-lib-2.4.tar.xz differ diff --git a/json-lib.spec b/json-lib.spec new file mode 100644 index 0000000..478b63d --- /dev/null +++ b/json-lib.spec @@ -0,0 +1,101 @@ +Name: json-lib +Version: 2.4 +Release: 16 +Summary: JSON library for Java +License: ASL 2.0 +URL: http://json-lib.sourceforge.net/ +# https://github.com/aalmiray/Json-lib/commit/a45916508dcfe4fe048e2eac10573a4a20ed6a9a +Source0: %{name}-%{version}.tar.xz +# https://github.com/kordamp/json-lib/commit/78cc0083692ad2e30c7bcf3929c697d605a90317 +Source1: jenkins-%{name}-%{version}.tar.xz +Source2: http://repo.jenkins-ci.org/releases/org/kohsuke/stapler/json-lib/%{version}-jenkins-3/json-lib-%{version}-jenkins-3.pom + +BuildRequires: java-devel maven-local maven-shared maven-surefire-provider-junit +BuildRequires: mvn(commons-beanutils:commons-beanutils) mvn(commons-lang:commons-lang) +BuildRequires: mvn(commons-collections:commons-collections) mvn(junit:junit) mvn(log4j:log4j) +BuildRequires: mvn(commons-logging:commons-logging) mvn(net.sf.ezmorph:ezmorph) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) mvn(oro:oro) mvn(xom:xom) +BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin) mvn(xmlunit:xmlunit) +BuildRequires: mvn(org.codehaus.groovy:groovy18:1.8) mvn(org.codehaus.groovy:groovy18-all:1.8) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) mvn(antlr:antlr) mvn(asm:asm-all) +BuildRequires: mvn(commons-cli:commons-cli) mvn(org.slf4j:slf4j-nop) + +BuildArch: noarch + +%description +JSON-lib is a java library for transforming beans, maps, collections, java +arrays and XML to JSON and back again to beans and DynaBeans. + +%package -n jenkins-json-lib +Summary: Jenkins JSON library + +%description -n jenkins-json-lib +This package contains JSON library used in Jenkins. + +%package help +Summary: Help documentation for json-lib package +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +Help documentation for json-lib package. + +%prep +%autosetup -n %{name}-%{version} -p1 +tar xf %{SOURCE1} +find -name "*.jar" -or -name "*.class" | xargs rm -rf + +%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy +%pom_remove_plugin :maven-compiler-plugin +%pom_remove_plugin :gmaven-plugin +%pom_xpath_remove "pom:project/pom:prerequisites" +%pom_xpath_remove "pom:project/pom:reporting" + +rm -r src/main/jdk15/net/sf/json/JSON*.java +%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . ' + + UTF-8 + UTF-8 + ${basedir}/src/main +' + +%pom_remove_dep :commons-httpclient +%pom_change_dep org.codehaus.groovy:groovy org.codehaus.groovy:groovy18:1.8 + +install %{SOURCE2} jenkins-json-lib-%{version}/pom.xml + +cd jenkins-json-lib-%{version} + +%pom_change_dep org.codehaus.groovy:groovy-all org.codehaus.groovy:groovy18-all:1.8 +%mvn_file org.kohsuke.stapler:json-lib jenkins-%{name} +%mvn_package org.kohsuke.stapler:json-lib jenkins-json-lib + +cd - + +%build +%mvn_file : json-lib +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +cd jenkins-json-lib-%{version} +%mvn_build -f +cd - + +%install +%mvn_install + +cd jenkins-json-lib-%{version} +%mvn_install +cd - + +%files -f .mfiles +%license LICENSE.txt + +%files -n jenkins-json-lib -f jenkins-json-lib-%{version}/.mfiles-jenkins-json-lib +%license LICENSE.txt + +%files help -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Sat Mar 07 2020 daiqianwen - 2.4-16 +- Package init