Compare commits

..

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
d0ec4d75a9
!17 [sync] PR-16: remove useless empty file
From: @openeuler-sync-bot 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-04-17 02:32:44 +00:00
sxt1001
0162b53152 remove useless empty file
(cherry picked from commit ffe23dc0d4b7a54806bff38243a1c993993e4e10)
2023-04-17 09:27:52 +08:00
openeuler-ci-bot
b0d6097bc7
!15 [sync] PR-12: make the test check
From: @openeuler-sync-bot 
Reviewed-by: @ziyangc 
Signed-off-by: @ziyangc
2023-04-15 07:33:48 +00:00
zhuofeng
ee34aaf326 make the test check
Signed-off-by: zhuofeng <zhuofeng2@huawei.com>
(cherry picked from commit aa51164764e55f5188bfdec4a5fd396f878b43b7)
2023-04-15 14:11:57 +08:00
openeuler-ci-bot
2b61e39bc4
!7 [sync] PR-5: License compliance rectification
From: @openeuler-sync-bot 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-08-09 02:45:46 +00:00
wenzhiwei11
c526c5ad8e License compliance rectification
(cherry picked from commit a2ec701f6b9750547a43318db4b172e8d91c0bda)
2022-08-08 16:40:33 +08:00
openeuler-ci-bot
0f2905b335 !4 upgrade pyserial to 3.5 in master
From: @jlwwlsqc
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-02-02 17:21:51 +08:00
wangjie
4bb732736f upgrade 3.5 2021-02-02 10:46:34 +08:00
openeuler-ci-bot
011f11fc76 !3 remove python2
From: @jlwwlsqc
Reviewed-by: @overweight
Signed-off-by: @overweight
2020-10-30 17:52:17 +08:00
openeuler-ci-bot
921a99132c remove python2
Merge pull request !2 from Markeryang/master
2020-10-30 16:13:04 +08:00
openeuler-ci-bot
2eb182fe7b !2 add yaml file in package
Merge pull request !2 from Markeryang/master
2020-06-23 20:29:22 +08:00
Markeryang
0917f0c9dd add pyserial.yaml. 2020-06-12 17:56:05 +08:00
4 changed files with 35 additions and 33 deletions

View File

@ -1,12 +1,12 @@
Name: pyserial
Version: 3.4
Release: 3
Version: 3.5
Release: 4
Summary: Python serial port access library.
License: BSD license
License: BSD-3-Clause
URL: https://github.com/pyserial/pyserial
Source0: https://github.com/%{name}/%{name}/archive/v3.4.tar.gz
Source0: https://github.com/%{name}/%{name}/archive/v3.5.tar.gz
BuildRequires: python2-devel python3-devel
BuildRequires: python3-devel
Obsoletes: pyserial < %{version}-%{release}
Provides: pyserial%{?_isa} = %{version}-%{release}
@ -18,17 +18,6 @@ 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 python2-%{name}
Summary: Python2 serial port access library.
%{?python_provide:%python_provide python2-%{name}}
Obsoletes: pyserial < %{version}-%{release}
Provides: pyserial%{?_isa} = %{version}-%{release}
%description -n python2-%{name}
This module encapsulates the access for the serial port. It provides
backends for Python2 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.
@ -44,7 +33,6 @@ rm -rf %{py3dir}
cp -a . %{py3dir}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
pushd %{py3dir}
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd
@ -53,15 +41,10 @@ popd
rm -rf %{buildroot}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
install -D -m 0755 %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-3.py
rm -rf %{buildroot}/%{_bindir}/miniterm.py
ln -sf %{_bindir}/miniterm-3.py %{buildroot}/%{_bindir}/miniterm-%{python3_version}.py
popd
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
install -D -m 0755 %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-2.py
ln -sf %{_bindir}/miniterm-2.py %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py
%check
%{__python3} test/run_all_tests.py
%pre
@ -71,22 +54,37 @@ ln -sf %{_bindir}/miniterm-2.py %{buildroot}/%{_bindir}/miniterm-%{python2_versi
%postun
%files -n python2-%{name}
%doc CHANGES.rst README.rst examples
%license LICENSE.txt
%{_bindir}/miniterm.py
%{_bindir}/miniterm-2.py
%{_bindir}/miniterm-%{python2_version}.py
%{python2_sitelib}/*
%files -n python3-%{name}
%doc CHANGES.rst README.rst examples
%license LICENSE.txt
%{_bindir}/miniterm-3.py
%{_bindir}/miniterm-%{python3_version}.py
%{_bindir}/pyserial*
%{python3_sitelib}/*
%changelog
* Sat Apr 15 2023 shixuantong <shixuantong1@huawei.com> - 3.5-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:remove useless empty file
* Fri Dec 23 2022 zhuofeng <zhuofeng2@huawei.com> - 3.5-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:make the test check
* 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

4
pyserial.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pyserial/pyserial
tag_prefix: ^v
seperator: .

Binary file not shown.

BIN
v3.5.tar.gz Normal file

Binary file not shown.