Name: netty Version: 4.1.13 Release: 7 Summary: Asynchronous event-driven network application Java framework License: ASL 2.0 URL: https://netty.io/ Source0: https://github.com/netty/netty/archive/netty-%{version}.Final.tar.gz Source1: codegen.bash Patch0000: 0001-Remove-OpenSSL-parts-depending-on-tcnative.patch Patch0001: 0002-Remove-NPN.patch Patch0002: 0003-Remove-conscrypt-ALPN.patch BuildRequires: maven-local mvn(ant-contrib:ant-contrib) BuildRequires: mvn(com.jcraft:jzlib) mvn(commons-logging:commons-logging) BuildRequires: mvn(kr.motd.maven:os-maven-plugin) mvn(log4j:log4j:1.2.17) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) mvn(org.apache.maven.plugins:maven-remote-resources-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.fusesource.hawtjni:maven-hawtjni-plugin) mvn(org.javassist:javassist) BuildRequires: mvn(org.jctools:jctools-core) mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(com.fasterxml:aalto-xml) mvn(com.github.jponge:lzma-java) BuildRequires: mvn(com.google.protobuf.nano:protobuf-javanano) mvn(com.google.protobuf:protobuf-java) BuildRequires: mvn(com.ning:compress-lzf) mvn(net.jpountz.lz4:lz4) BuildRequires: mvn(org.apache.logging.log4j:log4j-api) mvn(org.bouncycastle:bcpkix-jdk15on) BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling) mvn(org.eclipse.jetty.alpn:alpn-api) %description Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. %package help Summary: Documents for %{name} Buildarch: noarch Requires: man info Provides: %{name}-javadoc = %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release} %description help Man pages and other related documents for %{name}. %prep %autosetup -p1 -n netty-netty-%{version}.Final %pom_disable_module "transport-rxtx" %pom_remove_dep ":netty-transport-rxtx" all %pom_disable_module "transport-udt" %pom_remove_dep ":netty-transport-udt" all %pom_remove_dep ":netty-build" all %pom_disable_module "example" %pom_remove_dep ":netty-example" all %pom_disable_module "testsuite" %pom_disable_module "testsuite-autobahn" %pom_disable_module "testsuite-osgi" %pom_disable_module "tarball" %pom_disable_module "microbench" %pom_xpath_inject 'pom:plugin[pom:artifactId="maven-remote-resources-plugin"]' ' io.netty netty-dev-tools ${project.version} ' %pom_remove_plugin :maven-antrun-plugin %pom_remove_plugin :maven-dependency-plugin %pom_remove_plugin :xml-maven-plugin %pom_remove_plugin -r :maven-checkstyle-plugin %pom_remove_plugin -r :animal-sniffer-maven-plugin %pom_remove_plugin -r :maven-enforcer-plugin %pom_remove_plugin -r :maven-shade-plugin %pom_remove_plugin -r :maven-release-plugin %pom_remove_plugin -r :maven-clean-plugin %pom_remove_plugin -r :maven-source-plugin %pom_remove_plugin -r :maven-deploy-plugin %pom_remove_plugin -r :maven-jxr-plugin %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :forbiddenapis cp %{SOURCE1} common/codegen.bash %pom_add_plugin org.codehaus.mojo:exec-maven-plugin common ' generate-collections generate-sources exec common/codegen.bash ' %pom_remove_plugin :groovy-maven-plugin common sed -i 's|taskdef|taskdef classpathref="maven.plugin.classpath"|' all/pom.xml %pom_xpath_inject "pom:plugins/pom:plugin[pom:artifactId = 'maven-antrun-plugin']" 'ant-contribant-contrib1.0b3' all/pom.xml %pom_xpath_inject "pom:execution[pom:id = 'build-native-lib']/pom:configuration" 'true' transport-native-epoll/pom.xml %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution[pom:id = 'generate-manifest']/pom:configuration/pom:instructions/pom:Import-Package" common/pom.xml %mvn_package ":::linux*:" %mvn_package ':*-tests' __noinstall %build export CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %mvn_build -f %install %mvn_install %files -f .mfiles %doc LICENSE.txt NOTICE.txt %files help -f .mfiles-javadoc %changelog * Mon Dec 23 2019 Shuaishuai Song - 4.1.13-7 - package init