Blame SPECS/hawtjni.spec

c6cb01
%global pkg_name hawtjni
c6cb01
%{?scl:%scl_package %{pkg_name}}
c6cb01
%{?java_common_find_provides_and_requires}
c6cb01
c6cb01
Name:             %{?scl_prefix}%{pkg_name}
c6cb01
Version:          1.6
c6cb01
Release:          9.12%{?dist}
c6cb01
Summary:          Code generator that produces the JNI code
c6cb01
License:          ASL 2.0 and EPL and BSD
c6cb01
URL:              http://hawtjni.fusesource.org/
c6cb01
BuildArch:        noarch
c6cb01
c6cb01
# git clone git://github.com/fusesource/hawtjni.git
c6cb01
# cd hawtjni && git archive --format=tar --prefix=hawtjni-1.6/ hawtjni-project-1.6 | xz > hawtjni-1.6.tar.xz
c6cb01
Source0:          %{pkg_name}-%{version}.tar.xz
c6cb01
Patch0:           0001-Fix-shading-and-remove-unneeded-modules.patch
c6cb01
Patch1:           0002-Fix-xbean-compatibility.patch
c6cb01
Patch2:           0003-Remove-plexus-maven-plugin-dependency.patch
c6cb01
Patch3:           0004-Remove-eclipse-plugin.patch
c6cb01
# From upstream commit d9cd0ab
c6cb01
Patch4:           0005-Should-fix-issue-7.-We-now-do-a-write-barrier-before.patch
c6cb01
# From upstream commit 92c2661
c6cb01
Patch5:           0006-Simplify-shared-lib-extraction.patch
c6cb01
c6cb01
BuildRequires:    %{?scl_prefix}maven-local
c6cb01
BuildRequires:    %{?scl_prefix_maven}maven-plugin-plugin
c6cb01
BuildRequires:    %{?scl_prefix_maven}maven-surefire-report-plugin
c6cb01
BuildRequires:    %{?scl_prefix_maven}maven-project-info-reports-plugin
c6cb01
BuildRequires:    %{?scl_prefix_maven}maven-plugin-jxr
c6cb01
BuildRequires:    %{?scl_prefix_maven}plexus-containers-component-metadata
c6cb01
BuildRequires:    %{?scl_prefix}log4j
c6cb01
BuildRequires:    %{?scl_prefix_maven}fusesource-pom
c6cb01
BuildRequires:    %{?scl_prefix_maven}felix-parent
c6cb01
BuildRequires:    %{?scl_prefix}xbean
c6cb01
c6cb01
%description
c6cb01
HawtJNI is a code generator that produces the JNI code needed to
c6cb01
implement java native methods. It is based on the jnigen code generator
c6cb01
that is part of the SWT Tools project which is used to generate all the
c6cb01
JNI code which powers the eclipse platform.
c6cb01
c6cb01
%package javadoc
c6cb01
Summary:          Javadocs for %{pkg_name}
c6cb01
c6cb01
%description javadoc
c6cb01
This package contains the API documentation for %{pkg_name}.
c6cb01
c6cb01
%package -n %{?scl_prefix}maven-%{pkg_name}-plugin
c6cb01
Summary:          Use HawtJNI from a maven plugin
c6cb01
c6cb01
%description -n %{?scl_prefix}maven-%{pkg_name}-plugin
c6cb01
This package allows to use HawtJNI from a maven plugin.
c6cb01
c6cb01
%prep
c6cb01
%setup -q -n %{pkg_name}-%{version}
c6cb01
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
c6cb01
set -e -x
c6cb01
%patch0 -p1
c6cb01
%patch1 -p1
c6cb01
%patch2 -p1
c6cb01
%patch3 -p1
c6cb01
%patch4 -p1
c6cb01
%patch5 -p1
c6cb01
%mvn_file ":{*}" @1
c6cb01
%mvn_package ":*{plugin}" @1
c6cb01
%{?scl:EOF}
c6cb01
c6cb01
%build
c6cb01
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
c6cb01
set -e -x
c6cb01
%mvn_build
c6cb01
%{?scl:EOF}
c6cb01
c6cb01
%install
c6cb01
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
c6cb01
set -e -x
c6cb01
%mvn_install
c6cb01
%{?scl:EOF}
c6cb01
c6cb01
%files -f .mfiles
c6cb01
%doc readme.md license.txt changelog.md
c6cb01
c6cb01
%files javadoc -f .mfiles-javadoc
c6cb01
%doc license.txt
c6cb01
c6cb01
%files -n %{?scl_prefix}maven-%{pkg_name}-plugin -f .mfiles-plugin
c6cb01
%doc license.txt
c6cb01
c6cb01
%changelog
c6cb01
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.6-9.12
c6cb01
- Mass rebuild 2015-01-13
c6cb01
c6cb01
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 1.6-9.11
c6cb01
- Rebuild to regenerate requires
c6cb01
c6cb01
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 1.6-9.10
c6cb01
- Mass rebuild 2015-01-09
c6cb01
c6cb01
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.9
c6cb01
- Migrate requires and build-requires to rh-java-common
c6cb01
c6cb01
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.8
c6cb01
- Mass rebuild 2014-12-15
c6cb01
c6cb01
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.7
c6cb01
- Rebuild for rh-java-common collection
c6cb01
c6cb01
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.6
c6cb01
- Mass rebuild 2014-05-26
c6cb01
c6cb01
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.5
c6cb01
- Mass rebuild 2014-02-19
c6cb01
c6cb01
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.4
c6cb01
- Mass rebuild 2014-02-18
c6cb01
c6cb01
* Fri Feb 14 2014 Michael Simacek <msimacek@redhat.com> - 1.6-9.3
c6cb01
- SCL-ize maven-plugin subpackage
c6cb01
c6cb01
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.2
c6cb01
- Rebuild to regenerate auto-requires
c6cb01
c6cb01
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-9.1
c6cb01
- First maven30 software collection build
c6cb01
c6cb01
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.6-9
c6cb01
- Mass rebuild 2013-12-27
c6cb01
c6cb01
* Wed Sep 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-8
c6cb01
- Add missing barriers in cache initialization
c6cb01
- Simplify shared lib extraction, resolves: CVE-2013-2035
c6cb01
c6cb01
* Tue Aug 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-7
c6cb01
- Migrate away from mvn-rpmbuild
c6cb01
c6cb01
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-6
c6cb01
- Rebuild to regenerate API documentation
c6cb01
- Resolves: CVE-2013-1571
c6cb01
c6cb01
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-5
c6cb01
- Remove unneeded BR: maven-idea-plugin
c6cb01
c6cb01
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
c6cb01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c6cb01
c6cb01
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.6-3
c6cb01
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
c6cb01
- Replace maven BuildRequires with maven-local
c6cb01
c6cb01
* Tue Jan 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-2
c6cb01
- Replace asm2 requires with objectweb-asm
c6cb01
- Resolves: rhbz#902674
c6cb01
c6cb01
* Fri Sep 07 2012 gil cattaneo <puntogil@libero.it> 1.6-1
c6cb01
- Upstream release 1.6
c6cb01
c6cb01
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
c6cb01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c6cb01
c6cb01
* Wed Apr 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-3
c6cb01
- Remove eclipse plugin from BuildRequires
c6cb01
c6cb01
* Thu Jan 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-2
c6cb01
- Replace plexus-maven-plugin with plexus-containers implementation
c6cb01
c6cb01
* Sun Jan 15 2012 Marek Goldmann <mgoldman@redhat.com> 1.5-1
c6cb01
- Upstream release 1.5
c6cb01
c6cb01
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
c6cb01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c6cb01
c6cb01
* Wed Aug 10 2011 Marek Goldmann <mgoldman@redhat.com> 1.3-1
c6cb01
- Upstream release 1.3
c6cb01
c6cb01
* Fri Jul 29 2011 Marek Goldmann <mgoldman@redhat.com> 1.2-1
c6cb01
- Upstream release 1.2
c6cb01
- Moved to new depmap macro
c6cb01
c6cb01
* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-4
c6cb01
- Removed maven-shade-plugin dependency
c6cb01
c6cb01
* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-3
c6cb01
- Split maven-hawtjni-plugin into new package
c6cb01
- Fixed license
c6cb01
- Fixed summary
c6cb01
- Using xz to compress source code
c6cb01
c6cb01
* Sun May 29 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
c6cb01
- Added maven-hawtjni-plugin
c6cb01
c6cb01
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
c6cb01
- Initial packaging