87 lines
2.7 KiB
RPMSpec
87 lines
2.7 KiB
RPMSpec
Name: python-serial
|
|
Version: 3.5b0
|
|
Release: 3mamba
|
|
Summary: Python Serial Port Extension
|
|
Group: System/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
URL: https://pyserial.sourceforge.net/
|
|
Source: http://pypi.debian.net/pyserial/pyserial-%{version}.tar.gz
|
|
License: Python
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: python3.11dist(setuptools)
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
|
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.
|
|
|
|
%if "%{?with_pyver}"
|
|
%pyver_package
|
|
%endif
|
|
|
|
%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 %{?pyappend} -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitearch}/pyserial-%{version}-py*.egg-info
|
|
%{python_sitearch}/pyserial-%{version}-py*.egg-info/*
|
|
%doc examples LICENSE.txt
|
|
|
|
%changelog
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 3.5b0-3mamba
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5b0-2mamba
|
|
- rebuilt with distdeps
|
|
|
|
* 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
|