This commit is contained in:
commit
20ee3e9929
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/jakartaee/jaf-api.git</param>
|
||||||
|
<param name="revision">1.2.2</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="exclude">doc</param>
|
||||||
|
<param name="filename">activation</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
BIN
activation-1.2.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
activation-1.2.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
activation-1.2.2.tar.xz
Normal file
3
activation-1.2.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:73833998cc1b20a16f6156578592d7c13c8b3cf46424ef3cf27026b9fb6b99f0
|
||||||
|
size 101368
|
162
activation-build.xml
Normal file
162
activation-build.xml
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project name="javax.activation" default="package" basedir=".">
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Build environment properties -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<property name="project.groupId" value="com.sun.activation"/>
|
||||||
|
<property name="project.artifactId" value="javax.activation"/>
|
||||||
|
|
||||||
|
<property name="project.groupId.api" value="javax.activation"/>
|
||||||
|
<property name="project.artifactId.api" value="javax.activation-api"/>
|
||||||
|
|
||||||
|
<property name="project.version" value="1.2.2"/>
|
||||||
|
|
||||||
|
<property name="spec.version" value="1.2"/>
|
||||||
|
|
||||||
|
<property name="compiler.source" value="1.8"/>
|
||||||
|
<property name="compiler.target" value="${compiler.source}"/>
|
||||||
|
|
||||||
|
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||||
|
<property name="build.finalName.api" value="${project.artifactId.api}-${project.version}"/>
|
||||||
|
<property name="build.dir" value="target"/>
|
||||||
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||||
|
<property name="build.srcDir" value="src/main/java"/>
|
||||||
|
<property name="build.resourceDir" value="src/main/resources"/>
|
||||||
|
|
||||||
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Cleaning up target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="clean" description="Clean the output directory">
|
||||||
|
<delete dir="${build.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Compilation target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="compile" description="Compile the code">
|
||||||
|
<mkdir dir="${build.outputDir}"/>
|
||||||
|
<javac destdir="${build.outputDir}"
|
||||||
|
encoding="UTF-8"
|
||||||
|
nowarn="false"
|
||||||
|
debug="true"
|
||||||
|
optimize="false"
|
||||||
|
deprecation="true"
|
||||||
|
target="${compiler.target}"
|
||||||
|
verbose="false"
|
||||||
|
fork="false"
|
||||||
|
source="${compiler.source}">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${build.srcDir}"/>
|
||||||
|
</src>
|
||||||
|
<exclude name="**/module-info.java"/>
|
||||||
|
</javac>
|
||||||
|
<copy todir="${build.outputDir}">
|
||||||
|
<fileset dir="${build.resourceDir}"/>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Javadoc target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||||
|
<javadoc sourcepath="${build.srcDir}"
|
||||||
|
packagenames="*"
|
||||||
|
destdir="${reporting.outputDirectory}/apidocs"
|
||||||
|
access="protected"
|
||||||
|
source="${compiler.source}"
|
||||||
|
verbose="false"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
author="true"
|
||||||
|
splitindex="false"
|
||||||
|
nodeprecated="false"
|
||||||
|
nodeprecatedlist="false"
|
||||||
|
notree="false"
|
||||||
|
noindex="false"
|
||||||
|
nohelp="false"
|
||||||
|
nonavbar="false"
|
||||||
|
serialwarn="false"
|
||||||
|
charset="ISO-8859-1"
|
||||||
|
linksource="false"
|
||||||
|
breakiterator="false"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Package target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="package" depends="compile" description="Package the application">
|
||||||
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||||
|
compress="true"
|
||||||
|
index="false"
|
||||||
|
basedir="${build.outputDir}"
|
||||||
|
excludes="**/package.html">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Automatic-Module-Name" value="java.activation"/>
|
||||||
|
<attribute name="Bundle-Description" value="JavaBeans Activation Framework"/>
|
||||||
|
<attribute name="Bundle-DocURL" value="http://www.oracle.com"/>
|
||||||
|
<attribute name="Bundle-License" value="https://github.com/javaee/activation/blob/master/LICENSE.txt"/>
|
||||||
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||||
|
<attribute name="Bundle-Name" value="JavaBeans Activation Framework"/>
|
||||||
|
<attribute name="Bundle-SymbolicName" value="${project.groupId}.${project.artifactId}"/>
|
||||||
|
<attribute name="Bundle-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||||
|
<attribute name="DynamicImport-Package" value="*"/>
|
||||||
|
<attribute name="Export-Package" value="com.sun.activation.registries;version="${project.version}",com.sun.activation.viewers;uses:="javax.activation";version="${project.version}",javax.activation;uses:="com.sun.activation.registries";version="${spec.version}""/>
|
||||||
|
<attribute name="Extension-Name" value="javax.activation"/>
|
||||||
|
<attribute name="Implementation-Title" value="javax.activation"/>
|
||||||
|
<attribute name="Implementation-Vendor-Id" value="com.sun"/>
|
||||||
|
<attribute name="Implementation-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Import-Package" value="com.sun.activation.registries;version="${spec.version}",com.sun.activation.viewers;version="${spec.version}",javax.activation;version="${spec.version}""/>
|
||||||
|
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
||||||
|
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
||||||
|
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||||
|
<attribute name="Specification-Title" value="JavaBeans(TM) Activation Framework Specification"/>
|
||||||
|
<attribute name="Specification-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Specification-Version" value="${spec.version}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
<jar jarfile="${build.dir}/${build.finalName.api}.jar"
|
||||||
|
compress="true"
|
||||||
|
index="false"
|
||||||
|
basedir="${build.outputDir}"
|
||||||
|
excludes="**/package.html **/com/** **/META-INF/**.default">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Automatic-Module-Name" value="java.activation"/>
|
||||||
|
<attribute name="Bundle-Description" value="JavaBeans Activation Framework API jar"/>
|
||||||
|
<attribute name="Bundle-DocURL" value="http://www.oracle.com"/>
|
||||||
|
<attribute name="Bundle-License" value="https://github.com/javaee/activation/blob/master/LICENSE.txt"/>
|
||||||
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||||
|
<attribute name="Bundle-Name" value="JavaBeans Activation Framework API jar"/>
|
||||||
|
<attribute name="Bundle-SymbolicName" value="javax.activation-api"/>
|
||||||
|
<attribute name="Bundle-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||||
|
<attribute name="DynamicImport-Package" value="*"/>
|
||||||
|
<attribute name="Export-Package" value="javax.activation;uses:="com.sun.activation.registries";version="${spec.version}""/>
|
||||||
|
<attribute name="Extension-Name" value="javax.activation"/>
|
||||||
|
<attribute name="Implementation-Title" value="${project.groupId.api}.${project.artifactId.api}"/>
|
||||||
|
<attribute name="Implementation-Vendor-Id" value="com.sun"/>
|
||||||
|
<attribute name="Implementation-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Import-Package" value="com.sun.activation.registries,javax.activation;version="${spec.version}""/>
|
||||||
|
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId.api}"/>
|
||||||
|
<attribute name="JavaPackages-GroupId" value="${project.groupId.api}"/>
|
||||||
|
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Specification-Title" value="${project.groupId.api}.${project.artifactId.api}"/>
|
||||||
|
<attribute name="Specification-Vendor" value="Oracle"/>
|
||||||
|
<attribute name="Specification-Version" value="${spec.version}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
48
glassfish-activation.changes
Normal file
48
glassfish-activation.changes
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 2 15:39:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Spec file cleanup
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 13 14:11:54 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Avoid missing symlink %_javadir/jaf.jar, by recreating it when
|
||||||
|
gnu-jaf is uninstalled
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 12 09:28:43 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Add symlinks to jaf.jar and activation.jar which were part
|
||||||
|
of the obsoleted gnu-jaf
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 18 16:49:05 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Build with source/target levels 8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Rewrite the build system so that it does not need maven
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 15 11:46:54 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Remove alias for the new jakarta name, since it will be provided
|
||||||
|
by a new package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 14 08:00:37 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Add alias for the new jakarta name
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 6 10:59:10 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Initial packaging of JavaBeans Activation Framework 1.2.0
|
129
glassfish-activation.spec
Normal file
129
glassfish-activation.spec
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
#
|
||||||
|
# spec file for package glassfish-activation
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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: glassfish-activation
|
||||||
|
Version: 1.2.2
|
||||||
|
Release: 0
|
||||||
|
Summary: JavaBeans Activation Framework
|
||||||
|
License: (BSD-3-Clause AND GPL-2.0-only WITH Classpath-exception-2.0) OR CDDL-1.1
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
URL: https://github.com/javaee/activation
|
||||||
|
Source0: activation-%{version}.tar.xz
|
||||||
|
Source1: activation-build.xml
|
||||||
|
BuildRequires: ant
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: javapackages-local >= 6
|
||||||
|
Obsoletes: gnu-jaf < %{version}
|
||||||
|
Obsoletes: jaf
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
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).
|
||||||
|
|
||||||
|
%package api
|
||||||
|
Summary: JavaBeans Activation Framework API jar
|
||||||
|
Provides: gnu-jaf = %{version}
|
||||||
|
Obsoletes: gnu-jaf < %{version}
|
||||||
|
Obsoletes: jaf
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n activation-%{version}
|
||||||
|
cp %{SOURCE1} activation/build.xml
|
||||||
|
|
||||||
|
%pom_disable_module demo
|
||||||
|
|
||||||
|
# maven-dependency-plugin doesn't work correctly without access to remote repos
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin activationapi
|
||||||
|
|
||||||
|
%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
|
||||||
|
%pom_remove_plugin -r :osgiversion-maven-plugin
|
||||||
|
%pom_xpath_inject pom:project/pom:properties "<activation.osgiversion>\${project.version}</activation.osgiversion>" activation
|
||||||
|
|
||||||
|
%build
|
||||||
|
pushd activation
|
||||||
|
%{ant} package javadoc
|
||||||
|
popd
|
||||||
|
|
||||||
|
%install
|
||||||
|
# jar
|
||||||
|
install -d -m 0755 %{buildroot}%{_javadir}/
|
||||||
|
install -m 0644 activation/target/javax.activation-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
install -m 0644 activation/target/javax.activation-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar
|
||||||
|
ln -sf %{name}-api.jar %{buildroot}%{_javadir}/activation.jar
|
||||||
|
ln -sf %{name}-api.jar %{buildroot}%{_javadir}/jaf.jar
|
||||||
|
|
||||||
|
# pom
|
||||||
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
|
%{mvn_install_pom} activation/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
|
%{mvn_install_pom} 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 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -r activation/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
%triggerpostun api -- gnu-jaf
|
||||||
|
if [ -f %{_javadir}/%{name}-api.jar ] ; then
|
||||||
|
if [ -f %{_javadir}/jaf.jar ] ; then
|
||||||
|
rm -f %{_javadir}/jaf.jar
|
||||||
|
fi
|
||||||
|
ln -sf %{name}-api.jar %{_javadir}/jaf.jar
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%files api -f .mfiles-api
|
||||||
|
%{_javadir}/activation.jar
|
||||||
|
%{_javadir}/jaf.jar
|
||||||
|
%license LICENSE.md
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user