# # spec file for package jakarta-cdi # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global base_name cdi Name: jakarta-%{base_name} Version: 4.1.0 Release: 0 Summary: Jakarta CDI License: Apache-2.0 Group: Development/Libraries/Java URL: https://jakarta.ee/specifications/%{base_name}/ Source0: https://github.com/jakartaee/%{base_name}/archive/refs/tags/%{version}.tar.gz Source1: %{name}-build.tar.xz BuildRequires: ant fdupes BuildRequires: beust-jcommander BuildRequires: jakarta-expression-language BuildRequires: jakarta-inject BuildRequires: jakarta-interceptor-api BuildRequires: java-devel >= 9 BuildRequires: javapackages-local >= 6 BuildRequires: slf4j BuildRequires: testng Requires: java-headless >= 1.8 BuildArch: noarch %description %global desc \ Jakarta Contexts and Dependency Injection defines a\ powerful set of complementary services that help to\ improve the structure of application code. %global extdesc %{desc}\ \ This package contains %{desc} %package api Summary: APIs for CDI (Contexts and Dependency Injection for Java) %description api %{extdesc} %{summary}. %package el Summary: API for integrating CDI with Unified EL %description el %{extdesc} %{summary}. %package lang-model Summary: Build Compatible (Reflection-Free) Java Language Model for CDI %description lang-model %{extdesc} %{summary}. %package javadoc Summary: API documentation for %{name} %description javadoc This package provides %{summary}. %prep %setup -q -n %{base_name}-%{version} -a1 %build mkdir -p lib build-jar-repository -s lib \ jakarta-expression-language/jakarta.el \ beust-jcommander \ slf4j/slf4j-api \ jakarta-annotations/jakarta.annotation-api \ jakarta-inject/jakarta.inject-api \ jakarta-interceptor-api/jakarta.interceptor-api ant -Dproject.version=%{version} package javadoc %install install -dm 0755 %{buildroot}%{_javadir}/%{name} install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} install -dm 0755 %{buildroot}%{_javadocdir}/%{name} for module in api el lang-model; do # jar install -pm 0644 ${module}/target/${module}-%{version}.jar %{buildroot}%{_javadir}/%{name}/${module}.jar # pom %{mvn_install_pom} ${module}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${module}.pom %add_maven_depmap %{name}/${module}.pom %{name}/${module}.jar -f ${module} #javadoc cp -r ${module}/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/${module} done %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files api -f .mfiles-api %license LICENSE.txt NOTICE.md %doc README.md %files el -f .mfiles-el %license LICENSE.txt NOTICE.md %files lang-model -f .mfiles-lang-model %license LICENSE.txt NOTICE.md %files javadoc %{_javadocdir}/%{name} %license LICENSE.txt NOTICE.md %changelog