[xbean] Update to upstream version 3.16
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Thu Dec 5 12:55:15 UTC 2013
commit 6eb71d50f2d14eb379898997ffe794a60d60418c
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Thu Dec 5 12:28:39 2013 +0100
Update to upstream version 3.16
.gitignore | 1 +
sources | 2 +-
xbean-asm4-unshade.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++
xbean.spec | 23 ++++++++++++++++-------
4 files changed, 64 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e2ddf93..3d41d2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ xbean-3.7.tar.xz
/xbean-3.8.tar.xz
/xbean-3.11.1.tar.xz
/xbean-3.13-source-release.zip
+/xbean-3.16-source-release.zip
diff --git a/sources b/sources
index 58d9544..83314a7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1d2641559f39a32747b5cd23acfbe1b2 xbean-3.13-source-release.zip
+6b63160673fa34c87068f2f6f78551b8 xbean-3.16-source-release.zip
diff --git a/xbean-asm4-unshade.patch b/xbean-asm4-unshade.patch
new file mode 100644
index 0000000..82037ed
--- /dev/null
+++ b/xbean-asm4-unshade.patch
@@ -0,0 +1,46 @@
+--- xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java~ 2013-11-13 22:39:12.000000000 +0100
++++ xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java 2013-12-05 13:46:32.916772376 +0100
+@@ -17,12 +17,12 @@
+ */
+ package org.apache.xbean.recipe;
+
+-import org.apache.xbean.asm4.ClassReader;
+-import org.apache.xbean.asm4.Label;
+-import org.apache.xbean.asm4.MethodVisitor;
+-import org.apache.xbean.asm4.Opcodes;
+-import org.apache.xbean.asm4.Type;
+-import org.apache.xbean.asm4.shade.commons.EmptyVisitor;
++import org.objectweb.asm.ClassReader;
++import org.objectweb.asm.ClassVisitor;
++import org.objectweb.asm.Label;
++import org.objectweb.asm.MethodVisitor;
++import org.objectweb.asm.Opcodes;
++import org.objectweb.asm.Type;
+
+ import java.io.IOException;
+ import java.io.InputStream;
+@@ -211,7 +211,7 @@
+ }
+ }
+
+- private static class AllParameterNamesDiscoveringVisitor extends EmptyVisitor {
++ private static class AllParameterNamesDiscoveringVisitor extends ClassVisitor {
+ private final Map<Constructor,List<String>> constructorParameters = new HashMap<Constructor,List<String>>();
+ private final Map<Method,List<String>> methodParameters = new HashMap<Method,List<String>>();
+ private final Map<String,Exception> exceptions = new HashMap<String,Exception>();
+@@ -220,6 +220,7 @@
+ private final Map<String,Constructor> constructorMap = new HashMap<String,Constructor>();
+
+ public AllParameterNamesDiscoveringVisitor(Class type, String methodName) {
++ super(Opcodes.ASM4);
+ this.methodName = methodName;
+
+ List<Method> methods = new ArrayList<Method>(Arrays.asList(type.getMethods()));
+@@ -232,6 +233,7 @@
+ }
+
+ public AllParameterNamesDiscoveringVisitor(Class type) {
++ super(Opcodes.ASM4);
+ this.methodName = "<init>";
+
+ List<Constructor> constructors = new ArrayList<Constructor>(Arrays.asList(type.getConstructors()));
diff --git a/xbean.spec b/xbean.spec
index 4795f65..d6a9076 100644
--- a/xbean.spec
+++ b/xbean.spec
@@ -6,10 +6,10 @@
%endif
Name: xbean
-Version: 3.13
+Version: 3.16
BuildArch: noarch
-Release: 4%{?dist}
+Release: 1%{?dist}
Summary: Java plugin based web server
License: ASL 2.0
@@ -17,6 +17,9 @@ URL: http://geronimo.apache.org/xbean/
Source0: http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
+# Fix dependency on xbean-asm4-shaded to original objectweb-asm
+Patch0: %{name}-asm4-unshade.patch
+
BuildRequires: java-devel
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-logging
@@ -110,12 +113,15 @@ This package provides %{summary}.
# build failing on this due to doxia-sitetools problems
rm src/site/site.xml
+%patch0
+
%pom_remove_parent
%pom_remove_dep mx4j:mx4j
-%pom_remove_dep :xbean-asm-shaded xbean-reflect
+%pom_remove_dep :xbean-asm4-shaded xbean-reflect
# These aren't needed for now
%pom_disable_module xbean-asm-shaded
+%pom_disable_module xbean-asm4-shaded
%pom_disable_module xbean-finder-shaded
%pom_disable_module xbean-telnet
@@ -134,7 +140,6 @@ rm src/site/site.xml
# blueprint FTBFS, disable for now
%pom_disable_module xbean-blueprint
-
# Replace generic OSGi dependencies with either Equinox or Felix
%pom_remove_dep :org.osgi.core xbean-bundleutils
%pom_remove_dep org.eclipse:osgi xbean-bundleutils
@@ -145,10 +150,11 @@ rm src/site/site.xml
%pom_add_dep org.apache.felix:org.apache.felix.framework xbean-bundleutils
%endif
+# maven-xbean-plugin invocation makes no sense as there are no namespaces
+%pom_remove_plugin :maven-xbean-plugin xbean-classloader
-# Fix dependency on xbean-asm-shaded to original objectweb-asm
-sed -i 's/org.apache.xbean.asm/org.objectweb.asm/' \
- xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
+# As auditing tool RAT is useful for upstream only.
+%pom_remove_plugin :apache-rat-plugin
# disable copy of internal aries-blueprint
sed -i "s|<Private-Package>|<!--Private-Package>|" xbean-blueprint/pom.xml
@@ -189,6 +195,9 @@ find -name pom.xml -exec sed -i "s|<artifactId>cglib-nodep</artifactId>|<artifac
%doc LICENSE NOTICE
%changelog
+* Thu Dec 5 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 3.16-1
+- Update to upstream version 3.16
+
* Thu Aug 08 2013 Stanislav Ochotnicky <sochotnicky at redhat.com> - 3.13-4
- Update to latest packaging guidelines
More information about the scm-commits
mailing list