Blame SPECS/jansi.spec

884c36
%global pkg_name jansi
884c36
%{?scl:%scl_package %{pkg_name}}
884c36
%{?java_common_find_provides_and_requires}
884c36
884c36
Name:             %{?scl_prefix}%{pkg_name}
884c36
Version:          1.9
83e43d
Release:          7.14%{?dist}
884c36
Summary:          Jansi is a java library for generating and interpreting ANSI escape sequences
884c36
License:          ASL 2.0
884c36
URL:              http://jansi.fusesource.org/
884c36
884c36
# git clone git://github.com/fusesource/jansi.git
884c36
# cd jansi && git archive --format=tar --prefix=jansi-1.9/ jansi-project-1.9 | xz > jansi-1.9.tar.xz
884c36
Source0:          jansi-%{version}.tar.xz
884c36
884c36
BuildArch:        noarch
884c36
884c36
BuildRequires:    %{?scl_prefix}javapackages-tools
884c36
BuildRequires:    %{?scl_prefix}maven-local
884c36
BuildRequires:    %{?scl_prefix_maven}maven-release-plugin
884c36
BuildRequires:    %{?scl_prefix}jansi-native
884c36
BuildRequires:    %{?scl_prefix_maven}maven-plugin-bundle
884c36
BuildRequires:    %{?scl_prefix_maven}fusesource-pom
884c36
884c36
884c36
%description
884c36
Jansi is a small java library that allows you to use ANSI escape sequences
884c36
in your Java console applications. It implements ANSI support on platforms
884c36
which don't support it like Windows and provides graceful degradation for
884c36
when output is being sent to output devices which cannot support ANSI sequences.
884c36
884c36
%package javadoc
884c36
Summary:          Javadocs for %{pkg_name}
884c36
884c36
%description javadoc
884c36
This package contains the API documentation for %{pkg_name}.
884c36
884c36
%prep
884c36
%setup -q -n %{pkg_name}-%{version}
884c36
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
884c36
set -e -x
884c36
884c36
%pom_disable_module jansi-website
884c36
%pom_xpath_remove "pom:build/pom:extensions"
884c36
884c36
# No org.fusesource.mvnplugins:fuse-javadoc-skin available
884c36
%pom_remove_plugin "org.apache.maven.plugins:maven-dependency-plugin"
884c36
884c36
# No maven-uberize-plugin
884c36
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-uberize-plugin']" jansi/pom.xml
884c36
884c36
%mvn_file org.fusesource.jansi:jansi %{pkg_name}
884c36
884c36
# Remove unnecessary deps for jansi-native builds
884c36
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'jansi-native' and pom:classifier != '']" jansi/pom.xml
884c36
%{?scl:EOF}
884c36
884c36
%build
884c36
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
884c36
set -e -x
884c36
%mvn_build
884c36
%{?scl:EOF}
884c36
884c36
%install
884c36
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
884c36
set -e -x
884c36
%mvn_install
884c36
%{?scl:EOF}
884c36
884c36
%files -f .mfiles
884c36
%dir %{_mavenpomdir}/%{pkg_name}
884c36
%doc readme.md license.txt changelog.md
884c36
884c36
%files javadoc -f .mfiles-javadoc
884c36
%doc license.txt
884c36
884c36
%changelog
83e43d
* Mon Jan 16 2017 Michael Simacek <msimacek@redhat.com> - 1.9-7.14
83e43d
- Rebuild to regenerate requires on java-headless
83e43d
- Resolves: rhbz#1413545
83e43d
884c36
* Wed Jan 14 2015 Michal Srb <msrb@redhat.com> - 1.9-7.13
884c36
- Fix directory ownership
884c36
884c36
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.9-7.12
884c36
- Mass rebuild 2015-01-13
884c36
884c36
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 1.9-7.11
884c36
- Mass rebuild 2015-01-09
884c36
884c36
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.10
884c36
- Migrate requires and build-requires to rh-java-common
884c36
884c36
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.9
884c36
- Mass rebuild 2014-12-15
884c36
884c36
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.8
884c36
- Rebuild for rh-java-common collection
884c36
884c36
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.7
884c36
- Mass rebuild 2014-05-26
884c36
884c36
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.6
884c36
- Mass rebuild 2014-02-19
884c36
884c36
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.5
884c36
- Mass rebuild 2014-02-18
884c36
884c36
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.4
884c36
- Remove requires on java
884c36
884c36
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.3
884c36
- SCL-ize build-requires
884c36
884c36
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.2
884c36
- Rebuild to regenerate auto-requires
884c36
884c36
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-7.1
884c36
- First maven30 software collection build
884c36
884c36
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.9-7
884c36
- Mass rebuild 2013-12-27
884c36
884c36
* Mon Nov 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-6
884c36
- Rebuild for jansi-native changes
884c36
- Resolves: rhbz#1028540
884c36
884c36
* Thu Aug 15 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-5
884c36
- Migrate away from mvn-rpmbuild (#997431)
884c36
884c36
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-4
884c36
- Rebuild to regenerate API documentation
884c36
- Resolves: CVE-2013-1571
884c36
884c36
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-3
884c36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
884c36
884c36
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.9-2
884c36
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
884c36
- Replace maven BuildRequires with maven-local
884c36
884c36
* Tue Oct 09 2012 Marek Goldmann <mgoldman@redhat.com> - 1.9-1
884c36
- Upstream release 1.9, RHBZ#864490
884c36
884c36
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
884c36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
884c36
884c36
* Fri May 04 2012 Tomas Radej <tradej@redhat.com> - 1.6-3
884c36
- Removed maven-license-plugin BR
884c36
884c36
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
884c36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
884c36
884c36
* Thu Aug 25 2011 Marek Goldmann <mgoldman@redhat.com> 1.6-1
884c36
- Upstream release 1.6
884c36
- Spec file cleanup
884c36
884c36
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.5-1
884c36
- Initial packaging