|
 |
b2616e |
%{?scl:%scl_package netty}
|
|
 |
b2616e |
%{!?scl:%global pkg_name %{name}}
|
|
 |
b2616e |
|
|
 |
d6b19f |
# Use java common's requires/provides generator
|
|
 |
d6b19f |
%{?java_common_find_provides_and_requires}
|
|
 |
d6b19f |
|
|
 |
b2616e |
# Exclude generation of osgi() style provides, since they are not
|
|
 |
b2616e |
# SCL-namespaced and may conflict with base RHEL packages.
|
|
 |
b2616e |
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1045449
|
|
 |
b2616e |
%global __provides_exclude ^osgi(.*)$
|
|
 |
b2616e |
|
|
 |
b2616e |
Name: %{?scl_prefix}netty
|
|
 |
b2616e |
Version: 3.6.3
|
|
 |
c028ee |
# Release should be higher than el6 builds. Use convention
|
|
 |
c028ee |
# 60.X where X is an increasing int. 60 for rhel-6. We use
|
|
 |
c028ee |
# 70.X for rhel-7. For some reason we cannot rely on the
|
|
 |
c028ee |
# dist tag.
|
|
 |
a49598 |
Release: 70.5%{?dist}
|
|
 |
b2616e |
Summary: An asynchronous event-driven network application framework and tools for Java
|
|
 |
b2616e |
|
|
 |
b2616e |
Group: Development/Libraries
|
|
 |
b2616e |
License: ASL 2.0
|
|
 |
b2616e |
URL: https://netty.io/
|
|
 |
b2616e |
Source0: http://%{pkg_name}.googlecode.com/files/%{pkg_name}-%{version}.Final-dist.tar.bz2
|
|
 |
b2616e |
Patch0: %{pkg_name}-port-to-jzlib-1.1.0.patch
|
|
 |
b2616e |
Patch1: %{pkg_name}-fix-marshaller-logger.patch
|
|
 |
b2616e |
|
|
 |
b2616e |
BuildArch: noarch
|
|
 |
b2616e |
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-antrun-plugin
|
|
 |
d6b19f |
# maven-antrun-plugin has ant-contrib as dependency, but fails
|
|
 |
d6b19f |
# to have this BR for it. We work around it by requiring it
|
|
 |
d6b19f |
# manually.
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}ant-contrib
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-assembly-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-compiler-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-enforcer-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-javadoc-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-resources-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-source-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}maven-surefire-plugin
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_java_common}ant
|
|
 |
d6b19f |
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}felix-osgi-compendium
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}felix-osgi-core
|
|
 |
b2616e |
BuildRequires: %{?scl_prefix}protobuf-java
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_java_common}slf4j
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_maven}sonatype-oss-parent
|
|
 |
d6b19f |
BuildRequires: %{?scl_prefix_java_common}tomcat-servlet-3.0-api
|
|
 |
b2616e |
%{?scl:Requires: %scl_runtime}
|
|
 |
b2616e |
|
|
 |
b2616e |
%description
|
|
 |
b2616e |
Netty is a NIO client server framework which enables quick and easy
|
|
 |
b2616e |
development of network applications such as protocol servers and
|
|
 |
b2616e |
clients. It greatly simplifies and streamlines network programming
|
|
 |
b2616e |
such as TCP and UDP socket server.
|
|
 |
b2616e |
|
|
 |
b2616e |
'Quick and easy' doesn't mean that a resulting application will suffer
|
|
 |
b2616e |
from a maintainability or a performance issue. Netty has been designed
|
|
 |
b2616e |
carefully with the experiences earned from the implementation of a lot
|
|
 |
b2616e |
of protocols such as FTP, SMTP, HTTP, and various binary and
|
|
 |
b2616e |
text-based legacy protocols. As a result, Netty has succeeded to find
|
|
 |
b2616e |
a way to achieve ease of development, performance, stability, and
|
|
 |
b2616e |
flexibility without a compromise.
|
|
 |
b2616e |
|
|
 |
b2616e |
|
|
 |
b2616e |
%package javadoc
|
|
 |
b2616e |
Summary: API documentation for %{name}
|
|
 |
b2616e |
Group: Documentation
|
|
 |
c028ee |
%{?scl:Requires: %scl_runtime}
|
|
 |
b2616e |
|
|
 |
b2616e |
%description javadoc
|
|
 |
b2616e |
%{summary}.
|
|
 |
b2616e |
|
|
 |
