Author: wrobell                      Date: Mon May 30 18:21:53 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- started to add python 2.x package for pyserial 2.5

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

---- Diffs:

================================================================
Index: packages/python-serial/python-serial.spec
diff -u packages/python-serial/python-serial.spec:1.22 
packages/python-serial/python-serial.spec:1.23
--- packages/python-serial/python-serial.spec:1.22      Sun May 22 03:56:59 2011
+++ packages/python-serial/python-serial.spec   Mon May 30 20:21:48 2011
@@ -15,6 +15,9 @@
 %pyrequires_eq python
 BuildRequires: python-devel
 BuildRequires: python-modules
+%pyrequires_eq python3
+BuildRequires: python3-devel
+BuildRequires: python3-modules
 BuildRequires: rpm-pythonprov
 BuildRequires: unzip
 BuildArch:     noarch
@@ -32,22 +35,42 @@
 systemie zgodnym z POSIX) oraz Jythona. Moduł o nazwie "serial"
 automatycznie wybiera właściwy backend.
 
+%package -n    python3-%{module}
+Summary:       Serial port interface module
+Version:       %{version}
+Release:       %{release}
+Group:         Libraries/Python
+
+%description -n python3-%{module}
+This module encapsulates the access for the serial port. It provides
+backends for Python running on Windows, Linux, BSD (possibly any POSIX
+compilant system) and Jython. The module named "serial" automatically
+selects the appropriate backend.
+
 %prep
 %setup  -q -n pyserial-%{version}
 
 %build
+%{__python} ./setup.py build
 %{__python3} ./setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+%{__python} ./setup.py install \
+       --optimize 2 \
+       --root=$RPM_BUILD_ROOT
+
 %{__python3} ./setup.py install \
        --optimize 2 \
        --root=$RPM_BUILD_ROOT
 
-mv examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
+cp examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name "*serialjava*" -exec rm {} \;
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name "*serialwin*" -exec rm {} \;
 find $RPM_BUILD_ROOT%{py3_sitescriptdir} -name "*serialjava*" -exec rm {} \;
 find $RPM_BUILD_ROOT%{py3_sitescriptdir} -name "*serialwin*" -exec rm {} \;
 
@@ -57,7 +80,14 @@
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.txt LICENSE.txt README.txt
-%{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/python-%{module}-%{version}
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/*egg-info
+
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.txt
+%{_examplesdir}/python3-%{module}-%{version}
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/*egg-info
 
@@ -67,6 +97,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2011/05/30 18:21:48  wrobell
+- started to add python 2.x package for pyserial 2.5
+
 Revision 1.22  2011/05/22 01:56:59  wrobell
 - ver. 2.5 (for python 3 now, python 2 package to be done)
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to