Merge modular branch

This commit is contained in:
Mikolaj Izdebski 2021-05-13 20:52:09 +02:00
commit e430a200a8
4 changed files with 57 additions and 13 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@ cglib-src-2.2.jar
/RELEASE_3_2_4.tar.gz /RELEASE_3_2_4.tar.gz
/cglib-RELEASE_3_2_4 /cglib-RELEASE_3_2_4
/RELEASE_3_2_9.tar.gz /RELEASE_3_2_9.tar.gz
/RELEASE_3_2_12.tar.gz
/RELEASE_3_3_0.tar.gz

View File

@ -0,0 +1,24 @@
From 912eaec202f33f8a0a9832bb3551674b6788e7f0 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Tue, 5 Nov 2019 08:47:50 +0100
Subject: [PATCH] Remove unused import
---
cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java b/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java
index e7de82b..1f1f744 100644
--- a/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java
+++ b/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java
@@ -17,7 +17,6 @@ package net.sf.cglib.reflect;
import java.lang.reflect.*;
import java.security.ProtectionDomain;
-import net.sf.cglib.*;
import net.sf.cglib.core.*;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.Type;
--
2.21.0

View File

@ -1,22 +1,29 @@
%global tarball_name RELEASE_3_2_9 %bcond_with bootstrap
%global tarball_name RELEASE_%(echo '%{version}' | tr . _)
Name: cglib Name: cglib
Version: 3.2.9 Version: 3.3.0
Release: 9%{?dist} Release: 2%{?dist}
Summary: Code Generation Library for Java Summary: Code Generation Library for Java
# ASM MethodVisitor is based on ASM code and therefore # ASM MethodVisitor is based on ASM code and therefore
# BSD-licensed. Everything else is ASL 2.0. # BSD-licensed. Everything else is ASL 2.0.
License: ASL 2.0 and BSD License: ASL 2.0 and BSD
URL: https://github.com/cglib/cglib URL: https://github.com/cglib/cglib
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
BuildArch: noarch BuildArch: noarch
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
Patch0: 0001-Remove-unused-import.patch
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: maven-plugin-bundle %if %{with bootstrap}
BuildRequires: javapackages-local BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.ow2.asm:asm) BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(junit:junit) %endif
%description %description
cglib is a powerful, high performance and quality code generation library cglib is a powerful, high performance and quality code generation library
@ -31,6 +38,7 @@ Documentation for the cglib code generation library.
%prep %prep
%setup -q -n %{name}-%{tarball_name} %setup -q -n %{name}-%{tarball_name}
%patch0 -p1
# remove unnecessary dependency on parent POM # remove unnecessary dependency on parent POM
%pom_remove_parent %pom_remove_parent
@ -56,14 +64,12 @@ Documentation for the cglib code generation library.
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample %pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample
%pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-javadoc-plugin
%pom_xpath_inject "pom:dependency[pom:artifactId='ant']" "<optional>true</optional>" cglib
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib" %mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
%build %build
# 5 upstream failures on Java 9 or above # 5 tests fail with OpenJDK 11
# https://github.com/cglib/cglib/issues/119 # Forwarded upstream: https://github.com/cglib/cglib/issues/119
%mvn_build -- -Dmaven.test.failure.ignore=true -Dsource=1.8 %mvn_build -f
%install %install
%mvn_install %mvn_install
@ -94,9 +100,21 @@ Documentation for the cglib code generation library.
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-4 * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-2
- Mass rebuild for javapackages-tools 201902
* Thu Aug 15 2019 Marian Koncek <mkoncek@redhat.com> - 3.3.0-1
- Update to upstream version 3.3.0
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-3 * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jun 27 2019 Marian Koncek <mkoncek@redhat.com> - 3.2.12-1
- Update to upstream version 3.2.12
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.9-3
- Mass rebuild for javapackages-tools 201901
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-2 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (RELEASE_3_2_9.tar.gz) = 92eaf38cc5cc70932292a0e837eb4e547c4e9f10d6fd4634ee44f9fbdf03522071d6230fda35efc9eb4b4dd9f8925f3ba7f24e9379c83ef45b798e342d66db3c SHA512 (RELEASE_3_3_0.tar.gz) = 635dcdb10a8fe83887a1dc8cf12844fe61b73a12fb530bf84d6ac53f75b0103820d76518cbc0d93d63dba86d13929f0df4dbae3b4943a402cf9f2af76f44161a