44 lines
1.3 KiB
RPMSpec
44 lines
1.3 KiB
RPMSpec
Name: jnr-posix
|
|
Version: 3.0.47
|
|
Release: 1
|
|
Summary: Java Posix layer
|
|
License: CPL or GPLv2+ or LGPLv2+
|
|
URL: http://github.com/jnr/jnr-posix
|
|
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
|
|
BuildRequires: maven-local mvn(com.github.jnr:jnr-constants) mvn(com.github.jnr:jnr-ffi)
|
|
BuildRequires: mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildArch: noarch
|
|
%description
|
|
jnr-posix is a lightweight cross-platform POSIX emulation layer for Java,
|
|
written in Java and is part of the JNR project
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
Javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
sed -i 's|"nogroup"|"root"|' src/test/java/jnr/posix/GroupTest.java
|
|
%pom_xpath_remove "pom:build/pom:extensions"
|
|
%pom_remove_plugin ":maven-javadoc-plugin"
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
* Fri Jul 31 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.0.47-1
|
|
- Package init
|