Blame packages/j/jakarta-activation/jakarta-activation.spec

d4af10
#
d4af10
# spec file for package jakarta-activation
d4af10
#
Bernhard M. Wiedemann 271660
# Copyright (c) 2022 SUSE LLC
d4af10
#
d4af10
# All modifications and additions to the file contributed by third parties
d4af10
# remain the property of their copyright owners, unless otherwise agreed
d4af10
# upon. The license for this file, and modifications and additions to the
d4af10
# file, is the same license as for the pristine package itself (unless the
d4af10
# license for the pristine package is not an Open Source License, in which
d4af10
# case the license is the MIT License). An "Open Source License" is a
d4af10
# license that conforms to the Open Source Definition (Version 1.9)
d4af10
# published by the Open Source Initiative.
d4af10
d4af10
# Please submit bugfixes or comments via https://bugs.opensuse.org/
d4af10
#
d4af10
d4af10
Bernhard M. Wiedemann 271660
%global artifact_name jakarta.activation-api
d4af10
Name:           jakarta-activation
d4af10
Version:        2.1.0
d4af10
Release:        0
d4af10
Summary:        Jakarta Activation Specification and Implementation
d4af10
License:        BSD-3-Clause
d4af10
URL:            https://eclipse-ee4j.github.io/jaf/
d4af10
Source0:        https://github.com/eclipse-ee4j/jaf/archive/%{version}/jaf-%{version}.tar.gz
Bernhard M. Wiedemann 271660
Source1:        %{name}-build.xml
Bernhard M. Wiedemann 271660
BuildRequires:  ant
d4af10
BuildRequires:  fdupes
d4af10
BuildRequires:  java-devel >= 9
Bernhard M. Wiedemann 271660
BuildRequires:  javapackages-local
d4af10
BuildArch:      noarch
d4af10
d4af10
%description
d4af10
Jakarta Activation lets you take advantage of standard services to:
d4af10
determine the type of an arbitrary piece of data; encapsulate access to
d4af10
it; discover the operations available on it; and instantiate the
d4af10
appropriate bean to perform the operation(s).
d4af10
d4af10
%package javadoc
d4af10
Summary:        Javadoc for %{name}
d4af10
d4af10
%description javadoc
d4af10
This package contains javadoc for %{name}.
d4af10
d4af10
%prep
d4af10
%setup -q -n jaf-%{version}
Bernhard M. Wiedemann 271660
cp %{SOURCE1} api/build.xml
d4af10
d4af10
%pom_remove_parent api
d4af10
d4af10
%build
d4af10
pushd api
Bernhard M. Wiedemann 271660
%{ant} package javadoc
d4af10
popd
d4af10
d4af10
%install
d4af10
pushd api
Bernhard M. Wiedemann 271660
# jars
Bernhard M. Wiedemann 271660
mkdir -p %{buildroot}%{_javadir}/%{name}
Bernhard M. Wiedemann 271660
cp -a target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
Bernhard M. Wiedemann 271660
Bernhard M. Wiedemann 271660
#pom
Bernhard M. Wiedemann 271660
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
Bernhard M. Wiedemann 271660
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
Bernhard M. Wiedemann 271660
%add_maven_depmap %{name}/%{artifact_name}.pom %{name}/%{artifact_name}.jar
Bernhard M. Wiedemann 271660
Bernhard M. Wiedemann 271660
# javadoc
Bernhard M. Wiedemann 271660
mkdir -p %{buildroot}%{_javadocdir}/%{name}
Bernhard M. Wiedemann 271660
cp -a target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
d4af10
popd
Bernhard M. Wiedemann 271660
d4af10
%fdupes -s %{buildroot}%{_javadocdir}
d4af10
d4af10
%files -f api/.mfiles
d4af10
%doc README.md
d4af10
%license LICENSE.md NOTICE.md
d4af10
Bernhard M. Wiedemann 271660
%files javadoc
Bernhard M. Wiedemann 271660
%{_javadocdir}/%{name}
d4af10
%license LICENSE.md NOTICE.md
d4af10
d4af10
%changelog