Packege init
This commit is contained in:
parent
b124868c2a
commit
6966defa04
BIN
jnr-unixsocket-0.21.tar.gz
Normal file
BIN
jnr-unixsocket-0.21.tar.gz
Normal file
Binary file not shown.
51
jnr-unixsocket.spec
Normal file
51
jnr-unixsocket.spec
Normal file
@ -0,0 +1,51 @@
|
||||
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
|
||||
5
jnr-unixsocket.yaml
Normal file
5
jnr-unixsocket.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/jnr/jnr-unixsocket
|
||||
version_control: github
|
||||
src_repo: jnr/jnr-unixsocket
|
||||
tag_prefix: "jnr-unixsocket-"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user