|
|
|
@ -1,29 +1,35 @@
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
Name: objectweb-asm
|
|
|
|
|
Version: 9.1
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 7.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Java bytecode manipulation and analysis framework
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://asm.ow2.org/
|
|
|
|
|
URL: http://asm.ow2.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
Source1: 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
|
|
|
|
|
Source2: http://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom
|
|
|
|
|
Source3: http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom
|
|
|
|
|
Source4: http://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom
|
|
|
|
|
Source5: http://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom
|
|
|
|
|
Source6: http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom
|
|
|
|
|
Source7: http://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom
|
|
|
|
|
# We still want to create an "all" uberjar, so this is a custom pom to generate it
|
|
|
|
|
# TODO: Fix other packages to no longer depend on "asm-all" so we can drop this
|
|
|
|
|
Source8: asm-all.pom
|
|
|
|
|
# The source contains binary jars that cannot be verified for licensing and could be proprietary
|
|
|
|
|
Source9: generate-tarball.sh
|
|
|
|
|
Source9: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
|
|
|
|
BuildRequires: mvn(org.ow2:ow2:pom:)
|
|
|
|
|
|
|
|
|
|
# asm-all needs to be in pluginpath for BND. If this self-dependency
|
|
|
|
|
# becomes a problem then ASM core will have to be build from source
|
|
|
|
|
# with javac before main maven build, just like bnd-module-plugin
|
|
|
|
|
BuildRequires: objectweb-asm >= 6
|
|
|
|
|
|
|
|
|
|
# Explicit javapackages-tools requires since asm-processor script uses
|
|
|
|
|
# /usr/share/java-utils/java-functions
|
|
|
|
@ -48,18 +54,72 @@ This package provides %{summary}.
|
|
|
|
|
# A custom parent pom to aggregate the build
|
|
|
|
|
cp -p %{SOURCE1} pom.xml
|
|
|
|
|
|
|
|
|
|
%pom_disable_module asm-test
|
|
|
|
|
|
|
|
|
|
# Insert poms into modules
|
|
|
|
|
for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util; do
|
|
|
|
|
cp -p $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml
|
|
|
|
|
%pom_remove_parent $pom
|
|
|
|
|
# Fix junit5 configuration
|
|
|
|
|
if [ "$pom" != "asm-test" ] ; then
|
|
|
|
|
# Make into OSGi bundles
|
|
|
|
|
bsn="org.objectweb.${pom//-/.}"
|
|
|
|
|
%pom_xpath_inject pom:project "<packaging>bundle</packaging>" $pom
|
|
|
|
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin:3.5.0 $pom \
|
|
|
|
|
" <extensions>true</extensions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<instructions>
|
|
|
|
|
<Bundle-SymbolicName>$bsn</Bundle-SymbolicName>
|
|
|
|
|
<Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
|
|
|
|
|
<_removeheaders>Bnd-LastModified,Build-By,Created-By,Include-Resource,Require-Capability,Tool</_removeheaders>
|
|
|
|
|
<_pluginpath>$(pwd)/tools/bnd-module-plugin/bnd-module-plugin.jar, $(find-jar objectweb-asm/asm-all)</_pluginpath>
|
|
|
|
|
<_plugin>org.objectweb.asm.tools.ModuleInfoBndPlugin;</_plugin>
|
|
|
|
|
</instructions>
|
|
|
|
|
</configuration>"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Disable tests that use unlicensed class files
|
|
|
|
|
sed -i -e '/testToByteArray_computeMaxs_largeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm/src/test/java/org/objectweb/asm/ClassWriterTest.java
|
|
|
|
|
sed -i -e '/testAnalyze_mergeWithJsrReachableFromTwoDifferentPaths/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-analysis/src/test/java/org/objectweb/asm/tree/analysis/AnalyzerWithBasicInterpreterTest.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
|
|
|
|
|
sed -i -e '/testAllMethods_issue317586/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java
|
|
|
|
|
sed -i -e '/testAllMethods_anonymousInnerClass/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/SerialVersionUidAdderTest.java
|
|
|
|
|
sed -i -e '/testAllMethods_emptyInterface/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/SerialVersionUidAdderTest.java
|
|
|
|
|
sed -i -e '/testAllMethods_enum/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/SerialVersionUidAdderTest.java
|
|
|
|
|
sed -i -e '/testAllMethods_class/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/SerialVersionUidAdderTest.java
|
|
|
|
|
sed -i -e '/testAllMethods_interface/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
|
|
|
|
asm-commons/src/test/java/org/objectweb/asm/commons/SerialVersionUidAdderTest.java
|
|
|
|
|
|
|
|
|
|
# Insert asm-all pom
|
|
|
|
|
mkdir -p asm-all
|
|
|
|
|
sed 's/@VERSION@/%{version}/g' %{SOURCE8} > asm-all/pom.xml
|
|
|
|
|
|
|
|
|
|
# Remove invalid self-dependency
|
|
|
|
|
%pom_remove_dep org.ow2.asm:asm-test asm-test
|
|
|
|
|
|
|
|
|
|
# Compat aliases
|
|
|
|
|
%mvn_alias :asm-all org.ow2.asm:asm-debug-all
|
|
|
|
|
|
|
|
|
|
# No need to ship the custom parent pom
|
|
|
|
|
%mvn_package :asm-aggregator __noinstall
|
|
|
|
|
# Don't ship the test framework to avoid runtime dep on junit
|
|
|
|
|
%mvn_package :asm-test __noinstall
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Must compile bnd plugin first, which is used to generate Java 9 module-info.class files
|
|
|
|
|
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 -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -75,70 +135,12 @@ done
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 19 2024 Marián Konček <mkoncek@redhat.com> - 9.1-6
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 9.1-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.1-4
|
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
|
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.1-3
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.1-2
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
* Fri May 14 2021 Marian Koncek <mkoncek@redhat.com> - 9.1-1
|
|
|
|
|
- Update to upstream version 9.1
|
|
|
|
|
|
|
|
|
|
* Fri Feb 19 2021 Mat Booth <mat.booth@redhat.com> - 9.1-1
|
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Sep 25 2020 Marian Koncek <mkoncek@redhat.com> - 9.0-1
|
|
|
|
|
- Update to upstream version 9.0
|
|
|
|
|
|
|
|
|
|
* Fri Aug 14 2020 Jerry James <loganjerry@gmail.com> - 8.0.1-1
|
|
|
|
|
- Version 8.0.1
|
|
|
|
|
- Add 0002-Catch-CompileException-in-test.patch to fix compilation of a test
|
|
|
|
|
- Make generate-tarball.sh actually compress the tarball
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 7.3.1-3
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2020 Marian Koncek <mkoncek@redhat.com> - 8.0.1-1
|
|
|
|
|
- Update to upstream version 8.0.1
|
|
|
|
|
|
|
|
|
|
* Wed May 06 2020 Mat Booth <mat.booth@redhat.com> - 7.3.1-2
|
|
|
|
|
- Revert an upstream change to prevent breaking API change
|
|
|
|
|
|
|
|
|
|
* Thu Feb 27 2020 Jayashree Huttanagoudat <jhuttana@redhat.com> - 7.3.1-1
|
|
|
|
|
- Upgraded to upstream version 7.3.1.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 21 2020 Marian Koncek <mkoncek@redhat.com> - 7.3.1-1
|
|
|
|
|
- Update to upstream version 7.3.1
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.2-2
|
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2019 Marian Koncek <mkoncek@redhat.com> - 7.2-1
|
|
|
|
|
- Update to upstream version 7.2
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.1-2
|
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|