diff --git a/jnr-unixsocket-0.21.tar.gz b/jnr-unixsocket-0.21.tar.gz new file mode 100644 index 0000000..7d63a1a Binary files /dev/null and b/jnr-unixsocket-0.21.tar.gz differ diff --git a/jnr-unixsocket.spec b/jnr-unixsocket.spec new file mode 100644 index 0000000..9da055d --- /dev/null +++ b/jnr-unixsocket.spec @@ -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 - 0.21-1 +- Package init diff --git a/jnr-unixsocket.yaml b/jnr-unixsocket.yaml new file mode 100644 index 0000000..013312a --- /dev/null +++ b/jnr-unixsocket.yaml @@ -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: "."