Blame SPECS/byte-buddy.spec

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