Blame SPECS/netty.spec

0e1498
%{?scl:%scl_package netty}
0e1498
%{!?scl:%global pkg_name %{name}}
0e1498
%{?java_common_find_provides_and_requires}
0e1498
0e1498
# Disable generation of debuginfo package
0e1498
%global debug_package %{nil}
0e1498
%global namedreltag .Final
0e1498
%global namedversion %{version}%{?namedreltag}
0e1498
0e1498
Name:           %{?scl_prefix}netty
0e1498
Version:        4.0.28
0e1498
Release:        2.2%{?dist}
0e1498
Summary:        An asynchronous event-driven network application framework and tools for Java
0e1498
License:        ASL 2.0
0e1498
URL:            https://netty.io/
0e1498
Source0:        https://github.com/netty/netty/archive/netty-%{namedversion}.tar.gz
0e1498
Patch0:         npn_alpn_ssl_fixes.patch
0e1498
Patch1:         transport-native-epoll-configure-fix.patch
0e1498
Patch2:         netty-old-jzlib.patch
0e1498
0e1498
BuildRequires:  %{?scl_prefix_java_common}maven-local
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(ant-contrib:ant-contrib)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(com.jcraft:jzlib)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(commons-logging:commons-logging)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(junit:junit)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(log4j:log4j)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.felix:maven-bundle-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-antrun-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-clean-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-dependency-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-deploy-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-jxr-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-release-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-source-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.scm:maven-scm-api)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.scm:maven-scm-provider-gitexe)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.codehaus.mojo:build-helper-maven-plugin)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(org.easymock:easymock:3)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(org.fusesource.hawtjni:maven-hawtjni-plugin)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.javassist:javassist)
0e1498
BuildRequires:  %{?scl_prefix_java_common}mvn(org.slf4j:slf4j-api)
0e1498
BuildRequires:  %{?scl_prefix_maven}mvn(org.sonatype.oss:oss-parent:pom:)
0e1498
BuildRequires:  %{?scl_prefix}mvn(org.bouncycastle:bcpkix-jdk15on)
0e1498
0e1498
BuildArch: noarch
0e1498
0e1498
%description
0e1498
Netty is a NIO client server framework which enables quick and easy
0e1498
development of network applications such as protocol servers and
0e1498
clients. It greatly simplifies and streamlines network programming
0e1498
such as TCP and UDP socket server.
0e1498
0e1498
'Quick and easy' doesn't mean that a resulting application will suffer
0e1498
from a maintainability or a performance issue. Netty has been designed
0e1498
carefully with the experiences earned from the implementation of a lot
0e1498
of protocols such as FTP, SMTP, HTTP, and various binary and
0e1498
text-based legacy protocols. As a result, Netty has succeeded to find
0e1498
a way to achieve ease of development, performance, stability, and
0e1498
flexibility without a compromise.
0e1498
0e1498
%package javadoc
0e1498
Summary:   API documentation for %{pkg_name}
0e1498
0e1498
%description javadoc
0e1498
%{summary}.
0e1498
0e1498
%prep
0e1498
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
0e1498
%setup -q -n netty-netty-%{namedversion}
0e1498
0e1498
%patch0 -p1
0e1498
%patch1 -p2
0e1498
%patch2 -p0
0e1498
0e1498
%pom_disable_module "transport-native-epoll"
0e1498
%pom_remove_dep ":netty-transport-native-epoll" all
0e1498
# Missing Mavenized rxtx
0e1498
%pom_disable_module "transport-rxtx"
0e1498
%pom_remove_dep ":netty-transport-rxtx" all
0e1498
# Missing com.barchart.udt:barchart-udt-bundle:jar:2.3.0
0e1498
%pom_disable_module "transport-udt"
0e1498
%pom_remove_dep ":netty-transport-udt" all
0e1498
%pom_remove_dep ":netty-build" all
0e1498
# Not needed
0e1498
%pom_xpath_remove "pom:build/pom:extensions"
0e1498
%pom_disable_module "example"
0e1498
%pom_remove_dep ":netty-example" all
0e1498
%pom_disable_module "testsuite"
0e1498
%pom_disable_module "testsuite-osgi"
0e1498
%pom_disable_module "tarball"
0e1498
%pom_disable_module "microbench"
0e1498
%pom_remove_plugin :maven-checkstyle-plugin
0e1498
%pom_remove_plugin :animal-sniffer-maven-plugin
0e1498
%pom_remove_plugin :maven-enforcer-plugin
0e1498
%pom_remove_plugin :maven-antrun-plugin
0e1498
%pom_remove_plugin :maven-dependency-plugin
0e1498
# Optional things we don't ship
0e1498
%pom_remove_dep ":netty-tcnative"
0e1498
%pom_remove_dep ":netty-tcnative" handler
0e1498
%pom_remove_dep "org.eclipse.jetty.npn:npn-api"
0e1498
%pom_remove_dep "org.eclipse.jetty.npn:npn-api" handler
0e1498
%pom_remove_dep "org.mortbay.jetty.npn:npn-boot"
0e1498
%pom_remove_dep "org.mortbay.jetty.npn:npn-boot" handler
0e1498
%pom_remove_dep "org.eclipse.jetty.alpn:alpn-api"
0e1498
%pom_remove_dep "org.eclipse.jetty.alpn:alpn-api" handler
0e1498
%pom_remove_dep "org.mortbay.jetty.alpn:alpn-boot"
0e1498
%pom_remove_dep "org.mortbay.jetty.alpn:alpn-boot" handler
0e1498
%pom_remove_dep "com.google.protobuf:protobuf-java"
0e1498
%pom_remove_dep "com.google.protobuf:protobuf-java" codec
0e1498
%pom_remove_dep "com.google.protobuf:protobuf-java" all
0e1498
rm codec/src/main/java/io/netty/handler/codec/protobuf/*
0e1498
%pom_remove_dep "org.jboss.marshalling:jboss-marshalling"
0e1498
%pom_remove_dep "org.jboss.marshalling:jboss-marshalling" codec
0e1498
%pom_remove_dep "org.jboss.marshalling:jboss-marshalling" all
0e1498
rm codec/src/main/java/io/netty/handler/codec/marshalling/*
0e1498
0e1498
# Remove runtime dep on optional javassist
0e1498
%pom_xpath_set "pom:dependency[pom:artifactId[text()='javassist']]/pom:scope" "provided" common
0e1498
0e1498
sed -i 's|taskdef|taskdef classpathref="maven.plugin.classpath"|' all/pom.xml
0e1498
0e1498
%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
0e1498
%pom_xpath_inject "pom:execution[pom:id = 'build-native-lib']/pom:configuration" '<verbose>true</verbose>' transport-native-epoll/pom.xml
0e1498
0e1498
# Tell xmvn to install attached artifact, which it does not
0e1498
# do by default. In this case install all attached artifacts with
0e1498
# the linux classifier.
0e1498
%mvn_package ":::linux*:"
0e1498
%{?scl:EOF}
0e1498
0e1498
0e1498
%build
0e1498
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
0e1498
export CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
0e1498
%mvn_build -f
0e1498
%{?scl:EOF}
0e1498
0e1498
0e1498
%install
0e1498
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
0e1498
%mvn_install
0e1498
%{?scl:EOF}
0e1498
0e1498
0e1498
%files -f .mfiles
0e1498
%doc LICENSE.txt NOTICE.txt
0e1498
%dir %{_javadir}/netty
0e1498
%dir %{_mavenpomdir}/netty
0e1498
0e1498
%files javadoc -f .mfiles-javadoc
0e1498
%doc LICENSE.txt NOTICE.txt
0e1498
0e1498
%changelog
0e1498
* Mon Jul 13 2015 Mat Booth <mat.booth@redhat.com> - 4.0.28-2.2
0e1498
- Fix unowned directories
0e1498
0e1498
* Fri Jul 03 2015 Mat Booth <mat.booth@redhat.com> - 4.0.28-2.1
0e1498
- Import latest from Fedora
0e1498
0e1498
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.28-2
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e1498
0e1498
* Wed May 20 2015 Severin Gehwolf <sgehwolf@redhat.com> - 4.0.28-1
0e1498
- Update to upstream 4.0.28 release.
0e1498
- Fixes CVE-2015-2156 (HttpOnly cookie bypass).
0e1498
- Resolves RHBZ#1111502
0e1498
0e1498
* Wed May 20 2015 Severin Gehwolf <sgehwolf@redhat.com> - 4.0.27-1
0e1498
- Update to upstream 4.0.27 release.
0e1498
0e1498
* Wed Apr 01 2015 Severin Gehwolf <sgehwolf@redhat.com> - 4.0.19-3
0e1498
- Drop mvn(org.easymock:easymockclassextension) BR.
0e1498
  Resolves: RHBZ#1207991
0e1498
0e1498
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.19-2
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0e1498
0e1498
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.19-1
0e1498
- Update to upstream version 4.0.19
0e1498
- Convert to arch-specific package
0e1498
0e1498
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.14-5
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0e1498
0e1498
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.14-4
0e1498
- Use Requires: java-headless rebuild (#1067528)
0e1498
0e1498
* Mon Jan 13 2014 Marek Goldmann <mgoldman@redhat.com> - 4.0.14-3
0e1498
- Enable netty-all.jar artifact
0e1498
0e1498
* Mon Jan 13 2014 Marek Goldmann <mgoldman@redhat.com> - 4.0.14-2
0e1498
- Bump the release, so Obsoletes work properly
0e1498
0e1498
* Mon Dec 30 2013 Marek Goldmann <mgoldman@redhat.com> - 4.0.14-1
0e1498
- Upstream release 4.0.14.Final
0e1498
0e1498
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6-2
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e1498
0e1498
* Thu May 16 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.6-1
0e1498
- Update to upstream version 3.6.6
0e1498
0e1498
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.5-1
0e1498
- Update to upstream version 3.6.5
0e1498
0e1498
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.4-1
0e1498
- Update to upstream version 3.6.4
0e1498
0e1498
* Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-3
0e1498
- Set scope of optional compile dependencies to 'provided'
0e1498
0e1498
* Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-2
0e1498
- Drop dependency on OSGi
0e1498
- Resolves: rhbz#916139
0e1498
0e1498
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.3-1
0e1498
- Update to upstream version 3.6.3
0e1498
0e1498
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.2-3
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e1498
0e1498
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.6.2-2
0e1498
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
0e1498
- Replace maven BuildRequires with maven-local
0e1498
0e1498
* Wed Jan 16 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.2-1
0e1498
- Update to upstream version 3.6.2
0e1498
0e1498
* Tue Jan 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6.1-1
0e1498
- Update to upstream version 3.6.1
0e1498
0e1498
* Thu Dec 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.11-2
0e1498
- Use system jzlib instead of bundled jzlib
0e1498
- Resolves: rhbz#878391
0e1498
0e1498
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.11-1
0e1498
- Update to upstream version 3.5.11
0e1498
0e1498
* Mon Nov 12 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.10-1
0e1498
- Update to upstream version 3.5.10
0e1498
0e1498
* Thu Oct 25 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.9-1
0e1498
- Update to upstream version 3.5.9
0e1498
0e1498
* Fri Oct  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.8-1
0e1498
- Update to upstream version 3.5.8
0e1498
0e1498
* Fri Sep  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.7-1
0e1498
- Update to upstream version 3.5.7
0e1498
0e1498
* Mon Sep  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.6-1
0e1498
- Update to upstream version 3.5.6
0e1498
0e1498
* Thu Aug 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.5-1
0e1498
- Update to upstream version 3.5.5
0e1498
0e1498
* Wed Aug 15 2012 Tomas Rohovsky <trohovsk@redhat.com> - 3.5.4-1
0e1498
- Update to upstream version 3.5.4
0e1498
0e1498
* Tue Jul 24 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.3-1
0e1498
- Update to upstream version 3.5.3
0e1498
0e1498
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-3
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e1498
0e1498
* Mon Jul 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.2-2
0e1498
- Add additional depmap for org.jboss.netty:netty
0e1498
- Fixes #840301
0e1498
0e1498
* Thu Jul 12 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.2-1
0e1498
- Update to upstream version 3.5.2
0e1498
- Convert patches to POM macros
0e1498
- Enable jboss-logging
0e1498
0e1498
* Fri May 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-4
0e1498
- Add enforcer-plugin to BR
0e1498
0e1498
* Wed Apr 18 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-3
0e1498
- Remove eclipse plugin from BuildRequires
0e1498
0e1498
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.4-2
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0e1498
0e1498
* Mon Dec  5 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-1
0e1498
- Update to latest upstream version
0e1498
0e1498
* Mon Jul 4 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.3-4
0e1498
- Fix FTBFS.
0e1498
- Adapt to current guidelines.
0e1498
0e1498
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-3
0e1498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e1498
0e1498
* Mon Jan 17 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-2
0e1498
- Use maven 3 to build
0e1498
- Drop ant-contrib depmap (no longer needed)
0e1498
0e1498
* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-1
0e1498
- Initial version of the package