a4ffb1
%global bits 32
a4ffb1
%global debug_package %{nil}
a4ffb1
29eba3
%ifarch x86_64 ppc64 s390x sparc64 aarch64 ppc64le
a4ffb1
  %global bits 64
a4ffb1
%endif
a4ffb1
a4ffb1
Name:             jansi-native
a4ffb1
Version:          1.4
29eba3
Release:          11%{?dist}
a4ffb1
Summary:          Jansi Native implements the JNI Libraries used by the Jansi project
a4ffb1
Group:            Development/Libraries
a4ffb1
License:          ASL 2.0
a4ffb1
URL:              http://jansi.fusesource.org/
a4ffb1
a4ffb1
# git clone git://github.com/fusesource/jansi-native.git
a4ffb1
# cd jansi-native && git archive --format=tar --prefix=jansi-native-1.4/ jansi-native-1.4 | xz > jansi-native-1.4.tar.xz
a4ffb1
Source0:          jansi-native-%{version}.tar.xz
a4ffb1
a4ffb1
Patch0:           0001-Fixing-archiver-requires-AM_PROG_AR-in-configure.ac-.patch
a4ffb1
a4ffb1
BuildRequires:    jpackage-utils
a4ffb1
BuildRequires:    java-devel
a4ffb1
BuildRequires:    maven-local
a4ffb1
BuildRequires:    maven-compiler-plugin
a4ffb1
BuildRequires:    maven-javadoc-plugin
a4ffb1
BuildRequires:    maven-surefire-plugin
a4ffb1
BuildRequires:    maven-surefire-report-plugin
a4ffb1
BuildRequires:    maven-project-info-reports-plugin
a4ffb1
BuildRequires:    maven-clean-plugin
a4ffb1
BuildRequires:    maven-plugin-bundle
a4ffb1
BuildRequires:    maven-plugin-jxr
a4ffb1
BuildRequires:    junit4
a4ffb1
BuildRequires:    hawtjni
a4ffb1
BuildRequires:    autoconf
a4ffb1
BuildRequires:    automake
a4ffb1
BuildRequires:    libtool
a4ffb1
BuildRequires:    make
a4ffb1
BuildRequires:    fusesource-pom
a4ffb1
BuildRequires:    maven-surefire-provider-junit4
a4ffb1
BuildRequires:    maven-hawtjni-plugin
a4ffb1
BuildRequires:    maven-resources-plugin
a4ffb1
BuildRequires:    felix-parent
a4ffb1
a4ffb1
%description
a4ffb1
Jansi is a small java library that allows you to use ANSI escape sequences
a4ffb1
in your Java console applications. It implements ANSI support on platforms
a4ffb1
which don't support it like Windows and provides graceful degradation for
a4ffb1
when output is being sent to output devices which cannot support ANSI sequences. 
a4ffb1
a4ffb1
%package javadoc
a4ffb1
Summary:          Javadocs for %{name}
a4ffb1
Group:            Documentation
a4ffb1
a4ffb1
%description javadoc
a4ffb1
This package contains the API documentation for %{name}.
a4ffb1
a4ffb1
%prep
a4ffb1
%setup -q
a4ffb1
%patch0 -p1
a4ffb1
a4ffb1
%mvn_file :jansi-native %{name}
a4ffb1
%mvn_package :::linux%{bits}: __default
a4ffb1
a4ffb1
%build
a4ffb1
%mvn_build
a4ffb1
a4ffb1
%install
a4ffb1
%mvn_install
a4ffb1
a4ffb1
# JAR
a4ffb1
mkdir -p $RPM_BUILD_ROOT%{_jnidir}
a4ffb1
cp -p target/%{name}-%{version}-linux%{bits}.jar $RPM_BUILD_ROOT%{_jnidir}/%{name}-linux.jar
a4ffb1
a4ffb1
%files -f .mfiles
a4ffb1
%{_jnidir}/%{name}-linux.jar
a4ffb1
%doc readme.md license.txt changelog.md
a4ffb1
a4ffb1
%files javadoc -f .mfiles-javadoc
a4ffb1
%doc license.txt
a4ffb1
a4ffb1
%changelog
29eba3
* Fri Aug  1 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-11
29eba3
- Recognise ppc64le as 64-bit architecture
29eba3
76d51d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4-10
76d51d
- Mass rebuild 2014-01-24
76d51d
76d51d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-9
76d51d
- Mass rebuild 2013-12-27
76d51d
a4ffb1
* Mon Nov 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-8
a4ffb1
- Install attached artifacts for proper classifier provides
a4ffb1
- Enable aarch64 support
a4ffb1
- Resolves: rhbz#1028551
a4ffb1
a4ffb1
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 1.4-7
a4ffb1
- Migrate away from mvn-rpmbuild (Resolves: #997522)
a4ffb1
a4ffb1
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-6
a4ffb1
- Rebuild to regenerate API documentation
a4ffb1
- Resolves: CVE-2013-1571
a4ffb1
a4ffb1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
a4ffb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a4ffb1
a4ffb1
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-4
a4ffb1
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
a4ffb1
- Replace maven BuildRequires with maven-local
a4ffb1
a4ffb1
* Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-3
a4ffb1
- revbump after jnidir change
a4ffb1
a4ffb1
* Wed Dec 12 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-2
a4ffb1
- Move normal jar from javajnidir to javadir
a4ffb1
a4ffb1
* Wed Sep 19 2012 Marek Goldmann <mgoldman@redhat.com> - 1.4-1
a4ffb1
- Upstream release 1.4
a4ffb1
- Fixing "archiver requires 'AM_PROG_AR' in 'configure.ac'" error
a4ffb1
- FTBFS: config.status: error: cannot find input file: `Makefile.in' RHBZ#858377
a4ffb1
a4ffb1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
a4ffb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a4ffb1
a4ffb1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
a4ffb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a4ffb1
a4ffb1
* Wed Oct 26 2011 Dan HorĂ¡k <dan[at]danny.cz> 1.2-2
a4ffb1
- fix build on non-x86 64-bit arches
a4ffb1
a4ffb1
* Thu Jul 28 2011 Marek Goldmann <mgoldman@redhat.com> 1.2-1
a4ffb1
- Upstream release 1.2
a4ffb1
- Using new jnidir
a4ffb1
a4ffb1
* Tue May 31 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
a4ffb1
- Updated summary
a4ffb1
- Removed debuginfo package
a4ffb1
- Added license to javadoc package
a4ffb1
- Fixed dependency on maven-hawtjni-plugin
a4ffb1
a4ffb1
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
a4ffb1
- Initial packaging
a4ffb1