|
|
|
@ -1,47 +1,28 @@
|
|
|
|
|
%bcond_without junit5
|
|
|
|
|
%bcond_without osgi
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
Name: objectweb-asm
|
|
|
|
|
Version: 6.2
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 9.1
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Java bytecode manipulation and analysis framework
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://asm.ow2.org/
|
|
|
|
|
URL: https://asm.ow2.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
Source1: parent.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
|
|
|
|
|
Source8: http://repo1.maven.org/maven2/org/ow2/asm/asm-xml/%{version}/asm-xml-%{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
|
|
|
|
|
Source9: asm-all.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
|
|
|
|
|
# The source contains binary jars that cannot be verified for licensing and could be proprietary
|
|
|
|
|
Source10: generate-tarball.sh
|
|
|
|
|
Source9: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
|
|
|
|
BuildRequires: mvn(org.ow2:ow2:pom:)
|
|
|
|
|
%if %{with junit5}
|
|
|
|
|
BuildRequires: mvn(org.codehaus.janino:janino)
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
|
|
|
|
BuildRequires: mvn(org.junit.platform:junit-platform-surefire-provider)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with osgi}
|
|
|
|
|
# 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
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Explicit javapackages-tools requires since asm-processor script uses
|
|
|
|
@ -67,77 +48,24 @@ This package provides %{summary}.
|
|
|
|
|
# A custom parent pom to aggregate the build
|
|
|
|
|
cp -p %{SOURCE1} pom.xml
|
|
|
|
|
|
|
|
|
|
%if %{without junit5}
|
|
|
|
|
%pom_disable_module asm-test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Insert poms into modules
|
|
|
|
|
for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util asm-xml; do
|
|
|
|
|
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
|
|
|
|
|
# Fix junit5 configuration
|
|
|
|
|
%if %{with junit5}
|
|
|
|
|
%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.21.0 $pom \
|
|
|
|
|
" <dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.junit.platform</groupId>
|
|
|
|
|
<artifactId>junit-platform-surefire-provider</artifactId>
|
|
|
|
|
<version>1.2.0-RC1</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>"
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with osgi}
|
|
|
|
|
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
|
|
|
|
|
%endif
|
|
|
|
|
%pom_remove_parent $pom
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Insert asm-all pom
|
|
|
|
|
mkdir -p asm-all
|
|
|
|
|
sed 's/@VERSION@/%{version}/g' %{SOURCE9} > 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
|
|
|
|
|
|
|
|
|
|
%if %{with junit5}
|
|
|
|
|
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
|
|
|
|
%else
|
|
|
|
|
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util:%{name}/asm-xml %{name}-processor true
|
|
|
|
|
%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util %{name}-processor true
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
@ -147,6 +75,87 @@ popd
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
* Mon May 06 2019 Severin Gehwolf <sgehwolf@redhat.com> - 7.1-1
|
|
|
|
|
- Update to latest upstream 7.1 release.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 21 2018 Severin Gehwolf <sgehwolf@redhat.com> - 7.0-1
|
|
|
|
|
- Update to latest upstream 7.0 release.
|
|
|
|
|
- Removes package asm-xml (deprecated since 6.1).
|
|
|
|
|
|
|
|
|
|
* Tue Sep 11 2018 Mat Booth <mat.booth@redhat.com> - 6.2.1-1
|
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
- Fix test suite execution
|
|
|
|
|
|
|
|
|
|
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 6.2-5
|
|
|
|
|
- Repack the tarball without binaries
|
|
|
|
|
|
|
|
|
|