SPECS: python-simplejson.spec - pl desc - .egg-info needs python 2...

qboosh qboosh at pld-linux.org
Sun Nov 19 10:13:06 CET 2006


Author: qboosh                       Date: Sun Nov 19 09:13:06 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl desc
- .egg-info needs python 2.5
- added py_postclean, killed files duplicate (needs check)

---- Files affected:
SPECS:
   python-simplejson.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/python-simplejson.spec
diff -u SPECS/python-simplejson.spec:1.3 SPECS/python-simplejson.spec:1.4
--- SPECS/python-simplejson.spec:1.3	Sun Nov 19 04:56:30 2006
+++ SPECS/python-simplejson.spec	Sun Nov 19 10:13:01 2006
@@ -1,6 +1,5 @@
 # $Revision$
-%define     module  simplejson
-%define     python_version  2.4
+%define		module		simplejson
 Summary:	Simple, fast, extensible JSON encoder/decoder for Python
 Summary(pl):	Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona
 Name:		python-%{module}
@@ -8,17 +7,23 @@
 Release:	0.3
 License:	MIT
 Group:		Libraries
-Source0:    http://cheeseshop.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
+Source0:	http://cheeseshop.python.org/packages/source/s/simplejson/%{module}-%{version}.tar.gz
 # Source0-md5:	5fbad786a4b151d44a9b1e1e157e5510
 URL:		http://undefined.org/python/#simplejson
-Requires:   python >= %{python_version}
-BuildArch:  noarch
+BuildRequires:	python >= 1:2.5
+BuildRequires:	rpm-pythonprov
+BuildArch:	noarch
 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.3+. It is pure Python
-code with no dependencies.
+<http://json.org/> encoder and decoder for Python 2.3+. It is pure
+Python code with no dependencies.
+
+%description -l pl
+simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
+dekoder JSON (<http://json.org/>) dla Pythona 2.3 i nowszych wersji.
+Jest to kod wyłącznie w Pythonie bez dodatkowych zależności.
 
 %prep
 %setup -qn %{module}-%{version}
@@ -32,15 +37,17 @@
 python setup.py install \
 	--root=$RPM_BUILD_ROOT \
 	--optimize=2
-	
+
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py%{python_version}.egg-info
+%dir %{py_sitescriptdir}/json
+%{py_sitescriptdir}/json/*.py[co]
+%{py_sitescriptdir}/json-%{version}-py*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -48,6 +55,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2006/11/19 09:13:01  qboosh
+- pl desc
+- .egg-info needs python 2.5
+- added py_postclean, killed files duplicate (needs check)
+
 Revision 1.3  2006/11/19 03:56:30  emes
 - changed arch to noarch
 
@@ -57,4 +69,3 @@
 
 Revision 1.1  2006/11/19 00:35:57  emes
 - first version, builds but not tested if works
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-simplejson.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list