From 634aee7f761874e192028bdba9ec1822fd7fa8fb Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Mon, 29 Aug 2011 08:49:48 -0400 Subject: [PATCH] Initial import. --- .gitignore | 1 + jansi-1.6-pom.patch | 33 ++++++++++++++++ jansi.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 129 insertions(+) create mode 100644 jansi-1.6-pom.patch create mode 100644 jansi.spec diff --git a/.gitignore b/.gitignore index e69de29..3147e1c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/jansi-1.6.tar.xz diff --git a/jansi-1.6-pom.patch b/jansi-1.6-pom.patch new file mode 100644 index 0000000..14e6c51 --- /dev/null +++ b/jansi-1.6-pom.patch @@ -0,0 +1,33 @@ +diff -Naur jansi-1.6/jansi/pom.xml jansi-1.6-work/jansi/pom.xml +--- jansi-1.6/jansi/pom.xml 2011-06-19 10:51:32.000000000 -0400 ++++ jansi-1.6-work/jansi/pom.xml 2011-08-25 08:24:42.950756822 -0400 +@@ -94,19 +94,6 @@ + 2.3 + + +- +- +- org.fusesource.mvnplugins +- maven-uberize-plugin +- 1.5 +- +- +- package +- uberize +- +- +- +- + + org.apache.maven.plugins + maven-surefire-plugin +diff -Naur jansi-1.6/pom.xml jansi-1.6-work/pom.xml +--- jansi-1.6/pom.xml 2011-06-19 10:51:32.000000000 -0400 ++++ jansi-1.6-work/pom.xml 2011-08-25 08:25:51.005754781 -0400 +@@ -132,6 +132,5 @@ + + + jansi +- jansi-website + + diff --git a/jansi.spec b/jansi.spec new file mode 100644 index 0000000..da234a7 --- /dev/null +++ b/jansi.spec @@ -0,0 +1,94 @@ +Name: jansi +Version: 1.6 +Release: 1%{?dist} +Summary: Jansi is a java library for generating and interpreting ANSI escape sequences +Group: Development/Libraries +License: ASL 2.0 +URL: http://jansi.fusesource.org/ + +# git clone git://github.com/fusesource/jansi.git +# cd jansi && git archive --format=tar --prefix=jansi-1.6/ jansi-project-1.6 | xz > jansi-1.6.tar.xz +Source0: %{name}-%{version}.tar.xz +Patch0: %{name}-%{version}-pom.patch + +BuildArch: noarch + +BuildRequires: jpackage-utils +BuildRequires: java-devel +BuildRequires: maven +BuildRequires: maven-compiler-plugin +BuildRequires: maven-license-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-release-plugin +BuildRequires: maven-surefire-plugin +BuildRequires: jansi-native +BuildRequires: maven-clean-plugin +BuildRequires: maven-plugin-bundle +BuildRequires: junit4 +BuildRequires: fusesource-pom +BuildRequires: maven-surefire-provider-junit4 + +Requires: java +Requires: jpackage-utils +Requires: jansi-native +Requires: hawtjni + +%description +Jansi is a small java library that allows you to use ANSI escape sequences +in your Java console applications. It implements ANSI support on platforms +which don't support it like Windows and provides graceful degradation for +when output is being sent to output devices which cannot support ANSI sequences. + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q +%patch0 -p1 + +%build +mvn-rpmbuild install javadoc:aggregate + +%install +# JAR +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p %{name}/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar + +# JAVADOC +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +# POM +install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} +install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-project.pom +install -pm 644 %{name}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom + +# DEPMAP +%add_maven_depmap JPP-%{name}-project.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar + +%files +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* +%{_javadir}/* +%doc readme.md license.txt changelog.md + +%files javadoc +%{_javadocdir}/%{name} +%doc license.txt + +%changelog +* Thu Aug 25 2011 Marek Goldmann 1.6-1 +- Upstream release 1.6 +- Spec file cleanup + +* Fri May 27 2011 Marek Goldmann 1.5-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..47de318 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +90a600f1c5643058c28abce308afc1ee jansi-1.6.tar.xz