python-serial/python-serial.spec

66 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

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 <stefano.cotta@openmamba.org>
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 <autodist@mambasoft.it> 2.7-1mamba
- automatic update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
- python 2.7 mass rebuild
* Wed Nov 02 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.6-1mamba
- update to 2.6
* Thu Aug 26 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.5-1mamba
- update to 2.5
* Thu Dec 17 2009 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4-1mamba
- package created by autospec