1
0
Fridrich Strba 2022-03-18 05:53:30 +00:00 committed by Git OBS Bridge
parent 61d1616f22
commit abe3e7ac37
2 changed files with 32 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 18 05:48:14 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- 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 <fstrba@suse.com> Thu Mar 17 03:01:43 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,5 +1,5 @@
# #
# spec file for package jaf # spec file for package glassfish-activation
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
@ -16,7 +16,7 @@
# #
Name: jaf Name: glassfish-activation
Version: 1.2.0 Version: 1.2.0
Release: 0 Release: 0
Summary: JavaBeans Activation Framework Summary: JavaBeans Activation Framework
@ -28,6 +28,7 @@ Source1: activation-build.xml
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: javapackages-local BuildRequires: javapackages-local
Obsoletes: jaf
BuildArch: noarch BuildArch: noarch
%description %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 discover the operations available on it; and instantiate the appropriate
bean to perform the operation(s). 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 %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Documentation/HTML Group: Documentation/HTML
@ -66,21 +79,21 @@ cp %{SOURCE1} activation/build.xml
%build %build
pushd activation pushd activation
%ant package javadoc %{ant} package javadoc
popd popd
%install %install
# jar # jar
install -d -m 755 %{buildroot}%{_javadir}/%{name} install -d -m 755 %{buildroot}%{_javadir}/
install -m 644 activation/target/javax.activation-%{version}.jar %{buildroot}%{_javadir}/%{name}/javax.activation.jar 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}/javax.activation-api.jar install -m 644 activation/target/javax.activation-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar
# pom # pom
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 644 activation/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/javax.activation.pom install -pm 644 activation/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
install -pm 644 activationapi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/javax.activation-api.pom install -pm 644 activationapi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-api.pom
%add_maven_depmap %{name}/javax.activation.pom %{name}/javax.activation.jar %add_maven_depmap %{name}.pom %{name}.jar
%add_maven_depmap %{name}/javax.activation-api.pom %{name}/javax.activation-api.jar -a javax.activation:activation %add_maven_depmap %{name}-api.pom %{name}-api.jar -a javax.activation:activation -f api
# javadoc # javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name} install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
@ -91,6 +104,9 @@ cp -r activation/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
%license LICENSE.txt %license LICENSE.txt
%doc README.md %doc README.md
%files api -f .mfiles-api
%license LICENSE.txt
%files javadoc %files javadoc
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%license LICENSE.txt %license LICENSE.txt