9 Star 0 Fork 9

src-openEuler/pyserial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pyserial.spec 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
Name: pyserial
Version: 3.5
Release: 2
Summary: Python serial port access library.
License: BSD-3-Clause
URL: https://github.com/pyserial/pyserial
Source0: https://github.com/%{name}/%{name}/archive/v3.5.tar.gz
BuildRequires: python3-devel
Obsoletes: pyserial < %{version}-%{release}
Provides: pyserial%{?_isa} = %{version}-%{release}
BuildArch: noarch
%description
This module encapsulates the access for the serial port. It provides
backends for Python running on Windows, OSX, Linux,BSD (possibly any POSIX compliant system)
and IronPython. The module named "serial" automatically selects the appropriate backend.
%package -n python3-%{name}
Summary: Python3 serial port access library.
%description -n python3-%{name}
This module encapsulates the access for the serial port. It provides
backends for Python3 running on Windows, OSX, Linux,BSD (possibly any POSIX compliant system)
and IronPython. The module named "serial" automatical
%prep
export UNZIP="-aa"
%setup -q
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
pushd %{py3dir}
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd
%install
rm -rf %{buildroot}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
rm -rf %{buildroot}/%{_bindir}/miniterm.py
ln -sf %{_bindir}/miniterm-3.py %{buildroot}/%{_bindir}/miniterm-%{python3_version}.py
popd
%check
%pre
%preun
%post
%postun
%files -n python3-%{name}
%doc CHANGES.rst README.rst examples
%license LICENSE.txt
%{_bindir}/miniterm-%{python3_version}.py
%{_bindir}/pyserial*
%{python3_sitelib}/*
%changelog
* Mon Aug 8 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 3.5-2
- License compliance rectification
* Tue Feb 2 2021 wangjie<wangjie294@huawei.com> -3.5-1
- upgrade 3.5-1
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -3.4-4
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Tue Mar 31 2020 kangenbo <kangenbo@huawei.com> - 3.4-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:fix symbolic link
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4-2
- Package rebuild.
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4-1
- Package init.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/pyserial.git
git@gitee.com:src-openeuler/pyserial.git
src-openeuler
pyserial
pyserial
openEuler-23.03

搜索帮助