[netty] Enable netty-all.jar artifact

Marek Goldmann goldmann at fedoraproject.org
Mon Jan 13 15:29:08 UTC 2014


commit 88b4870f2a2f88526032d41f6539b12c1513a288
Author: Marek Goldmann <marek.goldmann at gmail.com>
Date:   Mon Jan 13 10:23:14 2014 +0100

    Enable netty-all.jar artifact

 netty.spec |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/netty.spec b/netty.spec
index 96d0943..86a4eb1 100644
--- a/netty.spec
+++ b/netty.spec
@@ -3,7 +3,7 @@
 
 Name:           netty
 Version:        4.0.14
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        An asynchronous event-driven network application framework and tools for Java
 License:        ASL 2.0
 URL:            https://netty.io/
@@ -20,6 +20,9 @@ BuildRequires:  maven-plugin-bundle
 BuildRequires:  maven-resources-plugin
 BuildRequires:  maven-source-plugin
 BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-dependency-plugin
+BuildRequires:  maven-clean-plugin
+BuildRequires:  maven-plugin-jxr
 BuildRequires:  ant-contrib
 BuildRequires:  rxtx
 BuildRequires:  protobuf-java
@@ -53,12 +56,15 @@ Summary:   API documentation for %{name}
 
 # Missing Mavenized rxtx
 %pom_disable_module "transport-rxtx"
+%pom_remove_dep ":netty-transport-rxtx" all
 # Missing com.barchart.udt:barchart-udt-bundle:jar:2.3.0
 %pom_disable_module "transport-udt"
+%pom_remove_dep ":netty-transport-udt" all
+%pom_remove_dep ":netty-build" all
 # Not needed
 %pom_disable_module "example"
+%pom_remove_dep ":netty-example" all
 %pom_disable_module "testsuite"
-%pom_disable_module "all"
 %pom_disable_module "tarball"
 %pom_disable_module "microbench"
 %pom_remove_plugin :maven-checkstyle-plugin
@@ -66,6 +72,10 @@ Summary:   API documentation for %{name}
 %pom_remove_plugin :maven-enforcer-plugin
 %pom_remove_plugin :maven-antrun-plugin
 
+sed -i 's|taskdef|taskdef classpathref="maven.plugin.classpath"|' all/pom.xml
+
+%pom_xpath_inject "pom:plugins/pom:plugin[pom:artifactId = 'maven-antrun-plugin']" '<dependencies><dependency><groupId>ant-contrib</groupId><artifactId>ant-contrib</artifactId><version>1.0b3</version></dependency></dependencies>' all/pom.xml
+
 %build
 %mvn_build -f
 
@@ -79,6 +89,9 @@ Summary:   API documentation for %{name}
 %doc LICENSE.txt NOTICE.txt
 
 %changelog
+* Mon Jan 13 2014 Marek Goldmann <mgoldman at redhat.com> - 4.0.14-3
+- Enable netty-all.jar artifact
+
 * Mon Jan 13 2014 Marek Goldmann <mgoldman at redhat.com> - 4.0.14-2
 - Bump the release, so Obsoletes work properly
 


More information about the scm-commits mailing list