diff --git a/asm-6.2.1.pom b/asm-6.2.1.pom new file mode 100644 index 0000000..4b4b318 --- /dev/null +++ b/asm-6.2.1.pom @@ -0,0 +1,96 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm + 6.2.1 + asm + ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/asm-all.pom b/asm-all.pom new file mode 100644 index 0000000..bbd5d29 --- /dev/null +++ b/asm-all.pom @@ -0,0 +1,67 @@ + + + + + 4.0.0 + + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-all + @VERSION@ + + + org.ow2.asm + asm + @VERSION@ + + + org.ow2.asm + asm-analysis + @VERSION@ + + + org.ow2.asm + asm-commons + @VERSION@ + + + org.ow2.asm + asm-tree + @VERSION@ + + + org.ow2.asm + asm-tree + @VERSION@ + + + org.ow2.asm + asm-xml + @VERSION@ + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.1.1 + + + package + + shade + + + + + + + diff --git a/asm-analysis-6.2.1.pom b/asm-analysis-6.2.1.pom new file mode 100644 index 0000000..aa67b8a --- /dev/null +++ b/asm-analysis-6.2.1.pom @@ -0,0 +1,102 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-analysis + 6.2.1 + asm-analysis + Static code analysis API of ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm-tree + 6.2.1 + compile + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/asm-commons-6.2.1.pom b/asm-commons-6.2.1.pom new file mode 100644 index 0000000..4859fc1 --- /dev/null +++ b/asm-commons-6.2.1.pom @@ -0,0 +1,120 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-commons + 6.2.1 + asm-commons + Usefull class adapters based on ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm + 6.2.1 + compile + + + org.ow2.asm + asm-tree + 6.2.1 + compile + + + org.ow2.asm + asm-analysis + 6.2.1 + compile + + + org.ow2.asm + asm-util + 6.2.1 + test + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/asm-parent.pom b/asm-parent.pom new file mode 100644 index 0000000..742e050 --- /dev/null +++ b/asm-parent.pom @@ -0,0 +1,26 @@ + + + + + 4.0.0 + + org.ow2.asm + asm-aggregator + 1 + + pom + + + asm + asm-analysis + asm-commons + asm-test + asm-tree + asm-util + asm-xml + asm-all + + diff --git a/asm-test-6.2.1.pom b/asm-test-6.2.1.pom new file mode 100644 index 0000000..5db8588 --- /dev/null +++ b/asm-test-6.2.1.pom @@ -0,0 +1,96 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-test + 6.2.1 + asm-test + Utilities for testing ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + compile + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + compile + + + org.ow2.asm + asm-test + 6.2.1 + test + + + diff --git a/asm-tree-6.2.1.pom b/asm-tree-6.2.1.pom new file mode 100644 index 0000000..abbd157 --- /dev/null +++ b/asm-tree-6.2.1.pom @@ -0,0 +1,102 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-tree + 6.2.1 + asm-tree + Tree API of ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm + 6.2.1 + compile + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/asm-util-6.2.1.pom b/asm-util-6.2.1.pom new file mode 100644 index 0000000..459981c --- /dev/null +++ b/asm-util-6.2.1.pom @@ -0,0 +1,120 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-util + 6.2.1 + asm-util + Utilities for ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm + 6.2.1 + compile + + + org.ow2.asm + asm-tree + 6.2.1 + compile + + + org.ow2.asm + asm-analysis + 6.2.1 + compile + + + org.codehaus.janino + janino + 3.0.7 + test + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/asm-xml-6.2.1.pom b/asm-xml-6.2.1.pom new file mode 100644 index 0000000..f0b0288 --- /dev/null +++ b/asm-xml-6.2.1.pom @@ -0,0 +1,108 @@ + + + 4.0.0 + + org.ow2 + ow2 + 1.5 + + org.ow2.asm + asm-xml + 6.2.1 + asm-xml + XML API of ASM, a very small and fast Java bytecode manipulation framework + http://asm.ow2.org/ + 2000 + + OW2 + http://www.ow2.org/ + + + + BSD + http://asm.ow2.org/license.html + + + + + ebruneton + Eric Bruneton + ebruneton@free.fr + + Creator + Java Developer + + + + eu + Eugene Kuleshov + eu@javatx.org + + Java Developer + + + + forax + Remi Forax + forax@univ-mlv.fr + + Java Developer + + + + + + ASM Users List + https://mail.ow2.org/wws/subscribe/asm + asm@objectweb.org + https://mail.ow2.org/wws/arc/asm/ + + + ASM Team List + https://mail.ow2.org/wws/subscribe/asm-team + asm-team@objectweb.org + https://mail.ow2.org/wws/arc/asm-team/ + + + + scm:git:https://gitlab.ow2.org/asm/asm/ + scm:git:https://gitlab.ow2.org/asm/asm/ + https://gitlab.ow2.org/asm/asm/ + + + https://gitlab.ow2.org/asm/asm/issues + + + + org.ow2.asm + asm + 6.2.1 + compile + + + org.ow2.asm + asm-util + 6.2.1 + compile + + + org.ow2.asm + asm-test + 6.2.1 + test + + + org.junit.jupiter + junit-jupiter-api + 5.1.0 + test + + + org.junit.jupiter + junit-jupiter-params + 5.1.0 + test + + + diff --git a/objectweb-asm-6.2.1.tar.gz b/objectweb-asm-6.2.1.tar.gz new file mode 100644 index 0000000..648e715 Binary files /dev/null and b/objectweb-asm-6.2.1.tar.gz differ diff --git a/objectweb-asm.spec b/objectweb-asm.spec new file mode 100644 index 0000000..199c6d1 --- /dev/null +++ b/objectweb-asm.spec @@ -0,0 +1,105 @@ +Name: objectweb-asm +Version: 6.2.1 +Release: 3 +Summary: Java bytecode manipulation and analysis framework +License: BSD +URL: http://asm.ow2.org/ +Source0: https://gitlab.ow2.org/asm/asm/repository/ASM_6_2_1/archive.tar.gz#/%{name}-%{version}.tar.gz +Source1: asm-parent.pom +Source2: https://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom +Source3: https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom +Source4: https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom +Source5: https://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom +Source6: https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom +Source7: https://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom +Source8: https://repo1.maven.org/maven2/org/ow2/asm/asm-xml/%{version}/asm-xml-%{version}.pom +Source9: asm-all.pom + +BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.maven.plugins:maven-shade-plugin) +BuildRequires: mvn(org.ow2:ow2:pom:) mvn(org.codehaus.janino:janino) mvn(org.junit.jupiter:junit-jupiter-api) +BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine) mvn(org.junit.jupiter:junit-jupiter-params) +BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform) objectweb-asm >= 6 +Requires: javapackages-tools +BuildArch: noarch + +%description +ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes +or to dynamically generate classes, directly in binary form. ASM provides some common bytecode transformations and +analysis algorithms from which custom complex transformations and code analysis tools can be built. ASM offers similar +functionality as other Java bytecode frameworks, but is focused on performance. Because it was designed and implemented +to be as small and as fast as possible, it is well suited for use in dynamic systems (but can of course be used in a +static way too, e.g. in compilers). + +%package help +Summary: API documentation for objectweb-asm +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +This package provides API help documentation for objectweb-asm. + +%prep +%autosetup -n asm-ASM_6_2_1-f86d1ce7d413a5d4f9a5b51c49eb592555c82e97 -p1 +install -p -m 644 %{SOURCE1} pom.xml + +find -name '*.jar' -delete +find asm{,-analysis,-commons} -name '*.class' -delete +rm -r gradle + +for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util asm-xml; do + install -p -m 644 $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml + %pom_add_dep org.junit.jupiter:junit-jupiter-engine:5.1.0:test $pom + %pom_add_plugin org.apache.maven.plugins:maven-surefire-plugin:2.22.0 $pom + if [ "$pom" != "asm-test" ] ; then + bsn="org.objectweb.${pom//-/.}" + %pom_xpath_inject pom:project "bundle" $pom + %pom_add_plugin org.apache.felix:maven-bundle-plugin:3.5.0 $pom \ +" true + + + $bsn + JavaSE-1.8 + <_removeheaders>Bnd-LastModified,Build-By,Created-By,Include-Resource,Require-Capability,Tool + <_pluginpath>$(pwd)/tools/bnd-module-plugin/bnd-module-plugin.jar, $(find-jar objectweb-asm/asm-all) + <_plugin>org.objectweb.asm.tools.ModuleInfoBndPlugin; + + " + fi +done + +sed -i -e '/testReadAndWriteWithComputeMaxsAndLargeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \ + asm/src/test/java/org/objectweb/asm/ClassWriterTest.java +sed -i -e '/testMergeWithJsrReachableFromTwoDifferentPaths/i@org.junit.jupiter.api.Disabled("missing class file")' \ + asm-analysis/src/test/java/org/objectweb/asm/tree/analysis/BasicInterpreterTest.java +sed -i -e '/testSortLocalVariablesAndInstantiate()/i@org.junit.jupiter.api.Disabled("missing class file")' \ + asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java + +install -d asm-all +sed 's/@VERSION@/%{version}/g' %{SOURCE9} > asm-all/pom.xml + +%pom_remove_dep org.ow2.asm:asm-test asm-test +%mvn_alias :asm-all org.ow2.asm:asm-debug-all +%mvn_package :asm-aggregator __noinstall +%mvn_package :asm-test __noinstall + +%build +pushd tools/bnd-module-plugin +javac -sourcepath ../../asm/src/main/java/ -cp $(build-classpath aqute-bnd) $(find -name *.java) +jar cf bnd-module-plugin.jar -C src/main/java org +popd + +%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 + +%install +%mvn_install +%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util:%{name}/asm-xml %{name}-processor true + +%files -f .mfiles +%license LICENSE.txt +%{_bindir}/%{name}-processor + +%files help -f .mfiles-javadoc + +%changelog +* Tue Feb 25 2020 zhouyihang - 6.2.1-3 +- Package init