packages: python-serial/python-serial.spec - fixed installation of the pyth...

wrobell wrobell at pld-linux.org
Wed Jun 1 22:10:40 CEST 2011


Author: wrobell                      Date: Wed Jun  1 20:10:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fixed installation of the python 2.x and 3.x packages

---- Files affected:
packages/python-serial:
   python-serial.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: packages/python-serial/python-serial.spec
diff -u packages/python-serial/python-serial.spec:1.23 packages/python-serial/python-serial.spec:1.24
--- packages/python-serial/python-serial.spec:1.23	Mon May 30 20:21:48 2011
+++ packages/python-serial/python-serial.spec	Wed Jun  1 22:10:35 2011
@@ -51,18 +51,23 @@
 %setup  -q -n pyserial-%{version}
 
 %build
-%{__python} ./setup.py build
-%{__python3} ./setup.py build
+%{__python} ./setup.py build --build-base py2
+%{__python3} ./setup.py build --build-base py3
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version} \
+	$RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 
-%{__python} ./setup.py install \
+%{__python} ./setup.py build \
+	--build-base py2 \
+	install \
 	--optimize 2 \
 	--root=$RPM_BUILD_ROOT
 
-%{__python3} ./setup.py install \
+%{__python3} ./setup.py build \
+	--build-base py3 \
+	install \
 	--optimize 2 \
 	--root=$RPM_BUILD_ROOT
 
@@ -97,6 +102,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2011/06/01 20:10:35  wrobell
+- fixed installation of the python 2.x and 3.x packages
+
 Revision 1.23  2011/05/30 18:21:48  wrobell
 - started to add python 2.x package for pyserial 2.5
 
================================================================

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



More information about the pld-cvs-commit mailing list