update code
This commit is contained in:
parent
35ff8f6e95
commit
3ec8cec8f7
@ -1,36 +1,38 @@
|
|||||||
Name: pyserial
|
Name: pyserial
|
||||||
Version: 3.4
|
Version: 3.4
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python serial port access library
|
Summary: Python serial port access library.
|
||||||
License: BSD license
|
License: BSD license
|
||||||
URL: https://github.com/pyserial/pyserial
|
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
|
BuildRequires: python2-devel python3-devel
|
||||||
BuildArch: noarch
|
|
||||||
Provides: pyserial%{?_isa} = %{version}-%{release}
|
|
||||||
Obsoletes: pyserial < %{version}-%{release}
|
Obsoletes: pyserial < %{version}-%{release}
|
||||||
|
Provides: pyserial%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module encapsulates the access for the serial port. It provides
|
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)
|
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.
|
and IronPython. The module named "serial" automatically selects the appropriate backend.
|
||||||
|
|
||||||
%package -n python2-pyserial
|
%package -n python2-%{name}
|
||||||
Summary: Python2 serial port access library
|
Summary: Python2 serial port access library.
|
||||||
%{?python_provide:%python_provide python2-pyserial}
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
Provides: pyserial%{?_isa} = %{version}-%{release}
|
|
||||||
Obsoletes: pyserial < %{version}-%{release}
|
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
|
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)
|
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.
|
and IronPython. The module named "serial" automatically selects the appropriate backend.
|
||||||
|
|
||||||
%package -n python3-pyserial
|
%package -n python3-%{name}
|
||||||
Summary: Python3 serial port access library
|
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
|
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)
|
backends for Python3 running on Windows, OSX, Linux,BSD (possibly any POSIX compliant system)
|
||||||
and IronPython. The module named "serial" automatical
|
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
|
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
|
ln -sf %{_bindir}/miniterm.py-2 %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
%files -n python2-pyserial
|
%pre
|
||||||
%doc LICENSE.txt CHANGES.rst README.rst examples
|
|
||||||
|
%preun
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
|
||||||
|
%files -n python2-%{name}
|
||||||
|
%doc CHANGES.rst README.rst examples
|
||||||
|
%license LICENSE.txt
|
||||||
%{_bindir}/miniterm.py
|
%{_bindir}/miniterm.py
|
||||||
%{_bindir}/miniterm-2.py
|
%{_bindir}/miniterm-2.py
|
||||||
%{_bindir}/miniterm-%{python2_version}.py
|
%{_bindir}/miniterm-%{python2_version}.py
|
||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
%files -n python3-pyserial
|
%files -n python3-%{name}
|
||||||
%doc LICENSE.txt CHANGES.rst README.rst examples
|
%doc CHANGES.rst README.rst examples
|
||||||
|
%license LICENSE.txt
|
||||||
%{_bindir}/miniterm-3.py
|
%{_bindir}/miniterm-3.py
|
||||||
%{_bindir}/miniterm-%{python3_version}.py
|
%{_bindir}/miniterm-%{python3_version}.py
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4-1
|
||||||
- Package init
|
- Package init.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user