[packages/python-simplejson] - updated to 3.0.8 (for python 2.5+) - pass optflags

qboosh qboosh at pld-linux.org
Wed Feb 20 19:56:03 CET 2013


commit 0569c6740f2f0d236a4a48af5ce2c16c3d007512
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Feb 20 19:56:14 2013 +0100

    - updated to 3.0.8 (for python 2.5+)
    - pass optflags

 python-simplejson.spec | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/python-simplejson.spec b/python-simplejson.spec
index b0b554d..0d0b6a0 100644
--- a/python-simplejson.spec
+++ b/python-simplejson.spec
@@ -1,16 +1,15 @@
-# TODO: optflags
 %define		module		simplejson
 Summary:	Simple, fast, extensible JSON encoder/decoder for Python
 Summary(pl.UTF-8):	Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona
 Name:		python-%{module}
-Version:	2.5.2
+Version:	3.0.8
 Release:	1
-License:	MIT
+License:	MIT or AFL v2.1
 Group:		Libraries
-Source0:	http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5:	d7a7acf0bd7681bd116b5c981d2f7959
+Source0:	http://pypi.python.org/packages/source/s/simplejson/%{module}-%{version}.tar.gz
+# Source0-md5:	a3b584dcc6963074c24f391b20edd805
 URL:		http://undefined.org/python/#simplejson
-BuildRequires:	python >= 1:2.4
+BuildRequires:	python >= 1:2.5
 BuildRequires:	python-devel
 BuildRequires:	python-setuptools >= 0.6-0.c1
 BuildRequires:	rpm-pythonprov
@@ -19,16 +18,18 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 simplejson is a simple, fast, complete, correct and extensible JSON
-<http://json.org/> encoder and decoder for Python 2.4+.
+<http://json.org/> encoder and decoder for Python 2.5+.
 
 %description -l pl.UTF-8
 simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
-dekoder JSON (<http://json.org/>) dla Pythona 2.4 i nowszych wersji.
+dekoder JSON (<http://json.org/>) dla Pythona 2.5 i nowszych wersji.
 
 %prep
 %setup -qn %{module}-%{version}
 
 %build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
 %{__python} setup.py build
 
 %install
@@ -46,6 +47,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.rst
 %dir %{py_sitedir}/simplejson
 %{py_sitedir}/simplejson/*.py[co]
 %attr(755,root,root) %{py_sitedir}/simplejson/*.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-simplejson.git/commitdiff/0569c6740f2f0d236a4a48af5ce2c16c3d007512



More information about the pld-cvs-commit mailing list