From 0797905febb3b7222211a6686c10b7290be532eb Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 23 Aug 2020 16:02:41 +0200 Subject: [PATCH] update to version 2.0 --- .gitignore | 4 +++ cdi-api.spec | 96 +++++++++++++++++++++++----------------------------- sources | 2 +- 3 files changed, 47 insertions(+), 55 deletions(-) diff --git a/.gitignore b/.gitignore index ee87c40..9e4acdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +/results_* +/*.src.rpm + /cdi-api-1.0.SP4.tar.xz /1.1.tar.gz /1.2.tar.gz +/cdi-2.0.tar.gz diff --git a/cdi-api.spec b/cdi-api.spec index 9c88566..d8dc89b 100644 --- a/cdi-api.spec +++ b/cdi-api.spec @@ -1,83 +1,70 @@ -%bcond_without asciidoc +%global srcname cdi -%global namedreltag .NOTHING -%global namedversion %{version}%{?namedreltag} +Name: cdi-api +Version: 2.0 +Release: 1%{?dist} +Summary: Contexts and Dependency Injection API +License: ASL 2.0 -Name: cdi-api -Version: 1.2 -Release: 14%{?dist} -Summary: CDI API -License: ASL 2.0 -URL: http://seamframework.org/Weld -BuildArch: noarch +URL: https://github.com/eclipse-ee4j/cdi +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz -Source0: https://github.com/cdi-spec/cdi/archive/%{version}.tar.gz +BuildArch: noarch -BuildRequires: maven-local -BuildRequires: mvn(javax.el:javax.el-api) -BuildRequires: mvn(javax.inject:javax.inject) -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:) -%if %{with asciidoc} -BuildRequires: asciidoc -BuildRequires: /usr/bin/pygmentize -%endif +BuildRequires: maven-local +BuildRequires: mvn(jakarta.interceptor:jakarta.interceptor-api) +BuildRequires: mvn(javax.el:javax.el-api) +BuildRequires: mvn(javax.inject:javax.inject) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.jboss.weld:weld-parent:pom:) +BuildRequires: mvn(org.testng:testng) %description APIs for JSR-299: Contexts and Dependency Injection for Java EE + %package javadoc -Summary: Javadoc for %{name} +Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. + %prep -%setup -q -n cdi-%{version} +%autosetup -n %{srcname}-%{version} -p1 -cd api -# J2EE API directory -%mvn_file :{cdi-api} %{name}/@1 javax.enterprise.inject/@1 +# do not build specification documentation +%pom_disable_module spec + +# do not install useless parent POM +%mvn_package javax.enterprise:cdi-spec __noinstall + +# use new jakarta interceptors coordinates +%pom_change_dep :javax.interceptor-api jakarta.interceptor:jakarta.interceptor-api api -# 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" %build +%mvn_build -( - cd api - %mvn_build -- -Denforcer.skip -) - -%if %{with asciidoc} -cd spec/src/main/doc -asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o cdi-spec.html cdi-spec.asciidoc -asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o license-asl2.html license-asl2.asciidoc -asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o license-jcp.html license-jcp.asciidoc -%global adoc html -%else -%global adoc asciidoc -%endif %install -cd api %mvn_install -%files -f api/.mfiles -%doc spec/src/main/doc/cdi-spec.%{adoc} -%license spec/src/main/doc/license-asl2.%{adoc} -%license spec/src/main/doc/license-jcp.%{adoc} -%files javadoc -f api/.mfiles-javadoc -%license spec/src/main/doc/license-asl2.%{adoc} -%license spec/src/main/doc/license-jcp.%{adoc} +%files -f .mfiles +%license spec/src/main/asciidoc/license-asl2.asciidoc +%license spec/src/main/asciidoc/license-jcp-final.asciidoc +%doc spec/src/main/asciidoc/cdi-spec.asciidoc + +%files javadoc -f .mfiles-javadoc +%license spec/src/main/asciidoc/license-asl2.asciidoc +%license spec/src/main/asciidoc/license-jcp-final.asciidoc + %changelog +* Sun Aug 23 2020 Fabio Valentini - 2.0-1 +- Update to version 2.0. + * Mon Jul 27 2020 Fedora Release Engineering - 1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild @@ -193,3 +180,4 @@ cd api * Mon Feb 20 2012 Marek Goldmann 1.0-1.SP4 - Initial packaging + diff --git a/sources b/sources index 09783a3..25ba7d1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7472edb48b045bf3c2718b664fb75044 1.2.tar.gz +SHA512 (cdi-2.0.tar.gz) = 770ffdc31e20d465302678d2d7a0e7e5c26f3d981348cc732574d475f53f2ae96eba4190f495dc5e2c915777febd544d60a85fb318d8c962c4d4bff14a88bf6a