debian/0000755000000000000000000000000012171133273007166 5ustar debian/README.source0000644000000000000000000000053212171133160011340 0ustar newtonsoft-json for Debian -------------------------- There is no watch file as the project is hosted at Codeplex, which is impossible to write watch files for. The tarball is generated by repacking the zip release archive and dropping .dll, .exe, .pdb, and .chm files. -- Chow Loong Jin , Wed, 30 May 2012 01:33:17 +0800 debian/changelog0000644000000000000000000000323612171133160011037 0ustar newtonsoft-json (5.0r6+dfsg-1) unstable; urgency=low * [2cb5d9c] Amend get-orig-source to drop StreamingContext.cs * [7f38400] Update UPSTREAM_URL. The old URL broke for some reason. * [483d7af] Imported Upstream version 5.0r6+dfsg: - Dropped StreamingContext.cs due to licensing issues, and it isn't used anyway -- Chow Loong Jin Tue, 16 Jul 2013 10:56:04 +0800 newtonsoft-json (5.0r6-1) unstable; urgency=low * [8442fb3] Imported Upstream version 5.0r6 * [d44fc53] Update UPSTREAM_URL for current version * [81b004f] Build using the .Net40 csproj file * [26d94c0] Update xbuild invocation. Set Configuration to Release and update DefineConstants * [a156349] Add patch to Use single-argument BigInteger.Parse() * [ec70816] Update bindir * [e395f74] Split up bindir and xmldir. Seems that the .xml file used by mdoc isn't put into the same place as the .dll any longer. * [5436298] Patch to drop TargetFrameworkProfile line from csproj * [60612bb] Update dll path in install file * [6aeed0a] Bump Standards-Version to 3.9.4 * [16dd5c9] Rename things for ABI bump * [4372b40] Patch to bump AssemblyVersion to 5.0.0.0 -- Chow Loong Jin Sun, 30 Jun 2013 18:57:58 +0800 newtonsoft-json (4.5r6-1) unstable; urgency=low * [741cf30] Make team-maintained * [29e0682] Update UPSTREAM_URL for new version * [34a695f] Imported Upstream version 4.5r6 -- Chow Loong Jin Thu, 07 Jun 2012 03:48:14 +0800 newtonsoft-json (4.5r5-1) unstable; urgency=low * Initial release (Closes: #675206) -- Chow Loong Jin Tue, 29 May 2012 20:32:12 +0800 debian/source/0000755000000000000000000000000012171133160010461 5ustar debian/source/format0000644000000000000000000000001412171133160011667 0ustar 3.0 (quilt) debian/Newtonsoft.Json.source0000644000000000000000000000030712171133160013461 0ustar debian/copyright0000644000000000000000000000407512171133160011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Json.NET Source: http://json.codeplex.com Files: * Copyright: 2007, James Newton-King License: MIT/X11 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2012 Chow Loong Jin License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/newtonsoft-json.pc.in0000644000000000000000000000033512171133160013270 0ustar prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib Name: Newtonsoft.Json Description: A high-performance JSON framework for .NET Version: @VERSION@ Libs: -r:${libdir}/cli/Newtonsoft.Json-5.0/Newtonsoft.Json.dll debian/compat0000644000000000000000000000000212171133160010357 0ustar 9 debian/control0000644000000000000000000000647212171133160010575 0ustar Source: newtonsoft-json Section: cli-mono Priority: optional Maintainer: Debian CLI Libraries Team Uploaders: Chow Loong Jin Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cli-common-dev (>= 0.5.7), mono-devel (>= 2.4.3), mono-xbuild, monodoc-base Standards-Version: 3.9.4 Homepage: http://json.codeplex.com Vcs-Git: git://git.debian.org/pkg-cli-libs/packages/newtonsoft-json.git Vcs-Browser: http://git.debian.org/?p=pkg-cli-libs/packages/newtonsoft-json.git;a=summary Package: libnewtonsoft-json5.0-cil Architecture: all Depends: ${cli:Depends}, ${misc:Depends} Description: high-performance JSON framework for .NET Json.NET is a high-performance JSON framework for .NET. It has the following features: - Flexible JSON serializer for converting between .NET objects and JSON - LINQ to JSON for manually reading and writing JSON - High performance, faster than .NET's build-in JSON serializers - Write indented, easy to read JSON - Convert JSON to and from XML . The JSON serializer is a good choice when the JSN being read or written maps closely to a .NET class. . LINQ to JSON is good for situations in which there is no class to serialize or deserialize to, or the JSON is radically different from the class structure and manual manipulation is required. . This package contains the Json.NET assemblies. Package: libnewtonsoft-json-cil-dev Architecture: all Depends: libnewtonsoft-json5.0-cil (= ${binary:Version}), ${cli:Depends}, ${misc:Depends} Description: high-performance JSON framework for .NET -- development files Json.NET is a high-performance JSON framework for .NET. It has the following features: - Flexible JSON serializer for converting between .NET objects and JSON - LINQ to JSON for manually reading and writing JSON - High performance, faster than .NET's build-in JSON serializers - Write indented, easy to read JSON - Convert JSON to and from XML . The JSON serializer is a good choice when the JSN being read or written maps closely to a .NET class. . LINQ to JSON is good for situations in which there is no class to serialize or deserialize to, or the JSON is radically different from the class structure and manual manipulation is required. . This package contains the development files required to compile applications or libraries against this package. Package: monodoc-newtonsoft-json-manual Section: doc Architecture: all Depends: monodoc-manual, ${misc:Depends} Description: compiled XML documentation for Json.NET Json.NET is a high-performance JSON framework for .NET. It has the following features: - Flexible JSON serializer for converting between .NET objects and JSON - LINQ to JSON for manually reading and writing JSON - High performance, faster than .NET's build-in JSON serializers - Write indented, easy to read JSON - Convert JSON to and from XML . The JSON serializer is a good choice when the JSN being read or written maps closely to a .NET class. . LINQ to JSON is good for situations in which there is no class to serialize or deserialize to, or the JSON is radically different from the class structure and manual manipulation is required. . This package contains the compiled XML documentation for Json.NET. debian/patches/0000755000000000000000000000000012171133160010610 5ustar debian/patches/Drop-TargetFrameworkProfile-line-from-csproj.patch0000644000000000000000000000273112171133160022347 0ustar From: Chow Loong Jin Date: Wed, 10 Jul 2013 20:30:14 +0800 Subject: Drop TargetFrameworkProfile line from csproj It seems to make the ExtensionAttribute class unavailable, causing FTBFSes. --- Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj b/Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj index e6ce314..456c8ef 100644 --- a/Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj +++ b/Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj @@ -1,4 +1,4 @@ - + Debug @@ -42,7 +42,6 @@ 1.0.0.%2a false true - Client true @@ -292,4 +291,4 @@ - \ No newline at end of file + debian/patches/Use-single-argument-BigInteger.Parse-calls.patch0000644000000000000000000000415712171133160021655 0ustar From: Chow Loong Jin Date: Sun, 30 Jun 2013 23:11:36 +0800 Subject: Use single-argument BigInteger.Parse() calls BigInteger.Parse is supposed to accept two arguments in .NET 4.0, but apparently only supports one in Mono. This patch reverts to the single-argument call to let it compile. --- Source/Src/Newtonsoft.Json/JsonTextReader.cs | 4 ++-- Source/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Src/Newtonsoft.Json/JsonTextReader.cs b/Source/Src/Newtonsoft.Json/JsonTextReader.cs index 52ddc74..3ce3d07 100644 --- a/Source/Src/Newtonsoft.Json/JsonTextReader.cs +++ b/Source/Src/Newtonsoft.Json/JsonTextReader.cs @@ -1269,7 +1269,7 @@ namespace Newtonsoft.Json { #if !(NET20 || NET35 || SILVERLIGHT || PORTABLE40 || PORTABLE) string number = _stringReference.ToString(); - numberValue = BigInteger.Parse(number, CultureInfo.InvariantCulture); + numberValue = BigInteger.Parse(number); numberType = JsonToken.Integer; #else // todo - validate number was a valid integer to make sure overflow was the reason for failure @@ -1565,4 +1565,4 @@ namespace Newtonsoft.Json get { return _charPos - _lineStartPos; } } } -} \ No newline at end of file +} diff --git a/Source/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs b/Source/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs index 95f471e..6c9d3d6 100644 --- a/Source/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs +++ b/Source/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs @@ -301,7 +301,7 @@ namespace Newtonsoft.Json.Utilities if (value is BigInteger) return (BigInteger)value; if (value is string) - return BigInteger.Parse((string)value, CultureInfo.InvariantCulture); + return BigInteger.Parse((string)value); if (value is float) return new BigInteger((float)value); if (value is double) @@ -681,4 +681,4 @@ namespace Newtonsoft.Json.Utilities return ParseResult.Success; } } -} \ No newline at end of file +} debian/patches/series0000644000000000000000000000021212171133160012020 0ustar Use-single-argument-BigInteger.Parse-calls.patch Drop-TargetFrameworkProfile-line-from-csproj.patch Bump-AssemblyVersion-to-5.0.0.0.patch debian/patches/Bump-AssemblyVersion-to-5.0.0.0.patch0000644000000000000000000000325112171133160017074 0ustar From: Chow Loong Jin Date: Sun, 14 Jul 2013 19:30:40 +0800 Subject: Bump AssemblyVersion to 5.0.0.0 Upstream has decided not to bump AssemblyVersion for this version upwards, but we cannot co-install multiple versions of the same binary into the GAC with the same AssemblyVersion. --- Source/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs | 2 +- Source/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs b/Source/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs index 5560f08..9d84538 100644 --- a/Source/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs +++ b/Source/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs @@ -74,5 +74,5 @@ using System.Security; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("4.5.0.0")] +[assembly: AssemblyVersion("5.0.0.0")] [assembly: AssemblyFileVersion("5.0.6.16206")] diff --git a/Source/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs b/Source/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs index 3fef6ff..74b8821 100644 --- a/Source/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs +++ b/Source/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs @@ -91,7 +91,7 @@ using System.Security; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("4.5.0.0")] +[assembly: AssemblyVersion("5.0.0.0")] [assembly: AssemblyFileVersion("5.0.6.16206")] [assembly: CLSCompliant(true)] debian/rules0000755000000000000000000000334712171133160010250 0ustar #!/usr/bin/make -f # -*- makefile -*- include /usr/share/dpkg/default.mk UPSTREAM_URL = http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=json&DownloadId=690219&FileTime=130149616152700000&Build=20602 UNPACK_DIR = $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM) ZIPFILE = $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).zip TARFILE = $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz get-orig-source: ! [ -e '$(ZIPFILE)' ] && ! [ -e '$(TARFILE)' ] wget '$(UPSTREAM_URL)' -O '$(ZIPFILE)' unzip -d '$(UNPACK_DIR)' '$(ZIPFILE)' GZIP="-9fn --rsyncable" tar -czf $(TARFILE) $(UNPACK_DIR) \ --exclude='StreamingContext.cs' \ --exclude='*.chm' \ --exclude='*.dll' \ --exclude='*.exe' \ --exclude='*.pdb' rm -r $(ZIPFILE) $(UNPACK_DIR) %: dh $@ --with=cli bindir = Source/Src/Newtonsoft.Json/bin/Release/Net40/ xmldir = Bin/Net40/ override_dh_auto_build: xbuild Source/Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj \ /property:SignAssembly=true \ /property:AssemblyOriginatorKeyFile=Dynamic.snk \ /property:Configuration=Release \ /property:DefineConstants='SIGNED NET40 TRACE' mdoc update \ -o monodoc \ -i $(xmldir)/Newtonsoft.Json.xml \ $(bindir)/Newtonsoft.Json.dll mdoc assemble \ --format ecma \ --out Newtonsoft.Json \ monodoc override_dh_auto_clean: rm -rf \ monodoc \ Newtonsoft.Json.tree Newtonsoft.Json.zip \ Source/Src/Newtonsoft.Json/bin/ \ Source/Src/Newtonsoft.Json/obj/ override_dh_makeclilibs: dh_makeclilibs -m5.0r6 debian/newtonsoft-json.pc: debian/newtonsoft-json.pc.in sed -e 's/@VERSION@/$(DEB_VERSION_UPSTREAM)/' $< > $@ override_dh_install: debian/newtonsoft-json.pc dh_install override_dh_clean: dh_clean rm -f debian/newtonsoft-json.pc debian/libnewtonsoft-json-cil-dev.install0000644000000000000000000000005512171133160015736 0ustar debian/newtonsoft-json.pc /usr/lib/pkgconfig debian/libnewtonsoft-json5.0-cil.install0000644000000000000000000000014312171133160015403 0ustar Source/Src/Newtonsoft.Json/bin/Release/Net40/Newtonsoft.Json.dll* /usr/lib/cli/Newtonsoft.Json-5.0 debian/monodoc-newtonsoft-json-manual.install0000644000000000000000000000024512171133160016636 0ustar Newtonsoft.Json.zip /usr/lib/monodoc/sources Newtonsoft.Json.tree /usr/lib/monodoc/sources debian/Newtonsoft.Json.source /usr/lib/monodoc/sources debian/libnewtonsoft-json5.0-cil.installcligac0000644000000000000000000000006512171133160016551 0ustar /usr/lib/cli/Newtonsoft.Json-5.0/Newtonsoft.Json.dll