commit b82df687c22ff06936feabf788b16933cc7ecee5 Author: gil puntogil@libero.it Date: Tue Feb 3 23:44:34 2015 +0100
Initial import (#976051).
.gitignore | 1 + jsmpp-2.0.1-test-classpath.patch | 100 ++++++++++++++++++++++++++++++++++ jsmpp-2.1.0-RELEASE.pom | 70 ++++++++++++++++++++++++ jsmpp-osgi.bnd | 9 +++ jsmpp.spec | 111 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 292 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..bd47aa8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/jsmpp-2.1.0-src.zip diff --git a/jsmpp-2.0.1-test-classpath.patch b/jsmpp-2.0.1-test-classpath.patch new file mode 100644 index 0000000..5a00e7d --- /dev/null +++ b/jsmpp-2.0.1-test-classpath.patch @@ -0,0 +1,100 @@ +--- build.xml 2013-06-19 19:18:08.361147225 +0200 ++++ build.xml-gil 2013-06-19 19:20:43.330618621 +0200 +@@ -2,11 +2,11 @@ + + <property name="src.dir" value="src/java/main" /> + <property name="src.tests.dir" value="src/java/tests" /> +- <property name="src.examples.dir" value="src/java/examples" /> ++ <property name="src.examples.dir" value="src/java/examples" /> + <property name="classes.dir" value="build/classes" /> + <property name="tests.dir" value="build/tests" /> + <property name="examples.dir" value="build/examples" /> +- <property name="javadoc.dir" value="javadoc"/> ++ <property name="javadoc.dir" value="javadoc"/> + + <property name="lib.dir" value="lib" /> + <property name="project.version" value="2.1.0" /> +@@ -16,25 +16,26 @@ + <property name="dist.zipall.filename" value="${dist.versionname}-all.zip" /> + <property name="dist.zipsrc.filename" value="${dist.versionname}-src.zip" /> + <property name="dist.zipbin.filename" value="${dist.versionname}-bin.zip" /> +- <property name="testng.jar" value="${lib.dir}/testng-5.7-jdk15.jar" /> ++ <property name="testng.jar" value="${lib.dir}/testng-5.7-jdk15.jar" /> + + <taskdef resource="testngtasks" classpath="${testng.jar}" /> + + <path id="compile.path"> + <pathelement path="${lib.dir}/slf4j-api-1.4.3.jar" /> +- </path> +- +- <path id="run.path"> ++ </path> ++ ++ <path id="run.path"> + <path refid="compile.path" /> + <pathelement path="${classes.dir}" /> +- <pathelement path="${lib.dir}/log4j-1.2.14.jar" /> +- <pathelement path="${lib.dir}/slf4j-log4j12-1.4.3.jar" /> +- </path> ++ <pathelement path="${lib.dir}/log4j-1.2.14.jar" /> ++ <pathelement path="${lib.dir}/slf4j-log4j12-1.4.3.jar" /> ++ </path> + +- <path id="test.path"> ++ <path id="test.path"> + <path refid="run.path" /> +- <pathelement path="${testng.jar}" /> +- </path> ++ <pathelement path="${testng.jar}" /> ++ <pathelement path="${lib.dir}/beust-jcommander.jar" /> ++ </path> + + <path id="run.test.path"> + <pathelement path="${tests.dir}" /> +@@ -51,12 +52,12 @@ + <exclude name=".classpath" /> + <exclude name=".project" /> + </patternset> +- ++ + <target name="clean"> + <delete dir="${classes.dir}" /> + <delete dir="${tests.dir}" /> + <delete dir="${examples.dir}" /> +- </target> ++ </target> + + <target name="prepare"> + <mkdir dir="${classes.dir}" /> +@@ -75,21 +76,21 @@ + classpathref="test.path" debug="on" + source="1.5" target="1.5"/> + </target> +- +- <target name="test" depends="compile"> +- <testng classpathref="run.test.path"> +- <xmlfileset file="testng.xml" /> +- </testng> +- </target> ++ ++ <target name="test" depends="compile"> ++ <testng classpathref="run.test.path"> ++ <xmlfileset file="testng.xml" /> ++ </testng> ++ </target> + + <target name="cleantest"> + <delete dir="test-output"/> + </target> +- +- <target name="cleanjar"> ++ ++ <target name="cleanjar"> + <delete file="${dist.jar.filename}" /> +- <delete file="${dist.examples.jar.filename}" /> +- </target> ++ <delete file="${dist.examples.jar.filename}" /> ++ </target> + + <target name="jar" depends="test"> + <jar destfile="${dist.jar.filename}"> diff --git a/jsmpp-2.1.0-RELEASE.pom b/jsmpp-2.1.0-RELEASE.pom new file mode 100644 index 0000000..127e1e3 --- /dev/null +++ b/jsmpp-2.1.0-RELEASE.pom @@ -0,0 +1,70 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd%22%3E + <modelVersion>4.0.0</modelVersion> + <groupId>com.googlecode.jsmpp</groupId> + <artifactId>jsmpp</artifactId> + <version>2.1.0-RELEASE</version> + <packaging>jar</packaging> + <name>JSMPP</name> + <description>The Java implementation of SMPP protocol (currently supports SMPP v 3.4)</description> + <url>http://code.google.com/p/jsmpp/</url> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <scm> + <url>http://jsmpp.googlecode.com/svn/trunk/</url> + <connection>http://jsmpp.googlecode.com/svn/trunk/</connection> + </scm> + <developers> + <developer> + <id>shantanu.kumar</id> + <name>Shantanu Kumar</name> + <email>kumar.sh...@gmail.com</email> + </developer> + </developers> + <dependencies> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.4.3</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.4.3</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <version>5.7</version> + <scope>test</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <!-- AVOID RELEASE REPOSITORY/PLUGINREPOSITORY: <repositories></repositories> <pluginRepositories></pluginRepositories> --> +</project> \ No newline at end of file diff --git a/jsmpp-osgi.bnd b/jsmpp-osgi.bnd new file mode 100644 index 0000000..2ed2e24 --- /dev/null +++ b/jsmpp-osgi.bnd @@ -0,0 +1,9 @@ +# BND/OSGI Properties by gil +Built-By: ${user.name} +Bundle-Description: The Java implementation of SMPP protocol (currently supports SMPP v 3.4) +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Name: JSMPP +Bundle-SymbolicName: com.googlecode.jsmpp +Bundle-Version: @VERSION@ +Export-Package: org.jsmpp.*;version=${Bundle-Version} +Import-Package: org.testng.*;resolution:=optional,org.slf4j.*,* diff --git a/jsmpp.spec b/jsmpp.spec new file mode 100644 index 0000000..55d4217 --- /dev/null +++ b/jsmpp.spec @@ -0,0 +1,111 @@ +Name: jsmpp +Version: 2.1.0 +Release: 1%{?dist} +Summary: Java SMPP (Short Message Peer-to-peer) API +License: ASL 2.0 +URL: http://code.google.com/p/jsmpp/ +# migrated to https://github.com/uudashr/jsmpp/ +Source0: http://jsmpp.googlecode.com/files/%%7Bname%7D-%%7Bversion%7D-src.zip +Source1: http://repo1.maven.org/maven2/com/googlecode/jsmpp/%%7Bname%7D/%%7Bversion%7... +Source2: %{name}-osgi.bnd +# add beust-jcommander +Patch0: %{name}-2.0.1-test-classpath.patch + +BuildRequires: ant +BuildRequires: aqute-bnd +BuildRequires: java-devel +BuildRequires: java-javadoc +BuildRequires: mvn(org.slf4j:slf4j-api) +BuildRequires: mvn(org.slf4j:slf4j-log4j12) +# test dep +BuildRequires: mvn(com.beust:jcommander) +BuildRequires: mvn(org.testng:testng) + +%if %{?fedora} > 20 +BuildRequires: javapackages-local +BuildRequires: mvn(log4j:log4j:1.2.17) +Requires: mvn(log4j:log4j:1.2.17) +%else +BuildRequires: maven-local +BuildRequires: mvn(log4j:log4j) +Requires: mvn(log4j:log4j) +%endif +Requires: mvn(org.slf4j:slf4j-api) +BuildArch: noarch + +%description +The Java implementation of SMPP protocol (currently supports SMPP v 3.4). + +%package examples +Summary: JSMPP examples +Requires: %{name} = %{version}-%{release} + +%description examples +This package contains %{name} examples. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{version} +# cleanup +find -name "*.jar" -delete +find -name "*.class" -delete +find -name "*.bat" -delete +rm -r javadoc + +%patch0 -p0 + +cp -p %{SOURCE1} pom.xml +cp -p %{SOURCE2} bnd.properties +sed -i "s|@VERSION@|%{version}|" bnd.properties + +sed -i "s|http://java.sun.com/j2se/1.5.0/docs/api%7C%%7B_javadocdir%7D/java%7C" build.xml + +sed -i.log4j "s|version>1.2.14|version>1.2.17|" pom.xml + +%if %{?fedora} > 20 +ln -sf $(build-classpath log4j-1.2.17) lib/log4j-1.2.14.jar +%else +ln -sf $(build-classpath log4j) lib/log4j-1.2.14.jar +%endif +ln -sf $(build-classpath slf4j/api) lib/slf4j-api-1.4.3.jar +ln -sf $(build-classpath slf4j/log4j12) lib/slf4j-log4j12-1.4.3.jar +ln -sf $(build-classpath testng) lib/testng-5.7-jdk15.jar +ln -sf $(build-classpath beust-jcommander) lib/ + +%mvn_file : %{name} +%mvn_alias :%{name} org.apache.servicemix.bundles:org.apache.servicemix.bundles.%{name} + +%build + +ant jar javadoc +# required by Apache Camel +java -jar $(build-classpath aqute-bnd) wrap -properties bnd.properties %{name}-%{version}.jar + +mv %{name}-%{version}.bar %{name}-%{version}.jar + +%install +%mvn_artifact pom.xml %{name}-%{version}.jar +%mvn_install -J javadoc + +install -m 644 %{name}-examples.jar %{buildroot}%{_javadir}/ + +%files -f .mfiles +%doc CHANGES.txt +%license LICENSE.txt + +%files examples +%{_javadir}/%{name}-examples.jar +%doc stress/* +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Wed Jun 19 2013 gil cattaneo puntogil@libero.it 2.1.0-1 +- initial rpm diff --git a/sources b/sources index e69de29..6908dbd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0da38a10570b67eb527a83535774131e jsmpp-2.1.0-src.zip
java-sig-commits@lists.fedoraproject.org