Spec: Fix the incorrect symlinks
The miniterm-3.6.py symlink currently points to a nonexistent /usr/bin/miniterm.py-3 instead of /usr/bin/miniterm-3.py. In addition, the miniterm-2.7.py symlink had a similar problem and is corrected with this update. Resolves: RHEL-7283 Signed-off-by: Kyle Walker <kwalker@redhat.com>
This commit is contained in:
parent
220343ee39
commit
e2455beaf6
@ -8,7 +8,7 @@
|
||||
Summary: Python serial port access library
|
||||
Name: pyserial
|
||||
Version: 3.1.1
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Source0: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
||||
License: Python
|
||||
Group: Development/Libraries
|
||||
@ -70,13 +70,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
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
|
||||
|
||||
popd
|
||||
%if %{with python2}
|
||||
%{__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
|
||||
ln -sf %{_bindir}/miniterm-2.py %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py
|
||||
%endif
|
||||
|
||||
%clean
|
||||
@ -99,6 +99,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_bindir}/miniterm-%{python3_version}.py
|
||||
|
||||
%changelog
|
||||
* Thu Jan 25 2024 Kyle Walker <kwalker@redhat.com> - 3.1.1-9
|
||||
- Fix the incorrect python*_version symlinks
|
||||
Resolves: RHEL-7283
|
||||
|
||||
* Fri Jun 15 2018 Lumir Balhar <lbalhar@redhat.com> - 3.1.1-8
|
||||
- Conditions for Python 2 subpackage
|
||||
- Python 2 subpackage disabled by default
|
||||
|
Loading…
Reference in New Issue
Block a user