From b06fef49edc3b158e833dc6447f3cf51a6906521b6845daddcb1a823cb26a740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:26:14 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main plexus-interactivity revision 3ae27a3cf26c44bed19735571c122506 --- .gitattributes | 23 ++++ LICENSE.MIT | 21 ++++ plexus-interactivity-1.0-alpha-6-src.tar.xz | 3 + plexus-interactivity-build.tar.xz | 3 + plexus-interactivity-dependencies.patch | 16 +++ plexus-interactivity-jline2.patch | 33 ++++++ plexus-interactivity.changes | 15 +++ plexus-interactivity.spec | 125 ++++++++++++++++++++ 8 files changed, 239 insertions(+) create mode 100644 .gitattributes create mode 100644 LICENSE.MIT create mode 100644 plexus-interactivity-1.0-alpha-6-src.tar.xz create mode 100644 plexus-interactivity-build.tar.xz create mode 100644 plexus-interactivity-dependencies.patch create mode 100644 plexus-interactivity-jline2.patch create mode 100644 plexus-interactivity.changes create mode 100644 plexus-interactivity.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/LICENSE.MIT b/LICENSE.MIT new file mode 100644 index 0000000..58d2178 --- /dev/null +++ b/LICENSE.MIT @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2005, The Codehaus + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plexus-interactivity-1.0-alpha-6-src.tar.xz b/plexus-interactivity-1.0-alpha-6-src.tar.xz new file mode 100644 index 0000000..6fd7cce --- /dev/null +++ b/plexus-interactivity-1.0-alpha-6-src.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f3e5467e2bd4ddbac86bd5668b8b7cec2cd50c4ca32a414ae7e226ea9ab1db2 +size 4416 diff --git a/plexus-interactivity-build.tar.xz b/plexus-interactivity-build.tar.xz new file mode 100644 index 0000000..555dd2f --- /dev/null +++ b/plexus-interactivity-build.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4147c4df0818994b6149b9aa509278cd48bc063c417182f93017cb3d09f4cab5 +size 1848 diff --git a/plexus-interactivity-dependencies.patch b/plexus-interactivity-dependencies.patch new file mode 100644 index 0000000..05035dd --- /dev/null +++ b/plexus-interactivity-dependencies.patch @@ -0,0 +1,16 @@ +diff --git a/plexus-interactivity-api/pom.xml b/plexus-interactivity-api/pom.xml +index 84e659e..943d7e4 100644 +--- a/plexus-interactivity-api/pom.xml ++++ b/plexus-interactivity-api/pom.xml +@@ -11,6 +11,11 @@ + + + org.codehaus.plexus ++ plexus-component-api ++ 1.0-alpha-15 ++ ++ ++ org.codehaus.plexus + plexus-utils + 1.4 + diff --git a/plexus-interactivity-jline2.patch b/plexus-interactivity-jline2.patch new file mode 100644 index 0000000..d2be71b --- /dev/null +++ b/plexus-interactivity-jline2.patch @@ -0,0 +1,33 @@ +diff --git a/plexus-interactivity-jline/pom.xml b/plexus-interactivity-jline/pom.xml +index fc9b185..afffd1d 100644 +--- a/plexus-interactivity-jline/pom.xml ++++ b/plexus-interactivity-jline/pom.xml +@@ -12,7 +12,7 @@ + + jline + jline +- 0.9.1 ++ 2.10 + + + org.codehaus.plexus +@@ -20,4 +20,4 @@ + 1.0-alpha-6 + + +- +\ No newline at end of file ++ +diff --git a/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java b/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java +index 69e7b78..2a23942 100755 +--- a/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java ++++ b/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java +@@ -24,7 +24,7 @@ package org.codehaus.plexus.components.interactivity.jline; + * SOFTWARE. + */ + +-import jline.ConsoleReader; ++import jline.console.ConsoleReader; + import org.codehaus.plexus.components.interactivity.AbstractInputHandler; + import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; + import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; diff --git a/plexus-interactivity.changes b/plexus-interactivity.changes new file mode 100644 index 0000000..3cf92d5 --- /dev/null +++ b/plexus-interactivity.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Sun Mar 20 17:37:26 UTC 2022 - Fridrich Strba + +- Build with source and target levels 8 + +------------------------------------------------------------------- +Mon Apr 1 23:13:32 UTC 2019 - Jan Engelhardt + +- Describe package, not the project vision. + +------------------------------------------------------------------- +Tue Mar 12 10:55:15 UTC 2019 - Fridrich Strba + +- Intial packaging of plexus-interactivity 1.0-alpha-6 +- Generate and customize ant build files diff --git a/plexus-interactivity.spec b/plexus-interactivity.spec new file mode 100644 index 0000000..3f85061 --- /dev/null +++ b/plexus-interactivity.spec @@ -0,0 +1,125 @@ +# +# spec file for package plexus-interactivity +# +# 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/ +# + + +%global base_ver 1.0 +%global alpha_ver 6 +%global namedversion %{base_ver}-alpha-%{alpha_ver} +Name: plexus-interactivity +Version: %{base_ver}~alpha%{alpha_ver} +Release: 0 +Summary: Plexus Interactivity Handler Component +License: MIT +Group: Development/Libraries/Java +URL: https://github.com/codehaus-plexus/plexus-interactivity +# svn export \ +# http://svn.codehaus.org/plexus/plexus-components/tags/plexus-interactivity-1.0-alpha-6/ +# tar caf plexus-interactivity-1.0-alpha-6-src.tar.xz \ +# plexus-interactivity-1.0-alpha-6 +Source0: %{name}-%{namedversion}-src.tar.xz +Source1: LICENSE.MIT +Source100: %{name}-build.tar.xz +Patch1: %{name}-dependencies.patch +Patch2: %{name}-jline2.patch +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: jline >= 2 +BuildRequires: plexus-component-api +BuildRequires: plexus-utils +BuildArch: noarch + +%description +Plexus contains end-to-end developer tools for writing applications. +At the core is the container, which can be embedded or for an +application server. There are many reusable components for hibernate, +form processing, jndi, i18n, velocity, etc. Plexus also includes an +application server which is like a J2EE application server. + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +This package provides %{summary}. + +%package api +Summary: API for %{name} +Group: Development/Libraries/Java +Requires: mvn(org.codehaus.plexus:plexus-component-api) +Requires: mvn(org.codehaus.plexus:plexus-utils) + +%description api +API module for %{name}. + +%package jline +Summary: jline module for %{name} +Group: Development/Libraries/Java +Requires: plexus-interactivity-api = %{version} +Requires: mvn(jline:jline) + +%description jline +jline module for %{name}. + +%prep +%setup -q -n %{name}-%{namedversion} -a100 +%patch1 -p1 +%patch2 -p1 + +cp %{SOURCE1} . + +for i in api jline; do + %pom_xpath_inject "pom:project" "org.codehaus.plexus" %{name}-${i} + %pom_remove_parent %{name}-${i} +done + +%build +mkdir -p lib +build-jar-repository -s lib jline plexus-component-api plexus/utils +%{ant} package javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/plexus +for i in api jline; do + install -pm 0644 %{name}-${i}/target/%{name}-${i}-%{namedversion}.jar %{buildroot}%{_javadir}/plexus/interactivity-${i}.jar +done +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus +for i in api jline; do + install -pm 0644 %{name}-${i}/pom.xml %{buildroot}%{_mavenpomdir}/plexus/interactivity-${i}.pom + %add_maven_depmap plexus/interactivity-${i}.pom plexus/interactivity-${i}.jar -f ${i} +done +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +for i in api jline; do + install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i} + cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/ +done +%fdupes -s %{buildroot}%{_javadocdir} + +%files api -f .mfiles-api +%license LICENSE.MIT + +%files jline -f .mfiles-jline +%license LICENSE.MIT + +%files javadoc +%license LICENSE.MIT +%{_javadocdir}/%{name} + +%changelog