diff --git a/jnr-ffi-2.1.8.tar.gz b/jnr-ffi-2.1.8.tar.gz new file mode 100644 index 0000000..285cea7 Binary files /dev/null and b/jnr-ffi-2.1.8.tar.gz differ diff --git a/jnr-ffi.spec b/jnr-ffi.spec new file mode 100644 index 0000000..f26b16c --- /dev/null +++ b/jnr-ffi.spec @@ -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 - 2.1.8-1 +- Package init diff --git a/jnr-ffi.yaml b/jnr-ffi.yaml new file mode 100644 index 0000000..3808766 --- /dev/null +++ b/jnr-ffi.yaml @@ -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: "."