%global pypi_name pyperclip Name: python-%{pypi_name} Version: 1.8.2 Release: 1%{?dist} Summary: A cross-platform clipboard module for Python License: BSD URL: https://github.com/asweigart/%{pypi_name} Source0: %{pypi_source %{pypi_name}} BuildArch: noarch %description Pyperclip is a cross-platform Python module for copy and paste clipboard functions. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest %description -n python3-%{pypi_name} Pyperclip is a cross-platform Python module for copy and paste clipboard functions. %package -n python-%{pypi_name}-doc Summary: Pyperclip documentation BuildRequires: python3-sphinx %description -n python-%{pypi_name}-doc Documentation for pyperclip %prep %autosetup -p1 -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # Fix ends of line encoding sed -i 's/\r$//' README.md docs/* %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check #%%{__python3} setup.py test %pytest %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files -n python-%{pypi_name}-doc %doc html %changelog * Mon Aug 08 2022 Jonathan Wright - 1.8.2-1 - Update to 1.8.2 * Fri Jul 22 2022 Fedora Release Engineering - 1.8.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.8.0-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.8.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 16 2020 Ken Dreyer - 1.8.0-1 - Update to 1.8.0 (rhbz#1697423) - Use non-git autosetup for simplicity * Tue May 26 2020 Miro Hrončok - 1.6.4-8 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.6.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.6.4-6 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.6.4-5 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.6.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Mar 17 2019 Miro Hrončok - 1.6.4-3 - Subpackage python2-pyperclip has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 1.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jul 25 2018 Haïkel Guémar - 1.6.4-1 - Initial package.