[Jpackage-commits] dist/jsmpp/devel .cvsignore, 1.1, 1.2 jsmpp-2.1.0.pom, NONE, 1.1 jsmpp-build.patch, NONE, 1.1 jsmpp.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Mon Oct 3 19:34:50 CEST 2011


Update of /home/projects/jpackage/cvs/dist/jsmpp/devel
In directory ryu.zarb.org:/tmp/cvs-serv1766/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jsmpp-2.1.0.pom jsmpp-build.patch jsmpp.spec 
Log Message:
Import jsmpp into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jsmpp/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	3 Oct 2011 17:29:24 -0000	1.1
--- .cvsignore	3 Oct 2011 17:34:48 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ jsmpp-2.1.0-src.zip

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jsmpp/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	3 Oct 2011 17:29:24 -0000	1.1
--- sources	3 Oct 2011 17:34:48 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 0da38a10570b67eb527a83535774131e  jsmpp-2.1.0-src.zip

--- NEW FILE: jsmpp-2.1.0.pom ---
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.google.code</groupId>
  <artifactId>jsmpp</artifactId>
  <version>2.1.0</version>
  <description>POM was created from install:install-file</description>
</project>

--- NEW FILE: jsmpp.spec ---
# Copyright (c) 2000-2011, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

Name:           jsmpp
Version:        2.1.0
Release:        1%{?dist}
Epoch:          0
Summary:        Java SMPP (Short Message Peer-to-peer) API
License:        Apache Software License 2.0
Group:          Development/Java
URL:            http://code.google.com/p/jsmpp/
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch
Source0:        http://jsmpp.googlecode.com/files/jsmpp-2.1.0-src.zip
Source1:        http://svn.apache.org/repos/asf/servicemix/m2-repo/com/google/code/jsmpp/2.1.0/jsmpp-2.1.0.pom
Patch0:         jsmpp-build.patch

BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  log4j
BuildRequires:  slf4j
BuildRequires:  testng

Requires:  java-devel >= 0:1.6.0

%description
JSMPP is a java implementation (SMPP API) of SMPP protocol 
(currently support SMPP v3.4). It provides interfaces to 
communicate with Message Center or ESME (External Short 
Message Entity) and able to handle traffic 3000-5000 
messages per second.
SMPP is stand for Short Message Peer to Peer. It is a 
standard protocol for exchanging SMS messages between SMS 
entities over TCP/IP or X.25 connections.

This API was created to reduce the verbosity of the existing 
SMPP API. It's very simple and easy to use because it hides
the complexity of the low level protocol communication such
as automatically enquire link request-response.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%prep
%setup -q
%patch0 -b .sav0
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
#BUILD/jsmpp-2.1.0/lib/log4j-1.2.14.jar.no
#BUILD/jsmpp-2.1.0/lib/slf4j-api-1.4.3.jar.no
#BUILD/jsmpp-2.1.0/lib/slf4j-log4j12-1.4.3.jar.no
#BUILD/jsmpp-2.1.0/lib/testng-5.7-jdk15.jar.no
pushd lib
ln -sf $(build-classpath log4j) log4j-1.2.14.jar
ln -sf $(build-classpath slf4j/slf4j-api) slf4j-api-1.4.3.jar
ln -sf $(build-classpath slf4j/slf4j-log4j12) slf4j-log4j12-1.4.3.jar
ln -sf $(build-classpath testng-jdk15) testng-5.7-jdk15.jar
popd

%build
export CLASSPATH=
ant jar javadoc

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
install -m 0644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 0644 %{name}-examples.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-examples-%{version}.jar

(cd $RPM_BUILD_ROOT%{_javadir}
for jar in *-%{version}*.jar; do ln -sf ${jar} `echo ${jar} | sed "s|-%{version}||g"`;done)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap com.google.code %{name} %{version} JPP %{name}

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Tue Jul 19 2011 Ralph Apel <r.apel at r-apel.de> 0:2.1.0-1
- first release


--- NEW FILE: jsmpp-build.patch ---
--- build.xml.sav	2011-07-19 15:05:26.000000000 +0200
+++ build.xml	2011-07-19 15:15:39.000000000 +0200
@@ -18,7 +18,7 @@
     <property name="dist.zipbin.filename" value="${dist.versionname}-bin.zip" />
 	<property name="testng.jar" value="${lib.dir}/testng-5.7-jdk15.jar" />
     
-    <taskdef resource="testngtasks" classpath="${testng.jar}" />
+    <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${testng.jar}" />
     
 	<path id="compile.path">
 		<pathelement path="${lib.dir}/slf4j-api-1.4.3.jar" />
@@ -161,4 +161,4 @@
             </zipfileset>
         </zip>
     </target>
-</project>
\ Kein Zeilenumbruch am Dateiende.
+</project>




More information about the JPackage-commits mailing list