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