[jsonic] Initial import (#1005800).

gil gil at fedoraproject.org
Wed Dec 4 17:24:09 UTC 2013


commit 0b2ef808ef8cfd02d2aedcd60fa6ef1262da5b14
Author: gil <puntogil at libero.it>
Date:   Wed Dec 4 18:23:58 2013 +0100

    Initial import (#1005800).

 .gitignore             |    1 +
 jsonic-1.3.0-pom.patch |  119 ++++++++++++++++++++++++++++++++++++++++++++++++
 jsonic.spec            |   76 ++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 197 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8eaac5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jsonic-1.3.0.zip
diff --git a/jsonic-1.3.0-pom.patch b/jsonic-1.3.0-pom.patch
new file mode 100644
index 0000000..369e2e9
--- /dev/null
+++ b/jsonic-1.3.0-pom.patch
@@ -0,0 +1,119 @@
+--- pom.xml	2012-08-04 17:05:46.000000000 +0200
++++ pom.xml-gil	2013-09-03 05:11:08.721322431 +0200
+@@ -37,28 +37,104 @@
+ 	</repositories>
+ 	<dependencies>
+ 		<dependency>
+-			<groupId>javax.servlet</groupId>
+-			<artifactId>servlet-api</artifactId>
+-			<version>[2.4,)</version>
++			<groupId>org.apache.commons</groupId>
++			<artifactId>commons-logging</artifactId>
++			<version>1.1.2</version>
++		</dependency>
++		<dependency>
++			<groupId>org.apache.tomcat</groupId>
++			<artifactId>tomcat-servlet-api</artifactId>
++			<version>7.0.42</version>
+ 			<scope>provided</scope>
+ 		</dependency>
+ 		<dependency>
+ 			<groupId>org.springframework</groupId>
+-			<artifactId>spring</artifactId>
+-			<version>[2.5,3)</version>
++			<artifactId>spring-beans</artifactId>
++			<version>3.1.1.RELEASE</version>
++			<optional>true</optional>
++		</dependency>
++		<dependency>
++			<groupId>org.springframework</groupId>
++			<artifactId>spring-context</artifactId>
++			<version>3.1.1.RELEASE</version>
++			<optional>true</optional>
++		</dependency>
++		<dependency>
++			<groupId>org.springframework</groupId>
++			<artifactId>spring-core</artifactId>
++			<version>3.1.1.RELEASE</version>
++			<optional>true</optional>
++		</dependency>
++		<dependency>
++			<groupId>org.springframework</groupId>
++			<artifactId>spring-web</artifactId>
++			<version>3.1.1.RELEASE</version>
+ 			<optional>true</optional>
+ 		</dependency>
+ 		<dependency>
+-			<groupId>com.google.inject</groupId>
+-			<artifactId>guice</artifactId>
+-			<version>[2.0,)</version>
++			<groupId>org.sonatype.sisu</groupId>
++			<artifactId>sisu-guice</artifactId>
++			<version>3.1.3</version>
+ 			<optional>true</optional>
+ 		</dependency>
+ 		<dependency>
+-			<groupId>org.seasar.container</groupId>
+-			<artifactId>s2-framework</artifactId>
+-			<version>[2.4,2.5)</version>
++			<groupId>org.sonatype.sisu.inject</groupId>
++			<artifactId>guice-servlet</artifactId>
++			<version>3.1.3</version>
+ 			<optional>true</optional>
+ 		</dependency>
+ 	</dependencies>
++	<properties>
++		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
++	</properties>
++	<build>
++
++		<directory>target</directory>
++		<sourceDirectory>src/java</sourceDirectory>
++		<outputDirectory>target/classes</outputDirectory>
++		<resources>
++		  <resource>
++		    <directory>src/java</directory>
++		    <excludes>
++		      <exclude>**/*.java</exclude>
++		    </excludes>
++		  </resource>
++		</resources>
++
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-compiler-plugin</artifactId>
++				<version>3.0</version>
++				<executions>
++				  <execution>
++				    <id>default-compile</id>
++				    <phase>compile</phase>
++				    <configuration>
++				      <excludes>
++					<exclude>**/S2Container.*</exclude>
++				      </excludes>
++				    </configuration>
++				    <goals>
++					<goal>compile</goal>
++				    </goals>
++				  </execution>
++				</executions>
++				<configuration>
++					<source>1.6</source>
++					<target>1.6</target>
++				</configuration>
++			</plugin>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-javadoc-plugin</artifactId>
++				<version>2.9.1</version>
++				<configuration>
++					<doctitle>${project.name} ${project.version}</doctitle>
++					<windowtitle>Copyright &#169; 2007 Hidekatsu Izuno. All rights reserved</windowtitle>
++				</configuration>
++			</plugin>
++		</plugins>
++	</build>
++
+ </project>
+\ Manca newline alla fine del file
diff --git a/jsonic.spec b/jsonic.spec
new file mode 100644
index 0000000..d7cd7ab
--- /dev/null
+++ b/jsonic.spec
@@ -0,0 +1,76 @@
+Name:          jsonic
+Version:       1.3.0
+Release:       2%{?dist}
+Summary:       Simple JSON encoder/decoder for Java
+License:       ASL 2.0
+URL:           http://jsonic.sourceforge.jp/
+Source0:       http://jaist.dl.sourceforge.jp/%{name}/56583/%{name}-%{version}.zip
+# fix maven compiler-plugin configuration
+# fix encoding
+# fix build deps
+# disable unavailable org.seasar.container:s2-framework support
+# https://www.seasar.org/svn/s2container/
+Patch0:        %{name}-%{version}-pom.patch
+
+BuildRequires: java-devel
+
+BuildRequires: mvn(org.apache.commons:commons-logging)
+BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
+BuildRequires: mvn(org.springframework:spring-beans)
+BuildRequires: mvn(org.springframework:spring-context)
+BuildRequires: mvn(org.springframework:spring-core)
+BuildRequires: mvn(org.springframework:spring-web)
+BuildRequires: mvn(org.sonatype.sisu:sisu-guice)
+BuildRequires: mvn(org.sonatype.sisu.inject:guice-extensions)
+BuildRequires: mvn(org.sonatype.sisu.inject:guice-servlet)
+
+BuildRequires: maven-local
+
+BuildArch:     noarch
+
+%description
+Jsonic is a JSON encoding/decoding library for Java implementing RFC 4627
+(The application/JSON Media Type for JavaScript Object Notation).
+Encoding/decoding of primitive types and full Java objects is supported.
+
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+# cleanup
+find -name "*.class" -print -delete
+find -name "*.jar" -print -delete
+rm -r docs/*
+
+%patch0 -p0
+
+sed -i 's/\r//' LICENSE.txt
+
+# Remove javadoc warning
+# rm -r src/java/net/arnx/jsonic/web/extension/S2Container.java
+
+%build
+
+# No tests to run
+%mvn_file : %{name}
+%mvn_build
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc LICENSE.txt
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.txt
+
+%changelog
+* Wed Dec 04 2013 gil cattaneo <puntogil at libero.it> 1.3.0-2
+- used suggested description (1005800#c3)
+
+* Wed Jan 30 2013 gil cattaneo <puntogil at libero.it> 1.3.0-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..bcc66c1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+daf207c0c89c809920b21eff738256c6  jsonic-1.3.0.zip


More information about the scm-commits mailing list