diff --git a/0001-Remove-dependency-on-glassfish-el.patch b/0001-Remove-dependency-on-glassfish-el.patch new file mode 100644 index 0000000..4f03760 --- /dev/null +++ b/0001-Remove-dependency-on-glassfish-el.patch @@ -0,0 +1,38 @@ +diff --git a/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java b/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java +index 96ba6ae..e3faacd 100644 +--- a/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java ++++ b/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java +@@ -22,8 +22,6 @@ import java.lang.reflect.Type; + import java.util.List; + import java.util.Set; + +-import javax.el.ELResolver; +-import javax.el.ExpressionFactory; + import javax.enterprise.context.ContextNotActiveException; + import javax.enterprise.context.spi.Context; + import javax.enterprise.context.spi.Contextual; +@@ -407,24 +405,6 @@ public interface BeanManager { + */ + public Context getContext(Class scopeType); + +- /** +- * Returns a {@link javax.el.ELResolver} that resolves beans by EL name. +- */ +- public ELResolver getELResolver(); +- +- /** +- * Returns a wrapper {@link javax.el.ExpressionFactory} that delegates {@link javax.el.MethodExpression} and +- * {@link javax.el.ValueExpression} creation to the given {@link javax.el.ExpressionFactory}. When a Unified EL expression +- * is evaluated using a {@link javax.el.MethodExpression} or {@link javax.el.ValueExpression} returned by the wrapper +- * {@link javax.el.ExpressionFactory}, the container handles destruction of objects with scope +- * {@link javax.enterprise.context.Dependent}. +- * +- * +- * @param expressionFactory the {@link javax.el.ExpressionFactory} to wrap +- * @return the wrapped {@link javax.el.ExpressionFactory} +- */ +- public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory); +- + /** + * Obtain an {@link AnnotatedType} that may be used to read the annotations of the given class or interface. + * diff --git a/_service b/_service index 14d0456..c636389 100644 --- a/_service +++ b/_service @@ -1,9 +1,9 @@ git - git://github.com/cdi-spec/cdi + https://github.com/cdi-spec/cdi 1.2 - 1.2 + @PARENT_TAG@ api diff --git a/cdi-1.2.tar.xz b/cdi-1.2.tar.xz index 4aeffec..7553d2a 100644 --- a/cdi-1.2.tar.xz +++ b/cdi-1.2.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f38b66047deaf0f79004f41b68be1dbbe2061d8e94a42401b93f9c911484f14f -size 46560 +oid sha256:c8a60a1c5591edecbd50796462ffae66fc5994bd2a3789a03e829903f45552fc +size 46596 diff --git a/cdi-api-build.xml b/cdi-api-build.xml index ec27bc4..d72cde7 100644 --- a/cdi-api-build.xml +++ b/cdi-api-build.xml @@ -32,10 +32,7 @@ - - - - + @@ -44,16 +41,6 @@ - - - - - - - @@ -91,100 +78,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =================================== WARNING =================================== - JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. - =============================================================================== - - @@ -217,7 +110,7 @@ - + - + - + diff --git a/cdi-api.spec b/cdi-api.spec index a3634bf..b43a4da 100644 --- a/cdi-api.spec +++ b/cdi-api.spec @@ -16,27 +16,22 @@ # -%bcond_with tests Name: cdi-api Version: 1.2 Release: 0 Summary: Contexts and Dependency Injection for Java EE License: Apache-2.0 Group: Development/Libraries/Java -URL: http://seamframework.org/Weld -# sh create-tarball.sh %%{version} +URL: https://seamframework.org/Weld Source0: cdi-%{version}.tar.xz Source1: %{name}-build.xml Source2: http://www.apache.org/licenses/LICENSE-2.0.txt +Patch0: 0001-Remove-dependency-on-glassfish-el.patch BuildRequires: ant BuildRequires: atinject BuildRequires: fdupes -BuildRequires: glassfish-el-api BuildRequires: javapackages-local -BuildRequires: jboss-interceptors-1.2-api -Requires: mvn(javax.el:javax.el-api) Requires: mvn(javax.inject:javax.inject) -Requires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec) BuildArch: noarch %description @@ -50,13 +45,15 @@ Group: Documentation/HTML This package contains the API documentation for %{name}. %prep -%setup -qn cdi-%{version} +%setup -q -n cdi-%{version} +%patch0 -p1 pushd api/ cp %{SOURCE1} build.xml cp %{SOURCE2} LICENSE -# Use newer version of interceptors API -%pom_change_dep "javax.interceptor:javax.interceptor-api" "org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec" +%pom_remove_dep :javax.el-api +%pom_remove_dep :javax.interceptor-api +rm -rf src/main/java/javax/enterprise/{context/,inject/spi/,inject/se/,inject/Model.java,inject/New.java} %pom_remove_parent popd @@ -64,12 +61,8 @@ popd %build pushd api/ mkdir -p lib -build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.inject -%{ant} \ -%if %{without tests} - -Dtest.skip=true \ -%endif - jar javadoc +build-jar-repository -s lib javax.inject +%{ant} jar javadoc popd %install