File angus-activation.spec of Package angus-activation

#
# spec file for package angus-activation
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#


Name:           angus-activation
Version:        2.0.3
Release:        0
Summary:        Angus Activation
License:        BSD-3-Clause
Group:          Development/Libraries/Java
URL:            https://eclipse-ee4j.github.io/%{name}
Source0:        https://github.com/eclipse-ee4j/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  java-devel >= 9
BuildRequires:  maven-local
BuildRequires:  mvn(jakarta.activation:jakarta.activation-api)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.ee4j:project:pom:)
BuildArch:      noarch

%description
This project provides the implementation of Jakarta Activation Specification
which lets you take advantage of standard services to: determine the type of an
arbitrary piece of data; encapsulate access to it; discover the operations
available on it; and instantiate the appropriate bean to perform the
operation(s).

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q

sed -i -e '/requires static org.graalvm.sdk;/d' \
	activation-registry/src/main/java/module-info.java

rm -rf activation-registry/src/main/java/org/eclipse/angus/activation/nativeimage

%pom_disable_module docs

%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin -r :maven-source-plugin

%pom_remove_dep org.graalvm.sdk:graal-sdk activation-registry docs

%build
%{mvn_build} -f -- \
    -Dmaven.compiler.{source,target}=8 \
    -DlegacyMode=true

%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license {NOTICE,LICENSE}.md
%doc {CONTRIBUTING,README}.md

%files javadoc -f .mfiles-javadoc
%license {NOTICE,LICENSE}.md

%changelog
openSUSE Build Service is sponsored by