b68cd3
%global bits %{__isa_bits}
b68cd3
%global debug_package %{nil}
b68cd3
b68cd3
Name:           jansi-native
b68cd3
Version:        1.7
b68cd3
Release:        7%{?dist}
b68cd3
Summary:        Jansi Native implements the JNI Libraries used by the Jansi project
b68cd3
License:        ASL 2.0
b68cd3
URL:            http://jansi.fusesource.org/
b68cd3
Source0:        https://github.com/fusesource/jansi-native/archive/jansi-native-%{version}.tar.gz
b68cd3
b68cd3
BuildRequires:  maven-local
b68cd3
BuildRequires:  mvn(junit:junit)
b68cd3
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
b68cd3
BuildRequires:  mvn(org.fusesource:fusesource-pom:pom:)
b68cd3
BuildRequires:  mvn(org.fusesource.hawtjni:hawtjni-runtime) >= 1.9-2
b68cd3
BuildRequires:  mvn(org.fusesource.hawtjni:maven-hawtjni-plugin) >= 1.9-2
b68cd3
b68cd3
%description
b68cd3
Jansi is a small java library that allows you to use ANSI escape sequences
b68cd3
in your Java console applications. It implements ANSI support on platforms
b68cd3
which don't support it like Windows and provides graceful degradation for
b68cd3
when output is being sent to output devices which cannot support ANSI sequences.
b68cd3
b68cd3
%package javadoc
b68cd3
Summary:          Javadocs for %{name}
b68cd3
BuildArch:        noarch
b68cd3
b68cd3
%description javadoc
b68cd3
This package contains the API documentation for %{name}.
b68cd3
b68cd3
%prep
b68cd3
%setup -q -n jansi-native-jansi-native-%{version}
b68cd3
b68cd3
%mvn_alias :jansi-linux%{bits} :jansi-linux
b68cd3
%mvn_file :jansi-linux%{bits} %{name}/jansi-linux%{bits} %{name}/jansi-linux
b68cd3
b68cd3
%build
b68cd3
%mvn_build
b68cd3
%mvn_build -- -Dplatform=linux%{bits}
b68cd3
b68cd3
%install
b68cd3
%mvn_install
b68cd3
b68cd3
%files -f .mfiles
b68cd3
%doc readme.md changelog.md
b68cd3
%license license.txt
b68cd3
b68cd3
%files javadoc -f .mfiles-javadoc
b68cd3
%license license.txt
b68cd3
b68cd3
%changelog
b68cd3
* Thu Jul 26 2018 Michael Simacek <msimacek@redhat.com> - 1.7-7
b68cd3
- Build missing native lib
b68cd3
b68cd3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-6
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b68cd3
b68cd3
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7-5
b68cd3
- Escape macros in %%changelog
b68cd3
b68cd3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-4
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b68cd3
b68cd3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-3
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b68cd3
b68cd3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b68cd3
b68cd3
* Wed Jun 14 2017 Michael Simacek <msimacek@redhat.com> - 1.7-1
b68cd3
- Update to upstream version 1.7
b68cd3
b68cd3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b68cd3
b68cd3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-10
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b68cd3
b68cd3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b68cd3
b68cd3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-8
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b68cd3
b68cd3
* Sun Aug 03 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.5-7
b68cd3
- Fix FTBFS due to XMvn changes in F21 (#1106820)
b68cd3
b68cd3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b68cd3
b68cd3
* Fri May 23 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-5
b68cd3
- Cleanup BuildRequires
b68cd3
b68cd3
* Thu Mar  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-4
b68cd3
- Require hawtjni >= 1.9-2
b68cd3
b68cd3
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-4
b68cd3
- Use Requires: java-headless rebuild (#1067528)
b68cd3
b68cd3
* Fri Jan 10 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-4
b68cd3
- Install attached artifacts
b68cd3
- Resolves: rhbz#1028550
b68cd3
b68cd3
* Tue Nov 26 2013 Marek Goldmann <mgoldman@redhat.com> - 1.5-3
b68cd3
- Mark javadoc subpackage as noarch
b68cd3
b68cd3
* Mon Nov 25 2013 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.5-2
b68cd3
- Use %%__isa_bits macro to support all architectures
b68cd3
b68cd3
* Wed Sep 11 2013 Marek Goldmann <mgoldman@redhat.com> - 1.5-1
b68cd3
- Upstream release 1.5
b68cd3
b68cd3
* Tue Aug 06 2013 Marek Goldmann <mgoldman@redhat.com> - 1.4-7
b68cd3
- New guidelines
b68cd3
b68cd3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b68cd3
b68cd3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b68cd3
b68cd3
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-4
b68cd3
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
b68cd3
- Replace maven BuildRequires with maven-local
b68cd3
b68cd3
* Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-3
b68cd3
- revbump after jnidir change
b68cd3
b68cd3
* Wed Dec 12 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-2
b68cd3
- Move normal jar from javajnidir to javadir
b68cd3
b68cd3
* Wed Sep 19 2012 Marek Goldmann <mgoldman@redhat.com> - 1.4-1
b68cd3
- Upstream release 1.4
b68cd3
- Fixing "archiver requires 'AM_PROG_AR' in 'configure.ac'" error
b68cd3
- FTBFS: config.status: error: cannot find input file: `Makefile.in' RHBZ#858377
b68cd3
b68cd3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b68cd3
b68cd3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
b68cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b68cd3
b68cd3
* Wed Oct 26 2011 Dan HorĂ¡k <dan[at]danny.cz> 1.2-2
b68cd3
- fix build on non-x86 64-bit arches
b68cd3
b68cd3
* Thu Jul 28 2011 Marek Goldmann <mgoldman@redhat.com> 1.2-1
b68cd3
- Upstream release 1.2
b68cd3
- Using new jnidir
b68cd3
b68cd3
* Tue May 31 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
b68cd3
- Updated summary
b68cd3
- Removed debuginfo package
b68cd3
- Added license to javadoc package
b68cd3
- Fixed dependency on maven-hawtjni-plugin
b68cd3
b68cd3
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
b68cd3
- Initial packaging
b68cd3