From 09fddc6d808fd32ecce47a94d3cba3c3a8aa990e Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Sat, 9 Dec 2006 20:34:50 +0000 Subject: [PATCH] fix egg-info directory for python 2.5 --- python-simplejson.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-simplejson.spec b/python-simplejson.spec index c54b271..94852b8 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -1,8 +1,10 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} + Name: python-simplejson Version: 1.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Simple, fast, extensible JSON encoder/decoder for Python Group: System Environment/Libraries @@ -53,13 +55,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc docs %dir %{python_sitelib}/simplejson -%{python_sitelib}/simplejson-%{version}-py2.4.egg-info +%{python_sitelib}/simplejson-%{version}-py%{pyver}.egg-info %{python_sitelib}/simplejson/*.py* %{python_sitelib}/simplejson/tests/*.py* %changelog -* Sat Dec 9 2006 Luke Macken - 1.4-3 +* Sat Dec 9 2006 Luke Macken - 1.4-4 - Add python-devel to BuildRequires * Sat Dec 9 2006 Luke Macken - 1.4-2