b2616e |
%prep
|
|
 |
d6b19f |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
b2616e |
%setup -q -n %{pkg_name}-%{version}.Final
|
|
 |
b2616e |
# just to be sure, but not used anyway
|
|
 |
b2616e |
rm -rf jar doc license
|
|
 |
b2616e |
|
|
 |
b2616e |
%pom_remove_plugin :maven-jxr-plugin
|
|
 |
b2616e |
%pom_remove_plugin :maven-checkstyle-plugin
|
|
 |
b2616e |
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
|
|
 |
b2616e |
%pom_remove_dep javax.activation:activation
|
|
 |
b2616e |
|
|
 |
b2616e |
# Remove optional deps
|
|
 |
b2616e |
%pom_remove_dep org.jboss.logging:jboss-logging-spi
|
|
 |
b2616e |
%pom_remove_dep org.jboss.marshalling:jboss-marshalling
|
|
 |
b2616e |
|
|
 |
b2616e |
%pom_remove_plugin :animal-sniffer-maven-plugin
|
|
 |
b2616e |
%pom_xpath_remove "pom:execution[pom:id[text()='remove-examples']]"
|
|
 |
b2616e |
%pom_xpath_remove "pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration"
|
|
 |
b2616e |
# Set scope of optional compile dependencies to 'provided'
|
|
 |
b2616e |
%pom_xpath_set "pom:dependency[pom:scope[text()='compile']
|
|
 |
b2616e |
and pom:optional[text()='true']]/pom:scope" provided
|
|
 |
b2616e |
|
|
 |
b2616e |
# Remove bundled jzlib and use system jzlib
|
|
 |
b2616e |
rm -rf src/main/java/org/jboss/netty/util/internal/jzlib
|
|
 |
b2616e |
%pom_add_dep com.jcraft:jzlib
|
|
 |
b2616e |
sed -i s/org.jboss.netty.util.internal.jzlib/com.jcraft.jzlib/ \
|
|
 |
b2616e |
$(find src/main/java/org/jboss/netty/handler/codec -name \*.java | sort -u)
|
|
 |
b2616e |
%patch0 -p1
|
|
 |
b2616e |
%patch1 -p1
|
|
 |
b2616e |
%{?scl:EOF}
|
|
 |
b2616e |
|
|
 |
b2616e |
%build
|
|
 |
d6b19f |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
b2616e |
%mvn_alias : org.jboss.netty:
|
|
 |
b2616e |
%mvn_file : %{pkg_name}
|
|
 |
b2616e |
# skipping tests because we don't have easymockclassextension
|
|
 |
b2616e |
%mvn_build -f
|
|
 |
b2616e |
%{?scl:EOF}
|
|
 |
b2616e |
|
|
 |
b2616e |
%install
|
|
 |
d6b19f |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
b2616e |
%mvn_install
|
|
 |
b2616e |
%{?scl:EOF}
|
|
 |
b2616e |
|
|
 |
b2616e |
%files -f .mfiles
|
|
 |
b2616e |
%doc LICENSE.txt NOTICE.txt
|
|
 |
b2616e |
|
|
 |
b2616e |
%files javadoc -f .mfiles-javadoc
|
|
 |
b2616e |
%doc LICENSE.txt NOTICE.txt
|
|
 |
b2616e |
|
|
 |
b2616e |
%changelog
|
|
 |
a49598 |
* Wed Jan 27 2016 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-70.5
|
|
 |
a49598 |
- Rebuild for RHSCL 2.2.
|
|
 |
a49598 |
|
|
 |
d6b19f |
* Mon Jan 19 2015 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-70.4
|
|
 |
d6b19f |
- Manually require maven30-ant-contrib since maven-antrun-plugin
|
|
 |
d6b19f |
needs it.
|
|
 |
d6b19f |
|
|
 |
d6b19f |
* Mon Jan 19 2015 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-70.3
|
|
 |
d6b19f |
- Use java common's BRs since they are no longer in maven's collection.
|
|
 |
d6b19f |
|
|
 |
d6b19f |
* Fri Dec 19 2014 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-70.2
|
|
 |
d6b19f |
- Build using maven collection.
|
|
 |
d6b19f |
- Use java common's provides/requires generators.
|
|
 |
d6b19f |
|
|
 |
c028ee |
* Mon Jun 23 2014 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-70.1
|
|
 |
c028ee |
- Add requires for thermostat1-runtime package.
|
|
 |
