|
 |
a62d33 |
%{?scl:%scl_package jnr-ffi}
|
|
 |
a62d33 |
%{!?scl:%global pkg_name %{name}}
|
|
 |
a62d33 |
%{?java_common_find_provides_and_requires}
|
|
 |
a62d33 |
|
|
 |
a62d33 |
Name: %{?scl_prefix}jnr-ffi
|
|
 |
a62d33 |
Version: 2.0.3
|
|
 |
a62d33 |
Release: 4.2%{?dist}
|
|
 |
a62d33 |
Summary: Java Abstracted Foreign Function Layer
|
|
 |
a62d33 |
License: ASL 2.0
|
|
 |
a62d33 |
URL: http://github.com/jnr/%{pkg_name}/
|
|
 |
a62d33 |
Source0: https://github.com/jnr/%{pkg_name}/archive/%{version}.tar.gz
|
|
 |
a62d33 |
Source1: MANIFEST.MF
|
|
 |
a62d33 |
Patch0: add-manifest.patch
|
|
 |
a62d33 |
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix}mvn(com.github.jnr:jffi)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix}mvn(com.github.jnr:jffi::native:)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix}mvn(com.github.jnr:jnr-x86asm)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-release-plugin)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(org.ow2.asm:asm:5)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(org.ow2.asm:asm-analysis:5)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(org.ow2.asm:asm-commons:5)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(org.ow2.asm:asm-tree:5)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_java_common}mvn(org.ow2.asm:asm-util:5)
|
|
 |
a62d33 |
BuildRequires: %{?scl_prefix_maven}sonatype-oss-parent
|
|
 |
a62d33 |
|
|
 |
a62d33 |
|
|
 |
a62d33 |
BuildArch: noarch
|
|
 |
a62d33 |
|
|
 |
a62d33 |
# don't obsolete/provide jaffl, gradle is using both jaffl and jnr-ffi...
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%description
|
|
 |
a62d33 |
An abstracted interface to invoking native functions from java
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%package javadoc
|
|
 |
a62d33 |
Summary: Javadocs for %{pkg_name}
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%description javadoc
|
|
 |
a62d33 |
This package contains the API documentation for %{pkg_name}.
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%prep
|
|
 |
a62d33 |
%setup -q -n %{pkg_name}-%{version}
|
|
 |
a62d33 |
cp %{SOURCE1} .
|
|
 |
a62d33 |
sed -i -e's/@VERSION/%{version}/g' MANIFEST.MF
|
|
 |
a62d33 |
%patch0
|
|
 |
a62d33 |
|
|
 |
a62d33 |
# remove all builtin jars
|
|
 |
a62d33 |
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
|
|
 |
a62d33 |
|
|
 |
a62d33 |
# don't fail on unused parameters... (TODO: send patch upstream)
|
|
 |
a62d33 |
sed -i 's|-Werror||' libtest/GNUmakefile
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
a62d33 |
%mvn_file :{*} %{pkg_name}/@1 @1
|
|
 |
a62d33 |
%{?scl:EOF}
|
|
 |
a62d33 |
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%build
|
|
 |
a62d33 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
a62d33 |
%mvn_build -f
|
|
 |
a62d33 |
%{?scl:EOF}
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%install
|
|
 |
a62d33 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
a62d33 |
%mvn_install
|
|
 |
a62d33 |
%{?scl:EOF}
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%files -f .mfiles
|
|
 |
a62d33 |
%dir %{_javadir}/%{pkg_name}
|
|
 |
a62d33 |
%dir %{_mavenpomdir}/%{pkg_name}
|
|
 |
a62d33 |
%doc LICENSE
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%files javadoc -f .mfiles-javadoc
|
|
 |
a62d33 |
%doc LICENSE
|
|
 |
a62d33 |
|
|
 |
a62d33 |
%changelog
|
|
 |
a62d33 |
* Thu Aug 20 2015 Mat Booth <mat.booth@redhat.com> - 2.0.3-4.2
|
|
 |
a62d33 |
- Fix unowned directories
|
|
 |
a62d33 |
|
|
 |
a62d33 |
* Thu Jul 30 2015 Roland Grunberg <rgrunber@redhat.com> - 2.0.3-4.1
|
|
 |
a62d33 |
- Add missing Import-Package statements to manifest.
|
|
 |
a62d33 |
|
|
 |
a62d33 |
* Wed Jul 1 2015 akurtakov <akurtakov@localhost.localdomain> 2.0.3-2.1
|
|
 |
a62d33 |
- BR compat asm 5.x.
|
|
 |
a62d33 |
|
|
 |
a62d33 |
* Mon Jun 29 2015 Jeff Johnston <jjohnstn@redhat.com> - 2.0.3-2
|
|
 |
a62d33 |
- SCL-ize package.
|
|
 |
a62d33 |
|
|
 |
a62d33 |
* Mon Jun 29 2015 Jeff Johnston <jjohnstn@redhat.com> - 2.0.3-1
|
|
 |
a62d33 |
- Initial import from rawhide.
|