%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: netty4 Version: 4.0.14 Release: 1%{?dist} Summary: An asynchronous event-driven network application framework and tools for Java License: ASL 2.0 URL: https://netty.io/ Source0: https://github.com/netty/netty/archive/netty-%{namedversion}.tar.gz BuildArch: noarch BuildRequires: maven-local BuildRequires: maven-antrun-plugin BuildRequires: maven-assembly-plugin BuildRequires: maven-compiler-plugin BuildRequires: maven-enforcer-plugin BuildRequires: maven-plugin-bundle BuildRequires: maven-resources-plugin BuildRequires: maven-source-plugin BuildRequires: maven-surefire-plugin BuildRequires: ant-contrib BuildRequires: rxtx BuildRequires: protobuf-java BuildRequires: jboss-marshalling %description Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. 'Quick and easy' doesn't mean that a resulting application will suffer from a maintainability or a performance issue. Netty has been designed carefully with the experiences earned from the implementation of a lot of protocols such as FTP, SMTP, HTTP, and various binary and text-based legacy protocols. As a result, Netty has succeeded to find a way to achieve ease of development, performance, stability, and flexibility without a compromise. %package javadoc Summary: API documentation for %{name} %description javadoc %{summary}. %prep %setup -q -n netty-netty-%{namedversion} # Missing Mavenized rxtx %pom_disable_module "transport-rxtx" # Missing com.barchart.udt:barchart-udt-bundle:jar:2.3.0 %pom_disable_module "transport-udt" # Not needed %pom_disable_module "example" %pom_disable_module "testsuite" %pom_disable_module "all" %pom_disable_module "tarball" %pom_disable_module "microbench" %pom_remove_plugin :maven-checkstyle-plugin %pom_remove_plugin :animal-sniffer-maven-plugin %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-antrun-plugin %build %mvn_compat_version : %{version} %{namedversion} 4 %mvn_build -f %install %mvn_install %files -f .mfiles %doc LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Mon Dec 23 2013 Marek Goldmann - 4.0.14-1 - Upstream release 4.0.14.Final * Mon Dec 23 2013 Marek Goldmann - 4.0.13-1 - Initial packaging