Blame SPECS/jansi-native.spec

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