2021-05-17 16:01:42 +00:00
|
|
|
%bcond_with bootstrap
|
2018-12-04 11:02:03 +00:00
|
|
|
|
2020-09-30 11:49:22 +00:00
|
|
|
Name: byte-buddy
|
2022-05-09 19:53:16 +00:00
|
|
|
Version: 1.12.10
|
2022-07-20 22:25:14 +00:00
|
|
|
Release: 2%{?dist}
|
2020-09-30 11:49:22 +00:00
|
|
|
Summary: Runtime code generation for the Java virtual machine
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://bytebuddy.net/
|
2019-09-25 09:27:24 +00:00
|
|
|
# ./generate-tarball.sh
|
2020-09-30 11:49:22 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2018-11-30 10:01:39 +00:00
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
# Patch the build to avoid bundling inside shaded jars
|
2020-09-30 11:49:22 +00:00
|
|
|
Patch1: 0001-Avoid-bundling-asm.patch
|
2021-11-09 11:43:55 +00:00
|
|
|
Patch2: 0002-Remove-dependencies.patch
|
2020-09-30 11:49:22 +00:00
|
|
|
Patch3: 0003-Remove-Java-14-tests.patch
|
2021-11-09 11:43:55 +00:00
|
|
|
Patch4: 0004-Remove-JDK-15-sealed-classes.patch
|
2018-12-04 11:02:03 +00:00
|
|
|
|
2021-04-16 13:33:12 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2022-06-14 06:03:17 +00:00
|
|
|
BuildRequires: maven-local
|
2018-12-05 17:55:23 +00:00
|
|
|
BuildRequires: mvn(junit:junit)
|
2018-12-04 11:02:03 +00:00
|
|
|
BuildRequires: mvn(net.bytebuddy:byte-buddy)
|
2018-12-05 17:55:23 +00:00
|
|
|
BuildRequires: mvn(net.bytebuddy:byte-buddy-dep)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-compat)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
|
|
|
|
BuildRequires: mvn(org.mockito:mockito-core)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm-analysis)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm-util)
|
2018-12-04 11:02:03 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.eclipse.aether:aether-api)
|
|
|
|
BuildRequires: mvn(org.eclipse.aether:aether-util)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm-commons)
|
2021-04-16 13:33:12 +00:00
|
|
|
%endif
|
2018-11-30 10:01:39 +00:00
|
|
|
|
2020-09-30 11:49:22 +00:00
|
|
|
BuildArch: noarch
|
2022-05-12 20:33:24 +00:00
|
|
|
ExclusiveArch: %{java_arches} noarch
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Byte Buddy is a code generation library for creating Java classes during the
|
|
|
|
runtime of a Java application and without the help of a compiler. Other than
|
|
|
|
the code generation utilities that ship with the Java Class Library, Byte Buddy
|
|
|
|
allows the creation of arbitrary classes and is not limited to implementing
|
|
|
|
interfaces for the creation of runtime proxies.
|
|
|
|
|
|
|
|
%package agent
|
2018-12-04 11:02:03 +00:00
|
|
|
Summary: Byte Buddy Java agent
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%description agent
|
2018-12-04 11:02:03 +00:00
|
|
|
The Byte Buddy Java agent allows to access the JVM's HotSwap feature.
|
2018-11-30 10:01:39 +00:00
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
%package maven-plugin
|
|
|
|
Summary: Byte Buddy Maven plugin
|
2018-11-30 10:01:39 +00:00
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
%description maven-plugin
|
|
|
|
A plugin for post-processing class files via Byte Buddy in a Maven build.
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%package parent
|
2018-12-04 11:02:03 +00:00
|
|
|
Summary: Byte Buddy parent POM
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%description parent
|
|
|
|
The parent artifact contains configuration information that
|
|
|
|
concern all modules.
|
|
|
|
|
|
|
|
%package javadoc
|
2018-12-04 11:02:03 +00:00
|
|
|
Summary: Javadoc for %{name}
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%description javadoc
|
2018-12-04 11:02:03 +00:00
|
|
|
This package contains API documentation for %{name}.
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2018-12-04 11:02:03 +00:00
|
|
|
|
2019-06-06 08:51:24 +00:00
|
|
|
%patch1 -p1
|
2019-09-25 09:27:24 +00:00
|
|
|
%patch2 -p1
|
2020-09-30 11:49:22 +00:00
|
|
|
%patch3 -p1
|
2021-11-09 11:43:55 +00:00
|
|
|
%patch4 -p1
|
2018-12-04 11:02:03 +00:00
|
|
|
|
2020-09-30 11:49:22 +00:00
|
|
|
rm byte-buddy-agent/src/test/java/net/bytebuddy/agent/VirtualMachineAttachmentTest.java
|
2021-11-09 11:43:55 +00:00
|
|
|
rm byte-buddy-agent/src/test/java/net/bytebuddy/agent/VirtualMachineForOpenJ9Test.java
|
2020-08-15 03:58:19 +00:00
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
# Cause pre-compiled stuff to be re-compiled
|
|
|
|
mv byte-buddy-dep/src/precompiled/java/net/bytebuddy/build/*.java \
|
|
|
|
byte-buddy-dep/src/main/java/net/bytebuddy/build
|
2018-12-05 17:55:23 +00:00
|
|
|
mkdir -p byte-buddy-dep/src/test/java/net/bytebuddy/test/precompiled/
|
|
|
|
mv byte-buddy-dep/src/precompiled/java/net/bytebuddy/test/precompiled/*.java \
|
|
|
|
byte-buddy-dep/src/test/java/net/bytebuddy/test/precompiled/
|
2022-05-09 19:53:16 +00:00
|
|
|
rm byte-buddy-dep/src/test/java/net/bytebuddy/test/precompiled/GenericRecordSample.java
|
2018-12-04 11:02:03 +00:00
|
|
|
|
|
|
|
# Don't ship android or benchmark modules
|
|
|
|
%pom_disable_module byte-buddy-android
|
2020-08-15 03:58:19 +00:00
|
|
|
%pom_disable_module byte-buddy-android-test
|
2018-12-04 11:02:03 +00:00
|
|
|
%pom_disable_module byte-buddy-benchmark
|
|
|
|
|
|
|
|
# Don't ship gradle plugin
|
|
|
|
%pom_disable_module byte-buddy-gradle-plugin
|
|
|
|
|
|
|
|
# Remove check plugins unneeded by RPM builds
|
|
|
|
%pom_remove_plugin :jacoco-maven-plugin
|
|
|
|
%pom_remove_plugin :license-maven-plugin
|
|
|
|
%pom_remove_plugin :pitest-maven
|
|
|
|
%pom_remove_plugin :coveralls-maven-plugin
|
|
|
|
%pom_remove_plugin :spotbugs-maven-plugin
|
|
|
|
%pom_remove_plugin :jitwatch-jarscan-maven-plugin
|
|
|
|
%pom_remove_plugin :clirr-maven-plugin
|
|
|
|
%pom_remove_plugin :maven-release-plugin
|
2021-11-09 11:43:55 +00:00
|
|
|
%pom_remove_plugin :nexus-staging-maven-plugin
|
2018-12-04 11:02:03 +00:00
|
|
|
|
2020-05-18 08:35:24 +00:00
|
|
|
# Avoid circural dependency
|
|
|
|
%pom_remove_plugin :byte-buddy-maven-plugin byte-buddy-dep
|
|
|
|
|
2018-12-06 16:30:17 +00:00
|
|
|
# Not interested in shading sources (causes NPE on old versions of shade plugin)
|
|
|
|
%pom_xpath_set "pom:createSourcesJar" "false" byte-buddy
|
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
# Drop build dep on findbugs annotations, used only by the above check plugins
|
|
|
|
%pom_remove_dep :findbugs-annotations
|
|
|
|
sed -i -e '/SuppressFBWarnings/d' $(grep -lr SuppressFBWarnings)
|
|
|
|
|
|
|
|
# Plugin for generating Java 9 module-info file is not in Fedora
|
|
|
|
%pom_remove_plugin -r :modulemaker-maven-plugin
|
|
|
|
|
2019-06-06 08:51:24 +00:00
|
|
|
%pom_remove_dep org.ow2.asm:asm-deprecated
|
|
|
|
|
2019-07-10 14:24:27 +00:00
|
|
|
%pom_remove_plugin :maven-shade-plugin byte-buddy
|
|
|
|
%pom_remove_plugin :maven-shade-plugin byte-buddy-benchmark
|
|
|
|
|
2021-11-09 11:43:55 +00:00
|
|
|
%pom_remove_dep net.java.dev.jna:jna byte-buddy
|
|
|
|
%pom_remove_dep net.java.dev.jna:jna byte-buddy-dep
|
|
|
|
%pom_remove_dep net.java.dev.jna:jna byte-buddy-agent
|
|
|
|
|
|
|
|
%pom_remove_dep net.java.dev.jna:jna-platform byte-buddy
|
|
|
|
%pom_remove_dep net.java.dev.jna:jna-platform byte-buddy-dep
|
|
|
|
%pom_remove_dep net.java.dev.jna:jna-platform byte-buddy-agent
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%build
|
2018-12-05 17:55:23 +00:00
|
|
|
# Ignore test failures, there seems to be something different about the
|
|
|
|
# bytecode of our recompiled test resources, expect 6 test failures in
|
|
|
|
# the byte-buddy-dep module
|
|
|
|
%mvn_build -s -- -P'java8,!checks' -Dsourcecode.test.version=1.8 -Dmaven.test.failure.ignore=true
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
%files -f .mfiles-%{name} -f .mfiles-%{name}-dep
|
2018-11-30 10:01:39 +00:00
|
|
|
%doc README.md release-notes.md
|
2018-12-04 11:02:03 +00:00
|
|
|
%license LICENSE NOTICE
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%files agent -f .mfiles-%{name}-agent
|
2018-12-04 11:02:03 +00:00
|
|
|
%license LICENSE NOTICE
|
2018-11-30 10:01:39 +00:00
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
%files maven-plugin -f .mfiles-%{name}-maven-plugin
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%files parent -f .mfiles-%{name}-parent
|
2018-12-04 11:02:03 +00:00
|
|
|
%license LICENSE NOTICE
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
2018-12-04 11:02:03 +00:00
|
|
|
%license LICENSE NOTICE
|
2018-11-30 10:01:39 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-07-20 22:25:14 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-05-09 19:53:16 +00:00
|
|
|
* Mon May 09 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12.10-1
|
|
|
|
- Update to upstream version 1.12.10
|
|
|
|
|
2022-02-05 18:49:01 +00:00
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.12.0-3
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
2022-01-19 22:44:36 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-09 11:43:55 +00:00
|
|
|
* Tue Nov 09 2021 Marian Koncek <mkoncek@redhat.com> - 1.12.0-1
|
|
|
|
- Update to upstream version 1.12.0
|
|
|
|
|
2021-07-21 19:00:37 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.20-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-17 13:49:37 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.20-2
|
|
|
|
- Bootstrap build
|
2021-05-17 16:01:42 +00:00
|
|
|
- Non-bootstrap build
|
2021-05-17 13:49:37 +00:00
|
|
|
|
2021-02-04 16:31:52 +00:00
|
|
|
* Thu Feb 04 2021 Marian Koncek <mkoncek@redhat.com> - 1.10.20-1
|
|
|
|
- Update to upstream version 1.10.20
|
|
|
|
|
2021-01-26 01:31:07 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-30 11:49:22 +00:00
|
|
|
* Tue Sep 29 2020 Marian Koncek <mkoncek@redhat.com> - 1.10.16-1
|
|
|
|
- Update to upstram version 1.10.16
|
|
|
|
|
2020-08-15 03:58:19 +00:00
|
|
|
* Fri Aug 14 2020 Jerry James <loganjerry@gmail.com> - 1.10.14-1
|
|
|
|
- Version 1.10.14
|
|
|
|
- Remove no longer needed no-unixsocket.patch
|
|
|
|
- Add workaround for compiling tests with JDK 11
|
|
|
|
|
2020-07-27 13:31:31 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-10 14:57:58 +00:00
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.9.5-8
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
2020-01-28 13:27:56 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-21 11:07:35 +00:00
|
|
|
* Tue Jan 21 2020 Marian Koncek <mkoncek@redhat.com> - 1.10.7-1
|
|
|
|
- Update to upstream version 1.10.7
|
|
|
|
|
2019-11-21 16:19:59 +00:00
|
|
|
* Thu Nov 21 2019 Marian Koncek <mkoncek@redhat.com> - 1.10.3-1
|
|
|
|
- Update to upstream version 1.10.3
|
|
|
|
|
2019-11-05 16:29:27 +00:00
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.1-2
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
2019-09-24 11:06:49 +00:00
|
|
|
* Thu Sep 12 2019 Marian Koncek <mkoncek@redhat.com> - 1.10.1-1
|
|
|
|
- Update to upstream version 1.10.1
|
|
|
|
|
2019-07-24 19:44:01 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-10 14:24:27 +00:00
|
|
|
* Wed Jul 10 2019 Marian Koncek <mkoncek@redhat.com> - 1.9.13-2
|
|
|
|
- Remove the dependency on maven-shade-plugin
|
|
|
|
|
2019-06-06 08:51:24 +00:00
|
|
|
* Thu Jun 06 2019 Marian Koncek <mkoncek@redhat.com> - 1.9.13-1
|
|
|
|
- Update to upstream version 1.9.13
|
|
|
|
|
2019-05-24 15:00:27 +00:00
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9.5-5
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
2019-01-31 15:04:02 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-06 16:30:17 +00:00
|
|
|
* Thu Dec 06 2018 Mat Booth <mat.booth@redhat.com> - 1.9.5-4
|
|
|
|
- Prevent NPE in maven-shade-plugin
|
|
|
|
|
2018-12-05 17:55:23 +00:00
|
|
|
* Wed Dec 05 2018 Mat Booth <mat.booth@redhat.com> - 1.9.5-3
|
|
|
|
- Enable test suites
|
|
|
|
|
2018-12-04 11:25:08 +00:00
|
|
|
* Tue Dec 04 2018 Mat Booth <mat.booth@redhat.com> - 1.9.5-2
|
|
|
|
- Full, non-bootstrap build
|
|
|
|
|
2018-12-04 11:02:03 +00:00
|
|
|
* Fri Nov 30 2018 Mat Booth <mat.booth@redhat.com> - 1.9.5-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Add a bootstrap mode to break circular self-dependency
|
|
|
|
- Patch out use of optional external unixsocket library that is not present
|
|
|
|
in Fedora
|
|
|
|
- Patch to avoid bundling ASM inside the shaded jar
|
|
|
|
|
2018-11-30 10:01:39 +00:00
|
|
|
* Wed May 25 2016 gil cattaneo <puntogil@libero.it> 1.3.19-1
|
|
|
|
- update to 1.3.19
|
|
|
|
|
|
|
|
* Tue Dec 22 2015 gil cattaneo <puntogil@libero.it> 0.7.7-1
|
|
|
|
- initial rpm
|