diff --git a/xbean-luna.patch b/xbean-luna.patch new file mode 100644 index 0000000..ae4db5d --- /dev/null +++ b/xbean-luna.patch @@ -0,0 +1,16 @@ +--- xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java~ 2014-04-14 13:39:32.316688191 +0200 ++++ xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java 2014-04-14 13:39:41.973106769 +0200 +@@ -153,5 +153,13 @@ + public Bundle getBundle(String location) { + return bundleContext.getBundle(location); + } ++ ++ public org.osgi.framework.ServiceObjects getServiceObjects(ServiceReference reference) { ++ return bundleContext.getServiceObjects(reference); ++ } ++ ++ public ServiceRegistration registerService(Class clazz, org.osgi.framework.ServiceFactory factory, Dictionary properties) { ++ return bundleContext.registerService(clazz, factory, properties); ++ } + + } diff --git a/xbean.spec b/xbean.spec index 1272d8c..59ac6d5 100644 --- a/xbean.spec +++ b/xbean.spec @@ -19,6 +19,8 @@ Source0: http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{versi # Fix dependency on xbean-asm4-shaded to original objectweb-asm Patch0: %{name}-asm4-unshade.patch +# Compatibility with Eclipse Luna (rhbz#1087461) +Patch1: %{name}-luna.patch BuildRequires: java-devel BuildRequires: apache-commons-beanutils @@ -114,6 +116,7 @@ This package provides %{summary}. rm src/site/site.xml %patch0 +%patch1 %pom_remove_parent %pom_remove_dep mx4j:mx4j @@ -196,6 +199,7 @@ find -name pom.xml -exec sed -i "s|cglib-nodep| - 3.17-1 - Update to upstream version 3.17 +- Add patch for Eclipse Luna * Thu Dec 5 2013 Mikolaj Izdebski - 3.16-1 - Update to upstream version 3.16