python-serial/python-serial.spec

75 lines
2.3 KiB
RPMSpec

Name: python-serial
Version: 3.5b0
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.debian.net/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 examples LICENSE.txt
%changelog
* Thu Sep 24 2020 Automatic Build System <autodist@mambasoft.it> 3.5b0-1mamba
- automatic update by autodist
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 3.4-1mamba
- automatic update by autodist
* Thu Sep 15 2016 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
- automatic update by autodist
* 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