[python-demjson] - Update to 1.4. Upstream changed license to LGPLv3+. - Apply a one-liner patch provided upstream.
Thomas Moschny
thm at fedoraproject.org
Wed Oct 27 13:05:31 UTC 2010
commit d9c4dd667eb077f322f733e464e0b69c49451217
Author: Thomas Moschny <thm at fedoraproject.org>
Date: Wed Oct 27 15:05:02 2010 +0200
- Update to 1.4. Upstream changed license to LGPLv3+.
- Apply a one-liner patch provided upstream.
.gitignore | 3 ++-
demjson-1.4-0xFF-bug.patch | 12 ++++++++++++
python-demjson.spec | 12 +++++++++---
sources | 2 +-
4 files changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8146ed6..71dfdc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-demjson-1.3.tar.gz
+/demjson-1.3.tar.gz
+/demjson-1.4.tar.gz
diff --git a/demjson-1.4-0xFF-bug.patch b/demjson-1.4-0xFF-bug.patch
new file mode 100644
index 0000000..5e15694
--- /dev/null
+++ b/demjson-1.4-0xFF-bug.patch
@@ -0,0 +1,12 @@
+diff -up demjson-1.4/demjson.py.orig demjson-1.4/demjson.py
+--- demjson-1.4/demjson.py.orig 2008-12-17 07:08:20.000000000 +0100
++++ demjson-1.4/demjson.py 2009-12-22 12:02:48.000000000 +0100
+@@ -907,7 +907,7 @@ class JSON(object):
+ # need to be escaped.
+
+ self._asciiencodable = [32 <= c < 128 and not self._rev_escapes.has_key(chr(c))
+- for c in range(0,255)]
++ for c in range(0,256)]
+
+ def _set_strictness(self, strict):
+ """Changes the strictness behavior.
diff --git a/python-demjson.spec b/python-demjson.spec
index b13c9b3..30f0395 100644
--- a/python-demjson.spec
+++ b/python-demjson.spec
@@ -1,14 +1,15 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-demjson
-Version: 1.3
-Release: 6%{?dist}
+Version: 1.4
+Release: 1%{?dist}
Summary: Python JSON module and lint checker
Group: Development/Languages
-License: GPLv3+
+License: LGPLv3+
URL: http://deron.meranda.us/python/demjson/
Source0: http://deron.meranda.us/python/demjson/dist/demjson-%{version}.tar.gz
+Patch0: demjson-1.4-0xFF-bug.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
@@ -32,6 +33,7 @@ text for strict compliance to the standard.
%prep
%setup -q -n demjson-%{version}
+%patch0 -p1 -b.0xFF
%build
@@ -71,6 +73,10 @@ rm -rf %{buildroot}
%changelog
+* Wed Oct 27 2010 Thomas Moschny <thomas.moschny at gmx.de> - 1.4-1
+- Update to 1.4. Upstream changed license to LGPLv3+.
+- Apply a one-liner patch provided upstream.
+
* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 1.3-6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
diff --git a/sources b/sources
index 7d8d137..20fa308 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5989d22248cce8641c986ed189e4e601 demjson-1.3.tar.gz
+6f6c88bfe2443390230109c709243fcd demjson-1.4.tar.gz
More information about the scm-commits
mailing list