Update to upstream version 3.0

- Add alias for org.sonatype.sisu.inject:cglib
This commit is contained in:
Mikolaj Izdebski 2013-11-11 17:03:41 +01:00
parent 0124c1af68
commit 67bb797e74
6 changed files with 35 additions and 68 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
cglib-src-2.2.jar cglib-src-2.2.jar
/cglib-src-3.0.jar
/cglib-3.0.pom

View File

@ -1,38 +0,0 @@
<?xml version="1.0"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<name>Code Generation Library</name>
<version>2.2</version>
<url>http://cglib.sourceforge.net/</url>
<licenses>
<license>
<name>ASF 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://cglib.cvs.sourceforge.net/cglib</url>
</scm>
<dependencies>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
<version>3.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.2</version>
<optional>true</optional>
</dependency>
</dependencies>
</project>

11
cglib-44.patch Normal file
View File

@ -0,0 +1,11 @@
--- src/proxy/net/sf/cglib/core/DebuggingClassWriter.java~ 2012-05-25 13:21:20.000000000 +0200
+++ src/proxy/net/sf/cglib/core/DebuggingClassWriter.java 2013-11-12 10:36:50.707147437 +0100
@@ -46,7 +46,7 @@
}
public DebuggingClassWriter(int flags) {
- super(flags, new ClassWriter(flags));
+ super(Opcodes.ASM4, new ClassWriter(flags));
}
public void visit(int version,

View File

@ -1,17 +0,0 @@
--- 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 @@
<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"/>
- <rule pattern="org.objectweb.asm.**" result="net.sf.cglib.asm.@1"/>
- <include name="**/*"/>
- <exclude name="samples/**"/>
- </jarjar>
</target>
<target depends="compile,javadoc" description="Create docs and source distribution" name="srcjar">

View File

@ -1,6 +1,6 @@
Name: cglib Name: cglib
Version: 2.2 Version: 3.0
Release: 17%{?dist} Release: 1%{?dist}
Summary: Code Generation Library for Java Summary: Code Generation Library for Java
License: ASL 2.0 and BSD License: ASL 2.0 and BSD
Group: Development/Tools Group: Development/Tools
@ -8,16 +8,17 @@ Url: http://cglib.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Source2: bnd.properties Source2: bnd.properties
# Remove the repackaging step that includes other jars into the final thing # Incorrect usage of ASM library
Patch0: %{name}-build_xml.patch # Forwarded upstream: https://sourceforge.net/p/cglib/bugs/44/
Patch0: cglib-44.patch
Requires: java >= 0:1.6.0 Requires: java >= 0:1.6.0
Requires: objectweb-asm Requires: objectweb-asm4
BuildRequires: ant BuildRequires: ant
BuildRequires: jpackage-utils >= 0:1.5 BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: java-devel >= 0:1.6.0 BuildRequires: java-devel >= 0:1.6.0
BuildRequires: objectweb-asm BuildRequires: objectweb-asm4
BuildRequires: unzip BuildRequires: unzip
BuildRequires: aqute-bnd BuildRequires: aqute-bnd
BuildArch: noarch BuildArch: noarch
@ -35,11 +36,16 @@ Documentation for the cglib code generation library.
%prep %prep
%setup -q -c %{name}-%{version} %setup -q -c %{name}-%{version}
cp -p %{SOURCE1} pom.xml
rm lib/*.jar rm lib/*.jar
%patch0 -p1 # Remove the repackaging step that includes other jars into the final thing
sed -i "/<taskdef name=.jarjar/,/<.jarjar>/d" build.xml
%patch0
%pom_xpath_remove "pom:dependency[pom:artifactId = 'asm-util']/pom:optional"
%build %build
export CLASSPATH=`build-classpath objectweb-asm` export OPT_JAR_LIST=objectweb-asm4
ant jar javadoc ant jar javadoc
# Convert to OSGi bundle # Convert to OSGi bundle
pushd dist pushd dist
@ -52,12 +58,10 @@ install -d -m 755 %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_mavenpomdir}
install -d -m 755 %{buildroot}%{_javadocdir}/%{name} install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
mkdir -p %{buildroot}%{_mavenpomdir} mkdir -p %{buildroot}%{_mavenpomdir}
cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
# yes, this is really *.bar - aqute bnd created it # yes, this is really *.bar - aqute bnd created it
install -p -m 644 dist/%{name}-%{version}.bar %{buildroot}%{_javadir}/%{name}.jar install -p -m 644 dist/%{name}-%{version}.bar %{buildroot}%{_javadir}/%{name}.jar
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a net.sf.cglib:cglib %add_maven_depmap -a net.sf.cglib:cglib,cglib:cglib-full,org.sonatype.sisu.inject:cglib
%add_maven_depmap -a cglib:cglib-full
cp -rp docs/* %{buildroot}%{_javadocdir}/%{name} cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
@ -72,6 +76,10 @@ cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog
* Mon Nov 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0-1
- Update to upstream version 3.0
- Add alias for org.sonatype.sisu.inject:cglib
* Mon Aug 05 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.2-17 * Mon Aug 05 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.2-17
- Remove old call to %add_to_maven_depmap macro. - Remove old call to %add_to_maven_depmap macro.
- Fixes RHBZ#992051. - Fixes RHBZ#992051.

View File

@ -1 +1,2 @@
b1e6ebfb76ec7071b6a3f5f9d7df2e57 cglib-src-2.2.jar 314e056fc64152ca692974e0b57ff4d4 cglib-src-3.0.jar
b3c6d777899123ab7b6e2bf9780a1485 cglib-3.0.pom