Files
jakarta-concurrency/jakarta-concurrency.spec

88 lines
3.0 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package jakarta-concurrency
#
# 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 concurrency
Name: jakarta-%{base_name}
Version: 3.1.1
Release: 0
Summary: Eclipse Project for Concurrency Utilities
License: EPL-2.0
Group: Development/Libraries/Java
URL: https://projects.eclipse.org/projects/ee4j.cu
Source0: https://github.com/jakartaee/%{base_name}/archive/refs/tags/%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(jakarta.enterprise:jakarta.enterprise.cdi-api) >= 4.1.0
BuildRequires: mvn(jakarta.interceptor:jakarta.interceptor-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)
BuildArch: noarch
%description
Jakarta Concurrency provides a specification document, API and TCK for using
concurrency from application components without compromising container
integrity while still preserving the Jakarta EE platforms fundamental
benefits. The EE4J project that implements this api is also on GitHub.
This project is part of the overall Jakarta EE platform and is a project within
the Eclipse EE4J Project. Please see the Eclipse EE4J Project for details of
the Top Level project.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{base_name}-%{version}
%pom_disable_module tck
%pom_disable_module tck-dist
%pom_disable_module specification
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-javadoc-plugin api
%pom_remove_plugin :maven-source-plugin api
%pom_remove_plugin :maven-jxr-plugin api
%pom_remove_plugin org.codehaus.mojo:flatten-maven-plugin api
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dmaven.compiler.release=11
%install
%{mvn_package} :jakarta.enterprise.concurrent.parent __noinstall
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license NOTICE.adoc LICENSE.md
%doc {CONTRIBUTING,README}.adoc
%files javadoc -f .mfiles-javadoc
%license NOTICE.adoc LICENSE.md
%changelog