public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jline2] epel10: Initial import.
@ 2026-09-29 13:17 Marek Goldmann
  0 siblings, 0 replies; only message in thread
From: Marek Goldmann @ 2026-09-29 13:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/jline2
Branch : epel10
Commit : 30d628b232895a51ab103975f94938e8e9dd1a63
Author : Marek Goldmann <goldmann@fedoraproject.org>
Date   : 2011-09-26T04:53:59-04:00
Stats  : +119/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/jline2/c/30d628b232895a51ab103975f94938e8e9dd1a63?branch=epel10

Log:
Initial import.

---
diff --git a/.gitignore b/.gitignore
index e69de29..62baf4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jline-2.5.tar.xz

diff --git a/jline2-2.5-pom.patch b/jline2-2.5-pom.patch
new file mode 100644
index 0000000..7467921
--- /dev/null
+++ b/jline2-2.5-pom.patch
@@ -0,0 +1,28 @@
+diff -Naur jline-2.5/pom.xml jline-2.5-work/pom.xml
+--- jline-2.5/pom.xml	2010-11-12 13:00:49.000000000 -0500
++++ jline-2.5-work/pom.xml	2011-05-31 01:42:53.140177974 -0400
+@@ -200,7 +200,7 @@
+             </plugin>
+ 
+             <!-- include all the dependencies into the jar so it can run standalone -->
+-            <plugin>
++<!--            <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-shade-plugin</artifactId>
+                 <version>1.4</version>
+@@ -234,7 +234,7 @@
+                         </configuration>
+                     </execution>
+                 </executions>
+-            </plugin>
++            </plugin>-->
+         </plugins>
+     </build>
+ 
+@@ -270,4 +270,4 @@
+         </profile>
+     </profiles>
+ 
+-</project>
+\ No newline at end of file
++</project>

diff --git a/jline2.spec b/jline2.spec
new file mode 100644
index 0000000..8c498a8
--- /dev/null
+++ b/jline2.spec
@@ -0,0 +1,89 @@
+Name:             jline2
+Version:          2.5
+Release:          3%{?dist}
+Summary:          JLine is a Java library for handling console input
+Group:            Development/Libraries
+License:          BSD and ASL 2.0
+URL:              https://github.com/jline/jline2
+
+# git clone git://github.com/jline/jline2.git
+# cd jline2/ && git archive --format=tar --prefix=jline-2.5/ jline-2.5 | xz > jline-2.5.tar.xz
+Source0:          jline-%{version}.tar.xz
+Patch0:           %{name}-%{version}-pom.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    maven
+BuildRequires:    maven-compiler-plugin
+BuildRequires:    maven-jar-plugin
+BuildRequires:    maven-surefire-plugin
+BuildRequires:    maven-install-plugin
+BuildRequires:    junit4
+BuildRequires:    jansi
+BuildRequires:    fusesource-pom
+BuildRequires:    maven-surefire-provider-junit4
+
+Requires:         jpackage-utils
+Requires:         java
+Requires:         jansi
+
+%description
+JLine is a Java library for handling console input. It is similar
+in functionality to BSD editline and GNU readline. People familiar
+with the readline/editline capabilities for modern shells (such as
+bash and tcsh) will find most of the command editing features of
+JLine to be familiar. 
+
+%package javadoc
+Summary:          Javadocs for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n jline-%{version}
+%patch0 -p1
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+cp -p target/jline-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+
+# Uh, oh...
+# http://sourceforge.net/mailarchive/message.php?msg_id=27330388
+# https://github.com/jline/jline2/commit/7a4d27430999706f0fd30b4548d5879275a88de2#pom.xml
+%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "jline:jline"
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc README.md LICENSE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Wed Sep 21 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-3
+- Updated license
+- Removed unnecessary add_to_maven_depmap
+
+* Thu Sep 08 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-2
+- Cleaned spec
+
+* Tue May 31 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-1
+- Initial packaging
+

diff --git a/sources b/sources
index e69de29..d797f25 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+06eb131df117aec260d08b720745ec6b  jline-2.5.tar.xz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-29 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 13:17 [rpms/jline2] epel10: Initial import Marek Goldmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox