From abe3e7ac37511d34dbdfd44ee5e4d4ad52043b37a90e067fce34463ca4880102 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 18 Mar 2022 05:53:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/glassfish-activation?expand=0&rev=3 --- jaf.changes => glassfish-activation.changes | 6 ++++ jaf.spec => glassfish-activation.spec | 36 +++++++++++++++------ 2 files changed, 32 insertions(+), 10 deletions(-) rename jaf.changes => glassfish-activation.changes (75%) rename jaf.spec => glassfish-activation.spec (76%) diff --git a/jaf.changes b/glassfish-activation.changes similarity index 75% rename from jaf.changes rename to glassfish-activation.changes index b307d17..be6e289 100644 --- a/jaf.changes +++ b/glassfish-activation.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 18 05:48:14 UTC 2022 - Fridrich Strba + +- Rename package to glassfish-activation and split it into two, + the whole activation jar and the jar with only the apis + ------------------------------------------------------------------- Thu Mar 17 03:01:43 UTC 2022 - Fridrich Strba diff --git a/jaf.spec b/glassfish-activation.spec similarity index 76% rename from jaf.spec rename to glassfish-activation.spec index 34f476d..5782bbb 100644 --- a/jaf.spec +++ b/glassfish-activation.spec @@ -1,5 +1,5 @@ # -# spec file for package jaf +# spec file for package glassfish-activation # # Copyright (c) 2022 SUSE LLC # @@ -16,7 +16,7 @@ # -Name: jaf +Name: glassfish-activation Version: 1.2.0 Release: 0 Summary: JavaBeans Activation Framework @@ -28,6 +28,7 @@ Source1: activation-build.xml BuildRequires: ant BuildRequires: fdupes BuildRequires: javapackages-local +Obsoletes: jaf BuildArch: noarch %description @@ -37,6 +38,18 @@ 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 api +Summary: JavaBeans Activation Framework API jar + +%description api +The JavaBeans Activation Framework (JAF) is a standard extension to the +Java platform that 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). + +This package contains a Java library with only the APIs + %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML @@ -66,21 +79,21 @@ cp %{SOURCE1} activation/build.xml %build pushd activation -%ant package javadoc +%{ant} package javadoc popd %install # jar -install -d -m 755 %{buildroot}%{_javadir}/%{name} -install -m 644 activation/target/javax.activation-%{version}.jar %{buildroot}%{_javadir}/%{name}/javax.activation.jar -install -m 644 activation/target/javax.activation-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/javax.activation-api.jar +install -d -m 755 %{buildroot}%{_javadir}/ +install -m 644 activation/target/javax.activation-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +install -m 644 activation/target/javax.activation-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar # pom install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} -install -pm 644 activation/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/javax.activation.pom -install -pm 644 activationapi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/javax.activation-api.pom -%add_maven_depmap %{name}/javax.activation.pom %{name}/javax.activation.jar -%add_maven_depmap %{name}/javax.activation-api.pom %{name}/javax.activation-api.jar -a javax.activation:activation +install -pm 644 activation/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +install -pm 644 activationapi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-api.pom +%add_maven_depmap %{name}.pom %{name}.jar +%add_maven_depmap %{name}-api.pom %{name}-api.jar -a javax.activation:activation -f api # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} @@ -91,6 +104,9 @@ cp -r activation/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name} %license LICENSE.txt %doc README.md +%files api -f .mfiles-api +%license LICENSE.txt + %files javadoc %{_javadocdir}/%{name} %license LICENSE.txt