Package init
This commit is contained in:
parent
637056a445
commit
51ba815f20
BIN
jnr-ffi-2.1.8.tar.gz
Normal file
BIN
jnr-ffi-2.1.8.tar.gz
Normal file
Binary file not shown.
50
jnr-ffi.spec
Normal file
50
jnr-ffi.spec
Normal file
@ -0,0 +1,50 @@
|
||||
Name: jnr-ffi
|
||||
Version: 2.1.8
|
||||
Release: 1
|
||||
Summary: Java Abstracted Foreign Function Layer
|
||||
License: Apache-2.0
|
||||
URL: http://github.com/jnr/%{name}/
|
||||
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
BuildRequires: fdupes gcc make maven-local mvn(com.github.jnr:jffi)
|
||||
BuildRequires: mvn(com.github.jnr:jffi::native:) mvn(com.github.jnr:jnr-x86asm)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) mvn(org.ow2.asm:asm)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-analysis) mvn(org.ow2.asm:asm-commons)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-tree) mvn(org.ow2.asm:asm-util)
|
||||
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
An abstracted interface to invoking native functions from java
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadocs for %{name}
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
|
||||
%pom_remove_plugin ":maven-javadoc-plugin"
|
||||
sed -i 's|-Werror||' libtest/GNUmakefile
|
||||
|
||||
%build
|
||||
%{mvn_build} -f -- \
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||
-Dmaven.compiler.release=6 \
|
||||
%endif
|
||||
-Dasm.version=7.0
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2020 Jeffery.Gao <gaojianxing@huawei.com> - 2.1.8-1
|
||||
- Package init
|
||||
5
jnr-ffi.yaml
Normal file
5
jnr-ffi.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/jnr/jnr-ffi
|
||||
version_control: github
|
||||
src_repo: jnr/jnr-ffi
|
||||
tag_prefix: "jnr-ffi-"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user