diff --git a/json-simple-hash-java-1.8.patch b/json-simple-hash-java-1.8.patch new file mode 100644 index 0000000000000000000000000000000000000000..b580a6d81bc87feaddf8f2b29778a09f67df74af --- /dev/null +++ b/json-simple-hash-java-1.8.patch @@ -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); + } ++ */ + } diff --git a/json_simple.spec b/json_simple.spec new file mode 100644 index 0000000000000000000000000000000000000000..e5cd8f98107eda4bec608b569aecb9551b089728 --- /dev/null +++ b/json_simple.spec @@ -0,0 +1,53 @@ +Name: json_simple +Version: 1.1.1 +Release: 1 +Summary: Simple Java toolkit for JSON +License: ASL 2.0 +URL: http://code.google.com/p/json-simple/ +BuildArch: noarch +Source0: https://github.com/fangyidong/json-simple/archive/tag_release_1_1_1.tar.gz +Patch0: json-simple-hash-java-1.8.patch +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) +%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 help +Summary: API documentation for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} +%description help +This package contains %{summary}. + +%prep +%setup -q -n json-simple-tag_release_1_1_1 +find . -name '*.jar' -exec rm -f '{}' \; +find . -type f -exec %{__sed} -i 's/\r//' {} \; +%patch0 -p1 +%mvn_file : %{name} + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc AUTHORS.txt ChangeLog.txt LICENSE.txt README.txt + +%files help -f .mfiles-javadoc +%doc LICENSE.txt + +%changelog +* Mon Aug 24 2020 liyanan - 1.1.1-1 +- package init diff --git a/json_simple.yaml b/json_simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2026365aa929c5c08aa0e17ca0e442aedfde0ff5 --- /dev/null +++ b/json_simple.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/fangyidong/json-simple.git +version_control: github +src_repo: fangyidong/json-simple +tag_prefix: "tag_release_" +seperator: "_" diff --git a/tag_release_1_1_1.tar.gz b/tag_release_1_1_1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7a3e63eb6efbdc674a912882abf0d0b298d5adfb Binary files /dev/null and b/tag_release_1_1_1.tar.gz differ