From 61d1616f22b5c77fa1f2ae7a6dac1b0d31b3c72e52c9e0a13f479ca604579eea Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 18 Mar 2022 05:41:47 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/glassfish-activation?expand=0&rev=2 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 13 ++++ activation-1.2.0.tar.xz | 3 + activation-build.xml | 161 ++++++++++++++++++++++++++++++++++++++++ jaf.changes | 20 +++++ jaf.spec | 99 ++++++++++++++++++++++++ 7 files changed, 320 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 activation-1.2.0.tar.xz create mode 100644 activation-build.xml create mode 100644 jaf.changes create mode 100644 jaf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..0099754 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + git + https://github.com/javaee/activation.git + JAF-1_2_0 + 1.2.0 + doc + + + *.tar + xz + + diff --git a/activation-1.2.0.tar.xz b/activation-1.2.0.tar.xz new file mode 100644 index 0000000..a154ce8 --- /dev/null +++ b/activation-1.2.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1554e3cc8253831179076f0d2a787e01e8247ebbfbc4a8c25a2677251a52a58 +size 58960 diff --git a/activation-build.xml b/activation-build.xml new file mode 100644 index 0000000..da9e394 --- /dev/null +++ b/activation-build.xml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jaf.changes b/jaf.changes new file mode 100644 index 0000000..b307d17 --- /dev/null +++ b/jaf.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Thu Mar 17 03:01:43 UTC 2022 - Fridrich Strba + +- Rewrite the build system so that it does not need maven + +------------------------------------------------------------------- +Wed Dec 15 11:46:54 UTC 2021 - Fridrich Strba + +- 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 + +- Add alias for the new jakarta name + +------------------------------------------------------------------- +Fri Mar 6 10:59:10 UTC 2020 - Fridrich Strba + +- Initial packaging of JavaBeans Activation Framework 1.2.0 diff --git a/jaf.spec b/jaf.spec new file mode 100644 index 0000000..34f476d --- /dev/null +++ b/jaf.spec @@ -0,0 +1,99 @@ +# +# spec file for package jaf +# +# Copyright (c) 2022 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: jaf +Version: 1.2.0 +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 +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 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_parent activation activationapi +%pom_xpath_inject pom:project "%{version}" activation 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 "\${project.version}" activation + +%build +pushd activation +%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 + +# 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 + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -r activation/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE.txt +%doc README.md + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE.txt +%doc README.md + +%changelog