commit bf7a1b64f98c656afe07c49a9e77d2c7d78e3e136b917475060687fc80e72227 Author: Fridrich Strba Date: Mon Feb 4 12:34:10 2019 +0000 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jansi?expand=0&rev=1 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jansi-build.xml b/jansi-build.xml new file mode 100644 index 0000000..ebcd308 --- /dev/null +++ b/jansi-build.xml @@ -0,0 +1,247 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + <![CDATA[jansi API Reference (${project.version})]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jansi-project-1.17.1.tar.gz b/jansi-project-1.17.1.tar.gz new file mode 100644 index 0000000..8b86466 --- /dev/null +++ b/jansi-project-1.17.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d7280eb14edc82e480d66b225470ed6a1da5c5afa4faeab7804a1f15e53b2cd +size 270221 diff --git a/jansi.changes b/jansi.changes new file mode 100644 index 0000000..dd4c76a --- /dev/null +++ b/jansi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 4 12:33:24 UTC 2019 - Fridrich Strba + +- Initial package of jansi 1.17.1 +- Add build.xml file for building with ant diff --git a/jansi.spec b/jansi.spec new file mode 100644 index 0000000..6bfc8d1 --- /dev/null +++ b/jansi.spec @@ -0,0 +1,108 @@ +# +# spec file for package jansi +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +Name: jansi +Version: 1.17.1 +Release: 0 +Summary: Jansi is a java library for generating and interpreting ANSI escape sequences +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://fusesource.github.io/jansi/ +Source0: https://github.com/fusesource/jansi/archive/jansi-project-%{version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: fdupes +BuildRequires: hawtjni-runtime +BuildRequires: jansi-native +BuildRequires: javapackages-local +BuildRequires: junit +BuildRequires: mvn(org.fusesource:fusesource-pom:pom:) +Requires: mvn(org.fusesource.hawtjni:hawtjni-runtime) +Requires: mvn(org.fusesource.jansi:jansi-native) +Requires: mvn(org.fusesource:fusesource-pom:pom:) +BuildArch: noarch + +%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} + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n jansi-jansi-project-%{version} +cp %{SOURCE1} . + +%pom_disable_module example +%pom_xpath_remove "pom:build/pom:extensions" + +%pom_remove_plugin -r :maven-site-plugin + +# No maven-uberize-plugin +%pom_remove_plugin -r :maven-uberize-plugin + +# Remove unnecessary deps for jansi-native builds +pushd jansi +%pom_remove_dep :jansi-windows32 +%pom_remove_dep :jansi-windows64 +%pom_remove_dep :jansi-osx +%pom_remove_dep :jansi-freebsd32 +%pom_remove_dep :jansi-freebsd64 +# it's there only to be bundled in uberjar and we disable uberjar generation +%pom_remove_dep :jansi-linux32 +%pom_remove_dep :jansi-linux64 +popd + +%build +mkdir -p jansi/lib +build-jar-repository -s jansi/lib \ + hawtjni/hawtjni-runtime jansi-native/jansi-native junit hamcrest/core +%{ant} -f %{name}-build.xml jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 jansi/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-project.pom +%add_maven_depmap %{name}/%{name}-project.pom +install -pm 0644 jansi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +%fdupes -s %{buildroot}%{_javadocdir} +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr jansi/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license license.txt +%doc readme.md changelog.md + +%files javadoc +%{_javadocdir}/%{name} +%license license.txt + +%changelog