Update to upstream version 2.0.2

This commit is contained in:
Mikolaj Izdebski 2020-05-16 15:45:20 +02:00
parent 18e8a77688
commit d9d518a0bc
3 changed files with 29 additions and 36 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/1.1.tar.gz
/1.2.tar.gz
/2.0.1.tar.gz
/2.0.2.tar.gz

View File

@ -1,24 +1,18 @@
Name: cdi-api
Version: 2.0.1
Release: 3%{?dist}
Version: 2.0.2
Release: 1%{?dist}
Summary: CDI API
License: ASL 2.0
URL: http://seamframework.org/Weld
URL: https://github.com/eclipse-ee4j/cdi
BuildArch: noarch
Source0: https://github.com/cdi-spec/cdi/archive/%{version}.tar.gz
Source0: https://github.com/eclipse-ee4j/cdi/archive/%{version}.tar.gz
Patch1: 0001-Remove-dependency-on-glassfish-el.patch
BuildRequires: maven-local-openjdk8
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
BuildRequires: maven-local
BuildRequires: %{?module_prefix}mvn(jakarta.inject:jakarta.inject-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.weld:weld-parent:pom:)
BuildRequires: mvn(org.testng:testng::jdk15:)
%description
APIs for JSR-299: Contexts and Dependency Injection for Java EE
@ -27,35 +21,33 @@ APIs for JSR-299: Contexts and Dependency Injection for Java EE
%{?javadoc_package}
%prep
%setup -q -n cdi-%{version}/api
%setup -q -n cdi-%{version}
%patch1 -p2
%pom_remove_parent
%pom_remove_parent api
%pom_disable_module spec
%pom_remove_plugin -r :maven-javadoc-plugin
# J2EE API directory
%mvn_file :{cdi-api} %{name}/@1 javax.enterprise.inject/@1
%pom_remove_dep :jakarta.el-api api
%pom_remove_dep :jakarta.interceptor-api api
rm -rf api/src/main/java/javax/enterprise/{context/,inject/spi/,inject/se/,inject/Model.java,inject/New.java}
%pom_remove_dep :jakarta.el-api
# Use newer version of interceptors API
%pom_change_dep :jakarta.interceptor-api org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec::provided
# Fix failing tests
%pom_xpath_remove 'pom:configuration/pom:argLine'
%mvn_alias jakarta.enterprise:jakarta.enterprise.cdi-api javax.enterprise:cdi-api
%mvn_alias :jakarta.enterprise.cdi-api javax.enterprise:cdi-api
%build
%mvn_build -- -Denforcer.skip
%mvn_build -f
%install
%mvn_install
%files -n %{?module_prefix}%{name} -f .mfiles
%doc ../spec/src/main/asciidoc/cdi-spec.asciidoc
%license ../spec/src/main/asciidoc/license-asl2.asciidoc
%license ../spec/src/main/asciidoc/license-jcp-final.asciidoc
%doc README.md
%license LICENSE.txt
%changelog
* Sat May 16 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.2-1
- Update to upstream version 2.0.2
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.1-3
- Build with OpenJDK 8

View File

@ -1 +1 @@
SHA512 (2.0.1.tar.gz) = fba21578e0652db01f88abd0c9f60cad7c02c3c32e8c9d4809856976e1c10d5bb401ed2fdb02078f0b059e4bb10facaec40986505a1d348b87a2de56e850fd7b
SHA512 (2.0.2.tar.gz) = 90c942115a6835ce0f8b69aa9722198d6615d7b5b09fbd4260b2f89196895d674d7acd22c15499e7d17e7345d8ed78ce0e40c99a9a04915245641ca47c23b6c2