56 lines
1.7 KiB
RPMSpec
56 lines
1.7 KiB
RPMSpec
Name: jansi
|
|
Version: 1.17.1
|
|
Release: 2
|
|
Summary: Jansi is a java library for generating and interpreting ANSI escape sequences
|
|
License: ASL 2.0
|
|
URL: http://fusesource.github.io/jansi/
|
|
Source0: https://github.com/fusesource/jansi/archive/jansi-project-%{version}.tar.gz
|
|
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:) mvn(org.fusesource.hawtjni:hawtjni-runtime)
|
|
BuildRequires: mvn(org.fusesource.jansi:jansi-native)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Jansi is a small ASl 2.0 licensed Java library that allows you to use ANSI escape sequences to format
|
|
your console output which works even on windows.
|
|
|
|
%package help
|
|
Summary: Help package for jansi
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description help
|
|
This package contains the API help documentation for jansi.
|
|
|
|
%prep
|
|
%autosetup -n jansi-jansi-project-%{version} -p1
|
|
%pom_disable_module example
|
|
%pom_xpath_remove "pom:build/pom:extensions"
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
%pom_remove_plugin -r :maven-uberize-plugin
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
cd 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
|
|
%pom_remove_dep :jansi-linux32
|
|
%pom_remove_dep :jansi-linux64
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc license.txt readme.md changelog.md
|
|
|
|
%files help -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Thu Dec 5 2019 lingsheng <lingsheng@huawei.com> - 1.17.1-2
|
|
- Package init
|