52 lines
1.6 KiB
RPMSpec
52 lines
1.6 KiB
RPMSpec
Name: jnr-unixsocket
|
|
Version: 0.21
|
|
Release: 1
|
|
Summary: Unix sockets for Java
|
|
License: ASL 2.0
|
|
URL: https://github.com/jnr/jnr-unixsocket
|
|
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(com.github.jnr:jnr-constants) mvn(com.github.jnr:jnr-enxio)
|
|
BuildRequires: mvn(com.github.jnr:jnr-ffi) mvn(com.github.jnr:jnr-posix) mvn(junit:junit)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
%description
|
|
Unix sockets for 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' -delete
|
|
find ./ -name '*.class' -delete
|
|
%pom_xpath_remove pom:build/pom:extensions
|
|
%pom_remove_plugin :maven-checkstyle-plugin
|
|
%pom_remove_plugin :findbugs-maven-plugin
|
|
%pom_remove_plugin :maven-pmd-plugin
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin :maven-assembly-plugin
|
|
%pom_remove_plugin :exec-maven-plugin
|
|
rm -r src/main/java/jnr/enxio
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions"
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc README.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Fri Jul 31 2020 Jeffery.Gao <gaojianxing@huawei.com> - 0.21-1
|
|
- Package init
|