pyserial/pyserial.spec

99 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:14:28 -04:00
Name: pyserial
2021-02-02 10:46:34 +08:00
Version: 3.5
2023-04-15 14:09:52 +08:00
Release: 4
2019-11-06 19:48:28 +08:00
Summary: Python serial port access library.
2022-08-08 10:06:46 +08:00
License: BSD-3-Clause
2019-09-30 11:14:28 -04:00
URL: https://github.com/pyserial/pyserial
2021-02-02 10:46:34 +08:00
Source0: https://github.com/%{name}/%{name}/archive/v3.5.tar.gz
2019-09-30 11:14:28 -04:00
BuildRequires: python3-devel
2019-11-06 19:48:28 +08:00
2019-09-30 11:14:28 -04:00
Obsoletes: pyserial < %{version}-%{release}
2019-11-06 19:48:28 +08:00
Provides: pyserial%{?_isa} = %{version}-%{release}
BuildArch: noarch
2019-09-30 11:14:28 -04:00
%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.
2019-11-06 19:48:28 +08:00
%package -n python3-%{name}
Summary: Python3 serial port access library.
2019-09-30 11:14:28 -04:00
2019-11-06 19:48:28 +08:00
%description -n python3-%{name}
2019-09-30 11:14:28 -04:00
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}
popd
2019-11-06 19:48:28 +08:00
%check
%{__python3} test/run_all_tests.py
2019-11-06 19:48:28 +08:00
%pre
%preun
2019-09-30 11:14:28 -04:00
2019-11-06 19:48:28 +08:00
%post
%postun
%files -n python3-%{name}
%doc CHANGES.rst README.rst examples
%license LICENSE.txt
2021-02-02 10:46:34 +08:00
%{_bindir}/pyserial*
2019-09-30 11:14:28 -04:00
%{python3_sitelib}/*
%changelog
2023-04-15 14:09:52 +08:00
* Sat Apr 15 2023 shixuantong <shixuantong1@huawei.com> - 3.5-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:remove useless empty file
* Wed Dec 21 2022 zhuofeng <zhuofeng2@huawei.com> - 3.5-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:make the test check
2022-08-08 10:06:46 +08:00
* Mon Aug 8 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 3.5-2
- License compliance rectification
2021-02-02 10:46:34 +08:00
* 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
2020-03-31 21:05:02 +08:00
* Tue Mar 31 2020 kangenbo <kangenbo@huawei.com> - 3.4-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:fix symbolic link
2019-11-06 19:48:28 +08:00
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4-2
- Package rebuild.
2019-09-30 11:14:28 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4-1
2019-11-06 19:48:28 +08:00
- Package init.