9af454
Name:             hawtjni
9af454
Version:          1.16
9af454
Release:          2%{?dist}
9af454
Summary:          Code generator that produces the JNI code
9af454
# Maven plugin is under ASL 2.0.
9af454
# stdint.h, shipped in JAR as resource, used only with M$ VC++, is under BSD.
9af454
# Everything else is under EPL-1.0
9af454
License:          ASL 2.0 and EPL-1.0 and BSD
9af454
URL:              http://hawtjni.fusesource.org/
9af454
BuildArch:        noarch
9af454
9af454
# That is the maven-release-plugin generated commit, but it's not tagged for some reason
9af454
# https://github.com/fusesource/hawtjni/issues/46
9af454
%global commit    fa1fd5dfdd0a1a5a67b61fa7d7ee7126b300c8f0
9af454
Source0:          https://github.com/fusesource/hawtjni/archive/%{commit}/hawtjni-%{commit}.tar.gz
9af454
9af454
BuildRequires:    maven-local
9af454
BuildRequires:    mvn(commons-cli:commons-cli)
9af454
BuildRequires:    mvn(org.apache.maven:maven-archiver)
9af454
BuildRequires:    mvn(org.apache.maven:maven-artifact)
9af454
BuildRequires:    mvn(org.apache.maven:maven-artifact-manager)
9af454
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
9af454
BuildRequires:    mvn(org.apache.maven:maven-project)
9af454
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
9af454
BuildRequires:    mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
9af454
BuildRequires:    mvn(org.apache.xbean:xbean-finder)
9af454
BuildRequires:    mvn(org.codehaus.plexus:plexus-archiver)
9af454
BuildRequires:    mvn(org.codehaus.plexus:plexus-interpolation)
9af454
BuildRequires:    mvn(org.codehaus.plexus:plexus-io)
9af454
BuildRequires:    mvn(org.codehaus.plexus:plexus-utils)
9af454
BuildRequires:    mvn(org.fusesource:fusesource-pom:pom:)
9af454
BuildRequires:    mvn(org.ow2.asm:asm)
9af454
BuildRequires:    mvn(org.ow2.asm:asm-commons)
9af454
9af454
Requires:         autoconf
9af454
Requires:         automake
9af454
Requires:         libtool
9af454
Requires:         make
9af454
9af454
%description
9af454
HawtJNI is a code generator that produces the JNI code needed to
9af454
implement java native methods. It is based on the jnigen code generator
9af454
that is part of the SWT Tools project which is used to generate all the
9af454
JNI code which powers the eclipse platform.
9af454
9af454
%package javadoc
9af454
Summary:          Javadocs for %{name}
9af454
9af454
%description javadoc
9af454
This package contains the API documentation for %{name}.
9af454
9af454
%package runtime
9af454
Summary:          HawtJNI Runtime
9af454
9af454
%description runtime
9af454
This package provides API that projects using HawtJNI should build
9af454
against.
9af454
9af454
%package -n maven-hawtjni-plugin
9af454
Summary:          Use HawtJNI from a maven plugin
9af454
9af454
%description -n maven-%{name}-plugin
9af454
This package allows to use HawtJNI from a maven plugin.
9af454
9af454
%prep
9af454
%setup -q -n hawtjni-%{commit}
9af454
9af454
%pom_disable_module hawtjni-example
9af454
%pom_remove_plugin -r :maven-shade-plugin
9af454
%pom_remove_plugin -r :maven-eclipse-plugin
9af454
9af454
%mvn_package ":hawtjni-runtime" runtime
9af454
%mvn_package ":hawtjni-maven-plugin" maven-plugin
9af454
9af454
%mvn_alias :hawtjni-maven-plugin :maven-hawtjni-plugin
9af454
9af454
# javadoc generation fails due to strict doclint in JDK 8
9af454
%pom_remove_plugin :maven-javadoc-plugin hawtjni-runtime
9af454
9af454
%build
9af454
%mvn_build
9af454
9af454
%install
9af454
%mvn_install
9af454
9af454
%files runtime -f .mfiles-runtime
9af454
%doc readme.md license.txt changelog.md
9af454
9af454
%files -f .mfiles
9af454
9af454
%files javadoc -f .mfiles-javadoc
9af454
%doc license.txt
9af454
9af454
%files -n maven-hawtjni-plugin -f .mfiles-maven-plugin
9af454
9af454
%changelog
9af454
* Mon Jul  2 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.16-2
9af454
- Update license tag
9af454
9af454
* Mon Feb 26 2018 Michael Simacek <msimacek@redhat.com> - 1.16-1
9af454
- Update to upstream version 1.16
9af454
9af454
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-3
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9af454
9af454
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9af454
9af454
* Wed Jun 14 2017 Michael Simacek <msimacek@redhat.com> - 1.15-1
9af454
- Update to upstream version 1.15
9af454
9af454
* Mon Feb 13 2017 Michael Simacek <msimacek@redhat.com> - 1.10-9
9af454
- Add Requires on make
9af454
9af454
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 1.10-8
9af454
- Regenerate BuildRequires
9af454
9af454
* Wed Feb  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-7
9af454
- Remove unneeded BR on maven-project-info-reports-plugin
9af454
9af454
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-6
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9af454
9af454
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-5
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9af454
9af454
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-4
9af454
- Remove maven-javadoc-plugin execution
9af454
9af454
* Fri Nov 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-3
9af454
- Spit runtime into subpackage
9af454
- Resolves: rhbz#1166607
9af454
9af454
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-2
9af454
- Add requires on autoconf, automake, libtool
9af454
9af454
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-1
9af454
- Update to upstream version 1.10
9af454
9af454
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-5
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9af454
9af454
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-4
9af454
- Migrate BuildRequires from junit4 to junit
9af454
9af454
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-3
9af454
- Remove BuildRequires on maven-surefire-provider-junit4
9af454
9af454
* Thu Mar  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-2
9af454
- Update to ASM4
9af454
- Resolves: rhbz#1073507
9af454
9af454
* Wed Sep 18 2013 Marek Goldmann <mgoldman@redhat.com> - 1.9-1
9af454
- Upstream release 1.9
9af454
- hawtjni: missing barriers in cache initialization, RHBZ#957181
9af454
9af454
* Tue Aug 06 2013 Marek Goldmann <mgoldman@redhat.com> - 1.8-3
9af454
- New guidelines
9af454
9af454
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9af454
9af454
* Tue May 21 2013 Marek Goldmann <mgoldman@redhat.com> - 1.8-1
9af454
- Upstream release 1.8
9af454
9af454
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-5
9af454
- Remove unneeded BR: maven-idea-plugin
9af454
9af454
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9af454
9af454
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.6-3
9af454
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
9af454
- Replace maven BuildRequires with maven-local
9af454
9af454
* Tue Jan 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-2
9af454
- Replace asm2 requires with objectweb-asm
9af454
- Resolves: rhbz#902674
9af454
9af454
* Fri Sep 07 2012 gil cattaneo <puntogil@libero.it> 1.6-1
9af454
- Upstream release 1.6
9af454
9af454
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9af454
9af454
* Wed Apr 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-3
9af454
- Remove eclipse plugin from BuildRequires
9af454
9af454
* Thu Jan 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-2
9af454
- Replace plexus-maven-plugin with plexus-containers implementation
9af454
9af454
* Sun Jan 15 2012 Marek Goldmann <mgoldman@redhat.com> 1.5-1
9af454
- Upstream release 1.5
9af454
9af454
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
9af454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9af454
9af454
* Wed Aug 10 2011 Marek Goldmann <mgoldman@redhat.com> 1.3-1
9af454
- Upstream release 1.3
9af454
9af454
* Fri Jul 29 2011 Marek Goldmann <mgoldman@redhat.com> 1.2-1
9af454
- Upstream release 1.2
9af454
- Moved to new depmap macro
9af454
9af454
* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-4
9af454
- Removed maven-shade-plugin dependency
9af454
9af454
* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-3
9af454
- Split maven-hawtjni-plugin into new package
9af454
- Fixed license
9af454
- Fixed summary
9af454
- Using xz to compress source code
9af454
9af454
* Sun May 29 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
9af454
- Added maven-hawtjni-plugin
9af454
9af454
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
9af454
- Initial packaging