jnr-ffi/jnr-ffi.spec
cherry530 7fe6711af1 remove unuse code
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 1583086b1e994c91300bb3a03d56955317aecb52)
2023-03-31 09:32:24 +08:00

50 lines
1.6 KiB
RPMSpec

Name: jnr-ffi
Version: 2.1.8
Release: 2
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
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Tue Nov 29 2022 xu_ping <xuping33@h-partners.com> - 2.1.8-2
- Remove unuse code
* Fri Jul 31 2020 Jeffery.Gao <gaojianxing@huawei.com> - 2.1.8-1
- Package init