Getting python site-packages directory from the environment.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 21 May 2009 13:51:10 +0000 (13:51 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 21 May 2009 13:51:10 +0000 (13:51 +0000)
pyOpenSSL.spec

index 23a882f..b3b0668 100644 (file)
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f INSTALLED_OBJECTS
 %defattr(-,root,root,-)
-/usr/lib/python2.5/site-packages/OpenSSL
+%(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/OpenSSL
 
 %changelog
 * Wed May 20 2009 Baris Metin <tmetin@sophia.inria.fr>