Subpackage python2-pyserial has been removed
This commit is contained in:
parent
ba7c35ee7c
commit
5b33d1b3cc
@ -1,11 +1,10 @@
|
||||
Summary: Python serial port access library
|
||||
Name: pyserial
|
||||
Version: 3.4
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Source0: %pypi_source
|
||||
License: Python
|
||||
URL: http://pypi.python.org/pypi/pyserial
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildArch: noarch
|
||||
|
||||
@ -17,63 +16,42 @@ the appropriate backend.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-pyserial
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-pyserial}
|
||||
# Remove before F30
|
||||
Provides: pyserial%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: pyserial < %{version}-%{release}
|
||||
|
||||
%description -n python2-pyserial %_description
|
||||
|
||||
%package -n python3-pyserial
|
||||
Summary: Python serial port access library
|
||||
Summary: %{summary}
|
||||
Conflicts: python2-pyserial < 3.4-6
|
||||
|
||||
%description -n python3-pyserial
|
||||
This module encapsulates the access for the serial port. It provides backends
|
||||
for standard Python running on Windows, Linux, BSD (possibly any POSIX
|
||||
compilant system) and Jython. The module named "serial" automaticaly selects
|
||||
the appropriate backend.
|
||||
%description -n python3-pyserial %_description
|
||||
|
||||
|
||||
%prep
|
||||
export UNZIP="-aa"
|
||||
%setup -q
|
||||
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
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
%py3_install
|
||||
mv %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-3.py
|
||||
ln -sf %{_bindir}/miniterm.py-3 %{buildroot}/%{_bindir}/miniterm-%{python3_version}.py
|
||||
ln -sf %{_bindir}/miniterm-3.py %{buildroot}/%{_bindir}/miniterm-%{python3_version}.py
|
||||
ln -sf %{_bindir}/miniterm-3.py %{buildroot}/%{_bindir}/miniterm.py
|
||||
|
||||
popd
|
||||
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
cp %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-2.py
|
||||
ln -sf %{_bindir}/miniterm.py-2 %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py
|
||||
|
||||
%files -n python2-pyserial
|
||||
%doc LICENSE.txt CHANGES.rst README.rst examples
|
||||
%{python2_sitelib}/*
|
||||
%{_bindir}/miniterm.py
|
||||
%{_bindir}/miniterm-2.py
|
||||
%{_bindir}/miniterm-%{python2_version}.py
|
||||
|
||||
%files -n python3-pyserial
|
||||
%doc LICENSE.txt CHANGES.rst README.rst examples
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/miniterm.py
|
||||
%{_bindir}/miniterm-3.py
|
||||
%{_bindir}/miniterm-%{python3_version}.py
|
||||
|
||||
%changelog
|
||||
* Fri Nov 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4-6
|
||||
- Subpackage python2-pyserial has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user