diff --git a/README.md b/README.md index c80d739..2b5979a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # python-serial +PySerial encapsulates the access for the serial port. +It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono). +The module named “serial” automatically selects the appropriate backend. + diff --git a/python-serial.spec b/python-serial.spec new file mode 100644 index 0000000..717bc22 --- /dev/null +++ b/python-serial.spec @@ -0,0 +1,65 @@ +Name: python-serial +Version: 2.7 +Release: 1mamba +Summary: Python Serial Port Extension +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://pyserial.sourceforge.net/ +Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz +License: Python +Requires: python >= %python_version +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%description +PySerial encapsulates the access for the serial port. +It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono). +The module named “serial” automatically selects the appropriate backend. + +%prep +%setup -q -n pyserial-%{version} + +%build +%{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +# remove win32 examples +rm examples/{scanwin32.py,setup-miniterm-py2exe.py} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc CHANGES.txt examples LICENSE.txt README.txt + +%changelog +* Tue Oct 22 2013 Automatic Build System 2.7-1mamba +- automatic update by autodist + +* Fri May 17 2013 Silvan Calarco 2.6-2mamba +- python 2.7 mass rebuild + +* Wed Nov 02 2011 Stefano Cotta Ramusino 2.6-1mamba +- update to 2.6 + +* Thu Aug 26 2010 Stefano Cotta Ramusino 2.5-1mamba +- update to 2.5 + +* Thu Dec 17 2009 Stefano Cotta Ramusino 2.4-1mamba +- package created by autospec