Marek Goldmann 490ea97
%global namedreltag .Final
Marek Goldmann 490ea97
%global namedversion %{version}%{?namedreltag}
Marek Goldmann 490ea97
Marek Goldmann 490ea97
Name:           netty3
dd79a02
Version:        3.10.6
4b94f3b
Release:        2%{?dist}
Marek Goldmann 490ea97
Summary:        An asynchronous event-driven network application framework and tools for Java
dd79a02
# CC0: src/main/java/org/jboss/netty/handler/codec/base64/Base64.java
dd79a02
License:        ASL 2.0 and BSD and CC0
41c6340
URL:            http://netty.io/
dd79a02
Source0:        https://github.com/netty/netty/archive/netty-%{namedversion}.tar.gz
dd79a02
dd79a02
Patch0:         netty-3.10.6-port-to-jzlib-1.1.0.patch
34f444d
Patch1:         disableNPN.patch
Marek Goldmann 490ea97
Marek Goldmann 490ea97
BuildArch:      noarch
Marek Goldmann 490ea97
41c6340
BuildRequires:  maven-local
41c6340
BuildRequires:  mvn(ant-contrib:ant-contrib)
41c6340
BuildRequires:  mvn(com.google.protobuf:protobuf-java)
41c6340
BuildRequires:  mvn(com.jcraft:jzlib)
41c6340
BuildRequires:  mvn(commons-logging:commons-logging)
41c6340
BuildRequires:  mvn(io.netty:netty-tcnative)
41c6340
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
41c6340
BuildRequires:  mvn(log4j:log4j:12)
41c6340
BuildRequires:  mvn(org.apache.ant:ant)
41c6340
BuildRequires:  mvn(org.apache.ant:ant-launcher)
41c6340
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
41c6340
BuildRequires:  mvn(org.apache.felix:org.osgi.compendium)
41c6340
BuildRequires:  mvn(org.apache.felix:org.osgi.core)
41c6340
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
41c6340
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
41c6340
BuildRequires:  mvn(org.apache.maven.plugins:maven-resources-plugin)
41c6340
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
41c6340
BuildRequires:  mvn(org.jboss.logging:jboss-logging)
41c6340
BuildRequires:  mvn(org.jboss.marshalling:jboss-marshalling)
41c6340
BuildRequires:  mvn(org.slf4j:slf4j-api)
41c6340
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
Marek Goldmann 490ea97
dd79a02
Requires:       netty-tcnative
dd79a02
# src/main/java/org/jboss/netty/handler/codec/base64/Base64.java (unkown version)
dd79a02
Provides:       bundled(java-base64)
34f444d
Marek Goldmann 490ea97
%description
Marek Goldmann 490ea97
Netty is a NIO client server framework which enables quick and easy
Marek Goldmann 490ea97
development of network applications such as protocol servers and
Marek Goldmann 490ea97
clients. It greatly simplifies and streamlines network programming
Marek Goldmann 490ea97
such as TCP and UDP socket server.
Marek Goldmann 490ea97
Marek Goldmann 490ea97
'Quick and easy' doesn't mean that a resulting application will suffer
Marek Goldmann 490ea97
from a maintainability or a performance issue. Netty has been designed
Marek Goldmann 490ea97
carefully with the experiences earned from the implementation of a lot
Marek Goldmann 490ea97
of protocols such as FTP, SMTP, HTTP, and various binary and
Marek Goldmann 490ea97
text-based legacy protocols. As a result, Netty has succeeded to find
Marek Goldmann 490ea97
a way to achieve ease of development, performance, stability, and
Marek Goldmann 490ea97
flexibility without a compromise.
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%package javadoc
Marek Goldmann 490ea97
Summary:   API documentation for %{name}
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%description javadoc
Marek Goldmann 490ea97
%{summary}.
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%prep
dd79a02
%setup -q -n netty-netty-%{namedversion}
dd79a02
Marek Goldmann 490ea97
# just to be sure, but not used anyway
Marek Goldmann 490ea97
rm -rf jar doc license
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%pom_remove_plugin :maven-jxr-plugin
Marek Goldmann 490ea97
%pom_remove_plugin :maven-checkstyle-plugin
Marek Goldmann 490ea97
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
Marek Goldmann 490ea97
%pom_remove_dep javax.activation:activation
Marek Goldmann 490ea97
%pom_remove_plugin :animal-sniffer-maven-plugin
34f444d
%pom_remove_dep :npn-api
34f444d
%pom_xpath_remove "pom:extension[pom:artifactId[text()='os-maven-plugin']]"
Marek Goldmann 490ea97
%pom_xpath_remove "pom:execution[pom:id[text()='remove-examples']]"
Marek Goldmann 490ea97
%pom_xpath_remove "pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration"
34f444d
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='netty-tcnative']]/pom:classifier"
dd79a02
#%% pom_xpath_remove "pom:dependency[pom:artifactId[text()='netty-tcnative']]/pom:scope"
Marek Goldmann 490ea97
# Set scope of optional compile dependencies to 'provided'
dd79a02
%pom_xpath_set "pom:dependency[pom:scope[text()='compile'] and pom:optional[text()='true']]/pom:scope" provided
Marek Goldmann 490ea97
41c6340
# Force use servlet 3.1 apis
41c6340
%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0
41c6340
41c6340
%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 12
41c6340
41c6340
# Uneeded tasks
41c6340
%pom_remove_plugin :maven-assembly-plugin
41c6340
%pom_remove_plugin :maven-source-plugin
41c6340
# Unavailable plugin
41c6340
%pom_remove_plugin kr.motd.maven:exec-maven-plugin
41c6340
# Fix javadoc doclint
41c6340
%pom_remove_plugin :maven-javadoc-plugin
41c6340
Marek Goldmann 490ea97
sed s/jboss-logging-spi/jboss-logging/ -i pom.xml
Marek Goldmann 490ea97
Marek Goldmann 490ea97
# Remove bundled jzlib and use system jzlib
dd79a02
rm -r src/main/java/org/jboss/netty/util/internal/jzlib
Marek Goldmann 490ea97
%pom_add_dep com.jcraft:jzlib
Marek Goldmann 490ea97
sed -i s/org.jboss.netty.util.internal.jzlib/com.jcraft.jzlib/ \
Marek Goldmann 490ea97
    $(find src/main/java/org/jboss/netty/handler/codec -name \*.java | sort -u)
