forked from pool/cglib
This commit is contained in:
parent
aae96d7b62
commit
edd89a594b
3
RELEASE_3_1.tar.gz
Normal file
3
RELEASE_3_1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a48c857232b902950cbd7c6b07bd70bfcc3773b9d4dd188f35f885c4477b8d3b
|
||||
size 1417623
|
@ -4,8 +4,9 @@
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib</artifactId>
|
||||
<name>Code Generation Library</name>
|
||||
<version>2.2</version>
|
||||
<version>3.1</version>
|
||||
<url>http://cglib.sourceforge.net/</url>
|
||||
<description>Code generation library</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>ASF 2.0</name>
|
||||
@ -14,18 +15,19 @@
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:cvs:pserver:anonymous@cglib.cvs.sourceforge.net:/cvsroot/cglib:cglib</connection>
|
||||
<url>http://cglib.cvs.sourceforge.net/cglib</url>
|
||||
</scm>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>3.1</version>
|
||||
<version>4.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-util</artifactId>
|
||||
<version>3.1</version>
|
||||
<version>4.2</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -35,4 +37,18 @@
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>baliuka</id>
|
||||
<name>Juozas Baliuka</name>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>herbyderby</id>
|
||||
<name>Chris Nokleberg</name>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>sameb</id>
|
||||
<name>Sam Berlin</name>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
@ -1,13 +1,14 @@
|
||||
--- cglib/build.xml.orig 2008-08-14 13:37:22.000000000 +0200
|
||||
+++ cglib/build.xml 2008-08-14 13:35:51.000000000 +0200
|
||||
@@ -124,14 +124,6 @@
|
||||
--- cglib/build.xml 2013-12-07 17:08:18.000000000 +0100
|
||||
+++ cglib/build.xml 2018-10-29 15:10:26.294707872 +0100
|
||||
@@ -123,15 +123,6 @@
|
||||
<include name="**/*"/>
|
||||
<exclude name="samples/**" />
|
||||
</jar>
|
||||
|
||||
-
|
||||
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="compile.classpath"/>
|
||||
- <jarjar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-nodep-${component.version}.jar" >
|
||||
- <zipfileset dir="lib" includes="asm*.txt"/>
|
||||
- <zipfileset src="lib/asm-3.1.jar" excludes="META-INF"/>
|
||||
- <zipfileset src="lib/asm-4.2.jar" excludes="META-INF"/>
|
||||
- <rule pattern="org.objectweb.asm.**" result="net.sf.cglib.asm.@1"/>
|
||||
- <include name="**/*"/>
|
||||
- <exclude name="samples/**"/>
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:762e0214f0d31f224e712a7a5b4768c16ad24741ba98fc2e94715ae390d07fcb
|
||||
size 1520971
|
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 14:24:03 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Upgrade to version 3.1, the last one buildable with ant
|
||||
- Depend on asm5
|
||||
- Modified patch:
|
||||
* cglib-build_xml.patch
|
||||
+ rediff to changed context
|
||||
- Added patch:
|
||||
* fix-javadoc.patch
|
||||
+ Do not import with wildcards a package that has no classes
|
||||
+ Fixes javadoc generation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 13:45:46 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
24
cglib.spec
24
cglib.spec
@ -16,25 +16,26 @@
|
||||
#
|
||||
|
||||
|
||||
%global tarball_name RELEASE_3_1
|
||||
Name: cglib
|
||||
Version: 2.2
|
||||
Version: 3.1
|
||||
Release: 0
|
||||
Summary: Code Generation Library
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://cglib.sourceforge.net/
|
||||
Source0: %{name}-src-%{version}.jar
|
||||
Source1: /%{name}-%{version}.pom
|
||||
URL: http://cglib.sourceforge.net/
|
||||
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
|
||||
Source1: http://central.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
||||
# Remove the repackaging step that includes other jars into the final thing
|
||||
Patch0: %{name}-build_xml.patch
|
||||
Patch1: fix-javadoc.patch
|
||||
BuildRequires: ant >= 1.6
|
||||
# Needed for maven conversions
|
||||
BuildRequires: asm5
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
# Needed for maven conversions
|
||||
BuildRequires: asm3
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: unzip
|
||||
Provides: %{name}-nohook = %{version}-%{release}
|
||||
Obsoletes: %{name}-nohook < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
@ -54,11 +55,11 @@ Library, It is used to extend JAVA classes and implements interfaces at
|
||||
runtime.
|
||||
|
||||
%prep
|
||||
%setup -q -T -c -n %{name}
|
||||
unzip -q %{SOURCE0}
|
||||
%setup -q -n %{name}-%{tarball_name}
|
||||
rm lib/*.jar
|
||||
build-jar-repository -s -p lib asm3 ant
|
||||
build-jar-repository -s -p lib asm5 ant
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
ant \
|
||||
@ -81,7 +82,8 @@ install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar -a "net.sf.cglib:cglib,cglib:cglib-full,cglib:cglib-nodep,org.sonatype.sisu.inject:cglib"
|
||||
|
||||
%files
|
||||
%doc LICENSE NOTICE
|
||||
%license LICENSE
|
||||
%doc NOTICE
|
||||
%{_javadir}/*.jar
|
||||
%{_mavenpomdir}/*
|
||||
%config(noreplace) %{_datadir}/maven-metadata/%{name}.xml
|
||||
|
11
fix-javadoc.patch
Normal file
11
fix-javadoc.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -urEbwB cglib/src/proxy/net/sf/cglib/reflect/MethodDelegate.java cglib/src/proxy/net/sf/cglib/reflect/MethodDelegate.java
|
||||
--- cglib/src/proxy/net/sf/cglib/reflect/MethodDelegate.java 2013-12-07 17:08:18.000000000 +0100
|
||||
+++ cglib/src/proxy/net/sf/cglib/reflect/MethodDelegate.java 2018-10-29 15:15:55.528397043 +0100
|
||||
@@ -16,7 +16,6 @@
|
||||
package net.sf.cglib.reflect;
|
||||
|
||||
import java.lang.reflect.*;
|
||||
-import net.sf.cglib.*;
|
||||
import net.sf.cglib.core.*;
|
||||
import org.objectweb.asm.ClassVisitor;
|
||||
import org.objectweb.asm.Type;
|
Loading…
x
Reference in New Issue
Block a user