c028ee |
|
|
 |
b2616e |
* Fri Dec 20 2013 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-6
|
|
 |
b2616e |
- Don't generate osgi() style provides.
|
|
 |
b2616e |
- Fix bogus changelog date.
|
|
 |
b2616e |
- Resolves: RHBZ#1045449.
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Nov 27 2013 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-5
|
|
 |
b2616e |
- Properly enable SCL.
|
|
 |
b2616e |
|
|
 |
b2616e |
* Tue Nov 12 2013 Severin Gehwolf <sgehwolf@redhat.com> - 3.6.3-4
|
|
 |
b2616e |
- SCL-ize package
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-3
|
|
 |
b2616e |
- Set scope of optional compile dependencies to 'provided'
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-2
|
|
 |
b2616e |
- Drop dependency on OSGi
|
|
 |
b2616e |
- Resolves: rhbz#916139
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-1
|
|
 |
b2616e |
- Update to upstream version 3.6.3
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.2-3
|
|
 |
b2616e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.6.2-2
|
|
 |
b2616e |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
 |
b2616e |
- Replace maven BuildRequires with maven-local
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Jan 16 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.2-1
|
|
 |
b2616e |
- Update to upstream version 3.6.2
|
|
 |
b2616e |
|
|
 |
b2616e |
* Tue Jan 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.1-1
|
|
 |
b2616e |
- Update to upstream version 3.6.1
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Dec 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.11-2
|
|
 |
b2616e |
- Use system jzlib instead of bundled jzlib
|
|
 |
b2616e |
- Resolves: rhbz#878391
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Dec 3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.11-1
|
|
 |
b2616e |
- Update to upstream version 3.5.11
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Nov 12 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.10-1
|
|
 |
b2616e |
- Update to upstream version 3.5.10
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Oct 25 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.9-1
|
|
 |
b2616e |
- Update to upstream version 3.5.9
|
|
 |
b2616e |
|
|
 |
b2616e |
* Fri Oct 5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.8-1
|
|
 |
b2616e |
- Update to upstream version 3.5.8
|
|
 |
b2616e |
|
|
 |
b2616e |
* Fri Sep 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.7-1
|
|
 |
b2616e |
- Update to upstream version 3.5.7
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Sep 3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.6-1
|
|
 |
b2616e |
- Update to upstream version 3.5.6
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Aug 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.5-1
|
|
 |
b2616e |
- Update to upstream version 3.5.5
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Aug 15 2012 Tomas Rohovsky <trohovsk@redhat.com> - 3.5.4-1
|
|
 |
b2616e |
- Update to upstream version 3.5.4
|
|
 |
b2616e |
|
|
 |
b2616e |
* Tue Jul 24 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.3-1
|
|
 |
b2616e |
- Update to upstream version 3.5.3
|
|
 |
b2616e |
|
|
 |
b2616e |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-3
|
|
 |
b2616e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Jul 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.2-2
|
|
 |
b2616e |
- Add additional depmap for org.jboss.netty:netty
|
|
 |
b2616e |
- Fixes #840301
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Jul 12 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.2-1
|
|
 |
b2616e |
- Update to upstream version 3.5.2
|
|
 |
b2616e |
- Convert patches to POM macros
|
|
 |
b2616e |
- Enable jboss-logging
|
|
 |
b2616e |
|
|
 |
b2616e |
* Fri May 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-4
|
|
 |
b2616e |
- Add enforcer-plugin to BR
|
|
 |
b2616e |
|
|
 |
b2616e |
* Wed Apr 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-3
|
|
 |
b2616e |
- Remove eclipse plugin from BuildRequires
|
|
 |
b2616e |
|
|
 |
b2616e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.4-2
|
|
 |
b2616e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Dec 5 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-1
|
|
 |
b2616e |
- Update to latest upstream version
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Jul 4 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.3-4
|
|
 |
b2616e |
- Fix FTBFS.
|
|
 |
b2616e |
- Adapt to current guidelines.
|
|
 |
b2616e |
|
|
 |
b2616e |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-3
|
|
 |
b2616e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
 |
b2616e |
|
|
 |
b2616e |
* Mon Jan 17 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-2
|
|
 |
b2616e |
- Use maven 3 to build
|
|
 |
b2616e |
- Drop ant-contrib depmap (no longer needed)
|
|
 |
b2616e |
|
|
 |
b2616e |
* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-1
|
|
 |
b2616e |
- Initial version of the package
|