Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 1cdfdd79b145f7e2c789a4d691b742d8 > files > 4

netty31-3.1.5-6.mga4.src.rpm

%global oname netty

Name:           netty31
Version:        3.1.5
Release:        %mkrel 6
Summary:        An asynchronous event-driven network application framework and tools for Java

Group:          Development/Java
License:        ASL 2.0
URL:            https://netty.io/
Source0:        http://sourceforge.net/projects/jboss/files/netty-3.1.5.GA-dist.tar.bz2

# 1) Remove optional xnio dep
# 2) Remove optional spring dep
# 3) Fix google-guice and jboss-logging deps
Patch0:         netty31-dep-fixes.patch
# These plugins break with maven 3, so disable them for now
Patch1:         netty31-disable-doc-plugins.patch
BuildArch:      noarch

# This pulls in all of the required java and maven stuff
BuildRequires:  maven-antrun-plugin
BuildRequires:  maven-assembly-plugin
BuildRequires:  maven-compiler-plugin
BuildRequires:  maven-eclipse-plugin
BuildRequires:  maven-javadoc-plugin
BuildRequires:  maven-local
BuildRequires:  maven-resources-plugin
BuildRequires:  maven-release-plugin
BuildRequires:  maven-source-plugin
BuildRequires:  maven-surefire-plugin
BuildRequires:  maven-plugin-bundle
BuildRequires:  buildnumber-maven-plugin
BuildRequires:  ant-contrib
BuildRequires:  subversion
BuildRequires:  protobuf-java
BuildRequires:  felix-osgi-compendium
BuildRequires:  jboss-parent
BuildRequires:  jboss-logging
BuildRequires:  dos2unix
BuildRequires:  axis
BuildRequires:  apiviz
BuildRequires:  java-devel
BuildRequires:  mvn(aopalliance:aopalliance)
BUildRequires:  codehaus-parent
Requires:       java
Requires:       protobuf-java
Requires:       axis

%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}
Group:     Documentation
Requires:  jpackage-utils

%description javadoc
%{summary}.

%prep
%setup -q -n %{oname}-%{version}.GA

# just to be sure, but not used anyway
rm -rf jar/

# example doesn't build with our protobuf
rm -rf src/main/java/org/jboss/netty/example/localtime

# convert the pom file before patching
dos2unix pom.xml LICENSE.txt NOTICE.txt
%patch0 -p1
%patch1 -p1

# XNIO and spring deps are removed from this build
rm -rf src/main/java/org/jboss/netty/container/spring/
rm -rf src/main/java/org/jboss/netty/channel/xnio/

%build
# skipping tests because we don't have all dependencies in Fedora
mvn-rpmbuild -Dmaven.test.skip=true \
        install javadoc:javadoc
dos2unix target/api/stylesheet.css

%install
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}

install -m 644 target/%{oname}-%{version}.GA.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar


install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr target/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom

%add_maven_depmap JPP-%{name}.pom %{name}.jar

%files
%doc LICENSE.txt NOTICE.txt
%{_javadir}/%{name}.jar
%{_mavendepmapfragdir}/%{name}
%{_mavenpomdir}/JPP-%{name}.pom

%files javadoc
%doc LICENSE.txt NOTICE.txt
%{_javadocdir}/%{name}



%changelog
* Tue Oct 22 2013 umeabot <umeabot> 3.1.5-6.mga4
+ Revision: 545946
- Mageia 4 Mass Rebuild

* Thu Oct 17 2013 luigiwalser <luigiwalser> 3.1.5-5.mga4
+ Revision: 502012
- BR maven-local for mvn-rpmbuild

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jan 05 2013 dmorgan <dmorgan> 3.1.5-3.mga3
+ Revision: 339074
- imported package netty31