2021-12-15 12:59:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package jakarta-activation
|
|
|
|
#
|
2024-04-29 16:28:08 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-12-15 12:59:19 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-04-29 18:57:53 +02:00
|
|
|
%global srcname jaf-api
|
2022-03-03 15:27:02 +01:00
|
|
|
%global artifact_name jakarta.activation-api
|
2024-04-29 18:49:06 +02:00
|
|
|
# The automatic requires would be java-headless >= 9, but the
|
|
|
|
# binaries are java 8 compatible
|
|
|
|
%define __requires_exclude java-headless
|
2021-12-15 12:59:19 +01:00
|
|
|
Name: jakarta-activation
|
2024-04-29 18:57:53 +02:00
|
|
|
Version: 2.1.3
|
2021-12-15 12:59:19 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Jakarta Activation Specification and Implementation
|
|
|
|
License: BSD-3-Clause
|
2024-04-29 18:57:53 +02:00
|
|
|
URL: https://github.com/jakartaee/%{srcname}
|
|
|
|
Source0: https://github.com/jakartaee/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
2022-03-03 15:27:02 +01:00
|
|
|
Source1: %{name}-build.xml
|
|
|
|
BuildRequires: ant
|
2021-12-15 12:59:19 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: java-devel >= 9
|
2024-04-29 16:28:08 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
|
|
|
Requires: java-headless >= 1.8
|
2021-12-15 12:59:19 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Jakarta Activation 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: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2024-04-29 18:57:53 +02:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2022-03-03 15:27:02 +01:00
|
|
|
cp %{SOURCE1} api/build.xml
|
2021-12-15 12:59:19 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd api
|
2022-03-03 15:27:02 +01:00
|
|
|
%{ant} package javadoc
|
2021-12-15 12:59:19 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2022-03-03 15:27:02 +01:00
|
|
|
# jars
|
2024-04-29 16:28:08 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -pm 0644 api/target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
|
2022-03-03 15:27:02 +01:00
|
|
|
|
|
|
|
#pom
|
2024-04-29 16:28:08 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
2024-04-29 18:49:06 +02:00
|
|
|
%{mvn_install_pom} api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
|
2022-03-03 15:27:02 +01:00
|
|
|
%add_maven_depmap %{name}/%{artifact_name}.pom %{name}/%{artifact_name}.jar
|
|
|
|
|
|
|
|
# javadoc
|
2024-04-29 16:28:08 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -a api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
2022-03-03 15:27:02 +01:00
|
|
|
|
2021-12-15 12:59:19 +01:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
2024-04-29 16:28:08 +02:00
|
|
|
%files -f .mfiles
|
2021-12-15 12:59:19 +01:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
|
2022-03-03 15:27:02 +01:00
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
2021-12-15 12:59:19 +01:00
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
|
|
|
|
%changelog
|