update code

This commit is contained in:
zhuchunyi 2019-11-06 19:48:28 +08:00
parent 35ff8f6e95
commit 3ec8cec8f7

View File

@ -1,36 +1,38 @@
Name: pyserial
Version: 3.4
Release: 1
Summary: Python serial port access library
Release: 2
Summary: Python serial port access library.
License: BSD license
URL: https://github.com/pyserial/pyserial
Source0: https://github.com/pyserial/pyserial/archive/v3.4.tar.gz
Source0: https://github.com/%{name}/%{name}/archive/v3.4.tar.gz
BuildRequires: python2-devel python3-devel
BuildArch: noarch
Provides: pyserial%{?_isa} = %{version}-%{release}
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 python2-pyserial
Summary: Python2 serial port access library
%{?python_provide:%python_provide python2-pyserial}
Provides: pyserial%{?_isa} = %{version}-%{release}
%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-pyserial
%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-pyserial
Summary: Python3 serial port access library
%package -n python3-%{name}
Summary: Python3 serial port access library.
%description -n python3-pyserial
%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
@ -59,20 +61,34 @@ popd
install -D -m 0755 %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-2.py
ln -sf %{_bindir}/miniterm.py-2 %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py
%check
%files -n python2-pyserial
%doc LICENSE.txt CHANGES.rst README.rst examples
%pre
%preun
%post
%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-pyserial
%doc LICENSE.txt CHANGES.rst README.rst examples
%files -n python3-%{name}
%doc CHANGES.rst README.rst examples
%license LICENSE.txt
%{_bindir}/miniterm-3.py
%{_bindir}/miniterm-%{python3_version}.py
%{python3_sitelib}/*
%changelog
* 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
- Package init.