Marek Goldmann 490ea97
%patch0 -p1
34f444d
%patch1 -p1
34f444d
dd79a02
# adapting to excluded dep
dd79a02
rm -v src/main/java/org/jboss/netty/handler/ssl/JettyNpnSslEngine.java
Marek Goldmann 490ea97
dd79a02
%mvn_compat_version : %{version} 3.9.3 %{namedversion} 3.9.3.Final 3
Marek Goldmann 490ea97
%mvn_alias : org.jboss.netty:
Marek Goldmann 490ea97
%mvn_file  : %{name}
41c6340
41c6340
%build
41c6340
Marek Goldmann 490ea97
# skipping tests because we don't have easymockclassextension
Marek Goldmann 490ea97
%mvn_build -f
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%install
Marek Goldmann 490ea97
%mvn_install
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%files -f .mfiles
41c6340
%doc README.md
41c6340
%license LICENSE.txt NOTICE.txt
Marek Goldmann 490ea97
Marek Goldmann 490ea97
%files javadoc -f .mfiles-javadoc
41c6340
%license LICENSE.txt NOTICE.txt
34f444d
 
Marek Goldmann 490ea97
%changelog
4b94f3b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.6-2
4b94f3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b94f3b
dd79a02
* Thu Nov 03 2016 gil cattaneo <puntogil@libero.it> 3.10.6-1
dd79a02
- update to 3.10.6.Final
dd79a02
3e7edae
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.3-4
3e7edae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3e7edae
41c6340
* Sat Aug 08 2015 gil cattaneo <puntogil@libero.it> 3.9.3-3
41c6340
- fix FTBFS rhbz#1239716
41c6340
- fix URL field
41c6340
- fix BR list and use BR mvn()-like
41c6340
- switch to glassfish-servlet-api
41c6340
- force log4j12
41c6340
- remove duplicate files
41c6340
- fix some rpmlint problem
41c6340
- introduce license macro
41c6340
7bf36ee
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.3-2
7bf36ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7bf36ee
Marek Goldmann dedc316
* Thu Feb 12 2015 Marek Goldmann <mgoldman@redhat.com> - 3.9.3-1
Marek Goldmann dedc316
- Rebuild to fix the release
Marek Goldmann dedc316
34f444d
* Thu Feb 12 2015 Jiri Vanek <jvanek@redhat.com> - 3.9.3-0
34f444d
- Updated to netty 3.9.3
34f444d
- uploaded sources netty-3.10.0.Final-dist.tar.bz2 and netty-3.9.3.Final-dist.tar.bz2
34f444d
- added and applied patch1, disableNPN.patch
34f444d
- modified patch0 netty-port-to-jzlib-1.1.0.patch
34f444d
- release reset to 0
34f444d
- added build requires java-devel and bouncycastle-pkix
34f444d
- xpathed out npn-api and os-maven-plugin
34f444d
- xpathed out from netty-tcnative  classifier and scope
34f444d
- from sources removed JettyNpnSslEngine.java
34f444d
00ae0cc
* Tue Jun 10 2014 Michal Srb <msrb@redhat.com> - 3.6.6-4
00ae0cc
- Rebuilt to fix provides
00ae0cc
8f9dba5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6-3
8f9dba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8f9dba5
6bbc2d7
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.6.6-2
6bbc2d7
- Use Requires: java-headless rebuild (#1067528)
6bbc2d7
Marek Goldmann 490ea97
* Mon Dec 30 2013 Marek Goldmann <mgoldman@redhat.com> - 3.6.6-1
Marek Goldmann 490ea97
- Initial packaging of compat version 3 as a compat package
Marek Goldmann 490ea97