[packages/python-cjson] - updated to 1.2.2 (fixes CVE-2009-4924, CVE-2010-1666)
qboosh
qboosh at pld-linux.org
Sun Jul 9 21:44:32 CEST 2023
commit d65473365f57c8b8194c5466051f2a1a1c2c1a81
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 9 21:33:17 2023 +0200
- updated to 1.2.2 (fixes CVE-2009-4924, CVE-2010-1666)
python-cjson.spec | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
---
diff --git a/python-cjson.spec b/python-cjson.spec
index 5b69581..252761b 100644
--- a/python-cjson.spec
+++ b/python-cjson.spec
@@ -1,16 +1,16 @@
Summary: Python C JSON - Fast JSON encoder/decoder for Python
+Summary(pl.UTF-8): Python C JSON - szybki koder/dekoder JSON dla Pythona
Name: python-cjson
-Version: 1.0.5
-Release: 7
-License: LGPL v2+
+Version: 1.2.2
+Release: 1
+License: LGPL v2.1+
Group: Libraries/Python
-Source0: http://pypi.python.org/packages/source/p/python-cjson/%{name}-%{version}.tar.gz
-# Source0-md5: 4d55b66ecdf0300313af9d030d9644a3
-URL: http://pypi.python.org/pypi/python-cjson/
-BuildRequires: python-devel
+Source0: https://files.pythonhosted.org/packages/source/p/python-cjson/%{name}-%{version}.tar.gz
+# Source0-md5: 187e43d94a78694129bf25e541a74cd5
+URL: https://pypi.org/project/python-cjson/
+BuildRequires: python-devel >= 1:2.5
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
-%pyrequires_eq python-modules
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -19,6 +19,11 @@ The module is written in C and it is up to 250 times faster when
compared to the other python JSON implementations which are written
directly in python.
+%description -l pl.UTF-8
+Ten moduł to bardzo szybka implementacja kodera/dekodera JSON dla
+Pythona. Moduł jest napisany w C i jest do 250 razy szybszy w stosunku
+do innych implementacji JSON, napisanych bezpośrednio w Pythonie.
+
%prep
%setup -q
@@ -30,12 +35,13 @@ rm -rf $RPM_BUILD_ROOT
%py_install
+%py_postclean
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%if "%{py_ver}" > "2.4"
+%doc ChangeLog LICENSE README
+%attr(755,root,root) %{py_sitedir}/cjson.so
%{py_sitedir}/python_cjson-%{version}-py*.egg-info
-%endif
-%{py_sitedir}/cjson.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cjson.git/commitdiff/d65473365f57c8b8194c5466051f2a1a1c2c1a81
More information about the pld-cvs-commit
mailing list