forked from pool/json-simple
dependency for jts
OBS-URL: https://build.opensuse.org/package/show/Java:packages/json-simple?expand=0&rev=1
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
#
|
||||
# spec file for package json-simple
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: json-simple
|
||||
Version: 1.1.1
|
||||
Release: 0
|
||||
Summary: Simple Java toolkit for JSON
|
||||
Group: Development/Libraries/Java
|
||||
License: Apache-2.0
|
||||
URL: https://code.google.com/p/json-simple/
|
||||
# svn export http://json-simple.googlecode.com/svn/tags/tag_release_1_1_1/ json-simple-1.1.1
|
||||
# tar czf json-simple-1.1.1-src-svn.tar.gz json-simple-1.1.1
|
||||
Source0: json-simple-1.1.1-src-svn.tar.gz
|
||||
#https://code.google.com/p/json-simple/issues/detail?id=97
|
||||
Patch0: json-simple-hash-java-1.8.patch
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple
|
||||
to encode or decode JSON text.
|
||||
* Full compliance with JSON specification (RFC4627) and reliable
|
||||
* Provides multiple functionalities such as encode, decode/parse
|
||||
and escape JSON text while keeping the library lightweight
|
||||
* Flexible, simple and easy to use by reusing Map and List interfaces
|
||||
* Supports streaming output of JSON text
|
||||
* Stoppable SAX-like interface for streaming input of JSON text
|
||||
* Heap based parser
|
||||
* High performance (see performance testing)
|
||||
* No dependency on external libraries
|
||||
* Both of the source code and the binary are JDK1.2 compatible
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n json-simple-%{version}
|
||||
find . -name '*.jar' -exec rm -f '{}' \;
|
||||
# All the files have dos line endings, remove them.
|
||||
find . -type f -exec sed -i 's/\r//' {} \;
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
# Remove hard-coded compiler settings
|
||||
%pom_remove_plugin :maven-compiler-plugin
|
||||
|
||||
%{mvn_file} : %{name}
|
||||
|
||||
%build
|
||||
%{mvn_build} -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
||||
|
||||
%install
|
||||
%{mvn_install}
|
||||
|
||||
%fdupes %{buildroot}%{datadir}/javadoc
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%doc AUTHORS.txt ChangeLog.txt README.txt
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1 @@
|
||||
.osc
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
diff -uNr json-simple-1.1.1.ORIG/src/test/java/org/json/simple/Test.java json-simple-1.1.1/src/test/java/org/json/simple/Test.java
|
||||
--- json-simple-1.1.1.ORIG/src/test/java/org/json/simple/Test.java 2014-07-22 09:55:47.058000000 +0000
|
||||
+++ json-simple-1.1.1/src/test/java/org/json/simple/Test.java 2014-07-22 14:17:16.942000000 +0000
|
||||
@@ -294,7 +294,7 @@
|
||||
pe.printStackTrace();
|
||||
}
|
||||
}
|
||||
-
|
||||
+ /*
|
||||
public void testEncode() throws Exception{
|
||||
System.out.println("=======encode=======");
|
||||
|
||||
@@ -388,4 +388,5 @@
|
||||
System.out.println(jsonString);
|
||||
assertEquals("[{\"k11\":\"v11\",\"k12\":\"v12\",\"k13\":\"v13\",\"k14\":{\"k31\":\"v3\",\"k32\":123.45,\"k33\":false,\"k34\":null,\"k35\":[\"vvv\",\"1.23456789123456789\",true,null]}},{\"k22\":\"v22\",\"k21\":\"v21\",\"k23\":\"v23\"}]",jsonString);
|
||||
}
|
||||
+ */
|
||||
}
|
||||
Reference in New Issue
Block a user