Name: jansi Version: 1.5 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 checkout jansi-1.5 # git archive --format=tar --prefix=jansi-1.5/ jansi-1.5 | gzip > jansi-1.5.tar.gz Source0: %{name}-%{version}.tar.gz 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(post): jpackage-utils Requires(postun): 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 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}.pom # DEPMAP %add_to_maven_depmap org.fusesource.jansi jansi %{version} JPP %{name} %post %update_maven_depmap %postun %update_maven_depmap %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %doc readme.md license.txt changelog.md %files javadoc %{_javadocdir}/%{name} %changelog * Fri May 27 2011 Marek Goldmann 1.5-1 - Initial packaging