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