diff --git a/.gitignore b/.gitignore index 2fab21a..906485c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/pyserial-3.1.1.tar.gz +pyserial-3.5.tar.gz diff --git a/.pyserial.metadata b/.pyserial.metadata deleted file mode 100644 index 4e56a9b..0000000 --- a/.pyserial.metadata +++ /dev/null @@ -1 +0,0 @@ -7132094d2b28dca2c1c2f263d92c6a1e03d302ae SOURCES/pyserial-3.1.1.tar.gz diff --git a/SPECS/pyserial.spec b/pyserial.spec similarity index 53% rename from SPECS/pyserial.spec rename to pyserial.spec index 0b2f370..5f94c3b 100644 --- a/SPECS/pyserial.spec +++ b/pyserial.spec @@ -1,111 +1,148 @@ -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - Summary: Python serial port access library Name: pyserial -Version: 3.1.1 -Release: 9%{?dist} -Source0: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -License: Python -Group: Development/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -URL: http://pyserial.sourceforge.net - -%if %{with python2} -BuildRequires: python2-devel -%endif - +Version: 3.5 +Release: 11%{?dist} +Source0: %pypi_source +License: BSD-3-Clause +URL: http://pypi.python.org/pypi/pyserial BuildRequires: python3-devel +BuildRequires: python3-setuptools BuildArch: noarch %global _description\ 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\ +compliant system) and Jython. The module named "serial" automatically selects\ the appropriate backend. %description %_description -%if %{with python2} -%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 -%endif %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 -%if %{with python2} -CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build -%endif -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 -mv %{buildroot}/%{_bindir}/miniterm.py %{buildroot}/%{_bindir}/miniterm-3.py -ln -sf %{_bindir}/miniterm-3.py %{buildroot}/%{_bindir}/miniterm-%{python3_version}.py +%py3_install +ln -sf pyserial-miniterm %{buildroot}%{_bindir}/miniterm.py +ln -sf pyserial-miniterm %{buildroot}%{_bindir}/miniterm-3.py +ln -sf pyserial-miniterm %{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-2.py %{buildroot}/%{_bindir}/miniterm-%{python2_version}.py -%endif -%clean -rm -rf $RPM_BUILD_ROOT +%check +PYTHONPATH=%{buildroot}/%{python3_sitelib} %{python3} test/run_all_tests.py -%if %{with python2} -%files -n python2-pyserial -%defattr(-,root,root) -%doc LICENSE.txt CHANGES.rst README.rst examples -%{python_sitelib}/* -%{_bindir}/miniterm.py -%{_bindir}/miniterm-2.py -%{_bindir}/miniterm-%{python2_version}.py -%endif %files -n python3-pyserial %doc LICENSE.txt CHANGES.rst README.rst examples -%{python3_sitelib}/* +%{python3_sitelib}/serial +%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info +%{_bindir}/pyserial-miniterm +%{_bindir}/pyserial-ports +%{_bindir}/miniterm.py %{_bindir}/miniterm-3.py %{_bindir}/miniterm-%{python3_version}.py %changelog -* Thu Jan 25 2024 Kyle Walker - 3.1.1-9 -- Fix the incorrect python*_version symlinks - Resolves: RHEL-7283 +* Thu Dec 05 2024 Miroslav Rezanina - 3.5-11 +- Symlink miniterm.py for backward compatibility +- Resolves: RHEL-68967 -* Fri Jun 15 2018 Lumir Balhar - 3.1.1-8 -- Conditions for Python 2 subpackage -- Python 2 subpackage disabled by default +* Tue Oct 29 2024 Troy Dawson - 3.5-10 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 3.5-9 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 3.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 3.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 3.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 3.5-5 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 3.5-2 +- Rebuilt for Python 3.11 + +* Fri Apr 08 2022 Lumír Balhar - 3.5-1 +- Update to 3.5 +- Fix license tag: Python -> BSD +Resolves: rhbz#1983151 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 3.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 3.4-11 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 3.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 3.4-8 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Nov 15 2019 Miro Hrončok - 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 - 3.4-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 3.4-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Oct 16 2018 Eric Smith - 3.4-1 +- Update to latest upstream release. +- Update Source0 and URL to use Pypi. + +* Tue Jul 17 2018 Miro Hrončok - 3.1.1-10 +- Update Python macros to new packaging standards + (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package) + +* Fri Jul 13 2018 Fedora Release Engineering - 3.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 3.1.1-8 +- Rebuilt for Python 3.7 * Wed Feb 14 2018 Iryna Shcherbina - 3.1.1-7 - Update Python 2 dependency declarations to new packaging standards diff --git a/sources b/sources new file mode 100644 index 0000000..801b0ad --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyserial-3.5.tar.gz) = c8df5e50d952d5a6dcf1d9253a6ba953e9763c545a867da66c22c90dfa015aba0194f2a8f29a229d0a5f4dc8bfeeaaab8bcfda4066ed78a18b151bc05e6ae327