packages: python-pyinotify/python-pyinotify.spec - hack to prevent interfer...

draenog draenog at pld-linux.org
Fri Sep 30 08:33:52 CEST 2011


Author: draenog                      Date: Fri Sep 30 06:33:52 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- hack to prevent interference between building of module for two versions of
  two versions of python

---- Files affected:
packages/python-pyinotify:
   python-pyinotify.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/python-pyinotify/python-pyinotify.spec
diff -u packages/python-pyinotify/python-pyinotify.spec:1.6 packages/python-pyinotify/python-pyinotify.spec:1.7
--- packages/python-pyinotify/python-pyinotify.spec:1.6	Fri Sep 30 06:53:45 2011
+++ packages/python-pyinotify/python-pyinotify.spec	Fri Sep 30 08:33:47 2011
@@ -45,12 +45,13 @@
 
 %build
 export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build
-%{__python3} setup.py build
+%{__python} setup.py build -b build_python2
+%{__python3} setup.py build -b build_python3
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv build_python2 build
 %{__python} setup.py install \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
@@ -61,6 +62,8 @@
 
 install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+%{__rm} -r build
+mv build_python3 build
 %{__python3} setup.py \
         install \
         --root=$RPM_BUILD_ROOT \
@@ -88,6 +91,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/09/30 06:33:47  draenog
+- hack to prevent interference between building of module for two versions of
+  two versions of python
+
 Revision 1.6  2011/09/30 04:53:45  draenog
 - up to 0.9.2
 - python3 modules
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-pyinotify/python-pyinotify.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list