forked from pool/plexus-interactivity
This commit is contained in:
parent
d7b0dba1a3
commit
20dbb88be0
15
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/codehaus-plexus/plexus-interactivity.git</param>
|
||||||
|
<param name="revision">plexus-interactivity-1.3</param>
|
||||||
|
<param name="match-tag">plexus-interactivity-*</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">plexus-interactivity-(.*)</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
BIN
plexus-interactivity-1.0-alpha-6-src.tar.xz
(Stored with Git LFS)
BIN
plexus-interactivity-1.0-alpha-6-src.tar.xz
(Stored with Git LFS)
Binary file not shown.
BIN
plexus-interactivity-1.3.tar.xz
(Stored with Git LFS)
Normal file
BIN
plexus-interactivity-1.3.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
plexus-interactivity-build.tar.xz
(Stored with Git LFS)
BIN
plexus-interactivity-build.tar.xz
(Stored with Git LFS)
Binary file not shown.
@ -1,16 +0,0 @@
|
|||||||
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 @@
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
+ <artifactId>plexus-component-api</artifactId>
|
|
||||||
+ <version>1.0-alpha-15</version>
|
|
||||||
+ </dependency>
|
|
||||||
+ <dependency>
|
|
||||||
+ <groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-utils</artifactId>
|
|
||||||
<version>1.4</version>
|
|
||||||
</dependency>
|
|
@ -1,33 +0,0 @@
|
|||||||
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 @@
|
|
||||||
<dependency>
|
|
||||||
<groupId>jline</groupId>
|
|
||||||
<artifactId>jline</artifactId>
|
|
||||||
- <version>0.9.1</version>
|
|
||||||
+ <version>2.10</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
@@ -20,4 +20,4 @@
|
|
||||||
<version>1.0-alpha-6</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
-</project>
|
|
||||||
\ No newline at end of file
|
|
||||||
+</project>
|
|
||||||
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;
|
|
@ -16,31 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global base_ver 1.0
|
|
||||||
%global alpha_ver 6
|
|
||||||
%global namedversion %{base_ver}-alpha-%{alpha_ver}
|
|
||||||
Name: plexus-interactivity
|
Name: plexus-interactivity
|
||||||
Version: %{base_ver}~alpha%{alpha_ver}
|
Version: 1.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Plexus Interactivity Handler Component
|
Summary: Plexus Interactivity Handler Component
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://github.com/codehaus-plexus/plexus-interactivity
|
URL: https://github.com/codehaus-plexus/plexus-interactivity
|
||||||
# svn export \
|
Source0: %{name}-%{version}.tar.xz
|
||||||
# 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
|
Source1: LICENSE.MIT
|
||||||
Source100: %{name}-build.tar.xz
|
Source100: %{name}-build.tar.xz
|
||||||
Patch1: %{name}-dependencies.patch
|
|
||||||
Patch2: %{name}-jline2.patch
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
BuildRequires: atinject
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: jline >= 2
|
|
||||||
BuildRequires: plexus-component-api
|
|
||||||
BuildRequires: plexus-utils
|
BuildRequires: plexus-utils
|
||||||
|
BuildRequires: sisu-plexus
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -60,56 +51,47 @@ This package provides %{summary}.
|
|||||||
%package api
|
%package api
|
||||||
Summary: API for %{name}
|
Summary: API for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
|
Obsoletes: %{name}-jline
|
||||||
|
|
||||||
%description api
|
%description api
|
||||||
API module for %{name}.
|
API module for %{name}.
|
||||||
|
|
||||||
%package jline
|
|
||||||
Summary: jline module for %{name}
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: %{name}-api = %{version}
|
|
||||||
|
|
||||||
%description jline
|
|
||||||
jline module for %{name}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{namedversion} -a100
|
%setup -q -a100
|
||||||
%patch -P 1 -p1
|
|
||||||
%patch -P 2 -p1
|
%pom_add_dep org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0.M3 %{name}-api
|
||||||
|
|
||||||
|
%pom_remove_dep :jline-reader %{name}-api
|
||||||
|
rm -rf %{name}-api/src/main/java/org/codehaus/plexus/components/interactivity/jline
|
||||||
|
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib jline plexus-component-api plexus/utils
|
build-jar-repository -s lib atinject plexus/utils
|
||||||
%{ant} package javadoc
|
%{ant} package javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
# jar
|
# jar
|
||||||
install -dm 0755 %{buildroot}%{_javadir}/plexus
|
install -dm 0755 %{buildroot}%{_javadir}/plexus
|
||||||
for i in api jline; do
|
install -pm 0644 %{name}-api/target/%{name}-api-%{version}.jar %{buildroot}%{_javadir}/plexus/interactivity-api.jar
|
||||||
install -pm 0644 %{name}-${i}/target/%{name}-${i}-%{namedversion}.jar %{buildroot}%{_javadir}/plexus/interactivity-${i}.jar
|
|
||||||
done
|
|
||||||
# pom
|
# pom
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus
|
||||||
for i in api jline; do
|
%{mvn_install_pom} %{name}-api/pom.xml %{buildroot}%{_mavenpomdir}/plexus/interactivity-api.pom
|
||||||
%{mvn_install_pom} %{name}-${i}/pom.xml %{buildroot}%{_mavenpomdir}/plexus/interactivity-${i}.pom
|
%add_maven_depmap plexus/interactivity-api.pom plexus/interactivity-api.jar -f api
|
||||||
%add_maven_depmap plexus/interactivity-${i}.pom plexus/interactivity-${i}.jar -f ${i}
|
|
||||||
done
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
for i in api jline; do
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/api
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i}
|
cp -pr %{name}-api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/api/
|
||||||
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/
|
|
||||||
done
|
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
%files api -f .mfiles-api
|
%files api -f .mfiles-api
|
||||||
%license LICENSE.MIT
|
%license LICENSE.MIT
|
||||||
|
|
||||||
%files jline -f .mfiles-jline
|
|
||||||
%license LICENSE.MIT
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%license LICENSE.MIT
|
%license LICENSE.MIT
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user