From be2733a8add21a659f997c20818ed8a57af4ee7d Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 07 2021 09:53:32 +0000 Subject: Import python-pyperclip-1.8.0-3.el9 in CloudSIG xena --- diff --git a/.python-pyperclip.metadata b/.python-pyperclip.metadata new file mode 100644 index 0000000..3363096 --- /dev/null +++ b/.python-pyperclip.metadata @@ -0,0 +1 @@ +203daccff5dca1f4d54318696e81376996183dd9 SOURCES/pyperclip-1.8.0.tar.gz diff --git a/SOURCES/0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch b/SOURCES/0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch new file mode 100644 index 0000000..eab0877 --- /dev/null +++ b/SOURCES/0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch @@ -0,0 +1,54 @@ +From f00d7ae8478a7ddd36d68ab4fde8934b1641f45b Mon Sep 17 00:00:00 2001 +From: Haikel Guemar +Date: Tue, 16 Jun 2020 10:31:02 -0600 +Subject: [PATCH] Skip tests irrelevant in the context of Fedora packaging + +--- + tests/__init__.py | 0 + tests/test_pyperclip.py | 5 +++++ + 2 files changed, 5 insertions(+) + create mode 100644 tests/__init__.py + +diff --git a/tests/__init__.py b/tests/__init__.py +new file mode 100644 +index 0000000..e69de29 +diff --git a/tests/test_pyperclip.py b/tests/test_pyperclip.py +index 7519d94..62a6f20 100644 +--- a/tests/test_pyperclip.py ++++ b/tests/test_pyperclip.py +@@ -133,6 +133,7 @@ class TestOSX(_TestClipboard): + clipboard = init_osx_pyobjc_clipboard() + + ++@unittest.skip("Not relevant in Fedora package build") + class TestGtk(_TestClipboard): + if HAS_DISPLAY: + try: +@@ -143,6 +144,7 @@ class TestGtk(_TestClipboard): + clipboard = init_gtk_clipboard() + + ++@unittest.skip("Not relevant in Fedora package build") + class TestQt(_TestClipboard): + if HAS_DISPLAY: + try: +@@ -158,16 +160,19 @@ class TestQt(_TestClipboard): + clipboard = init_qt_clipboard() + + ++@unittest.skip("Not relevant in Fedora package build") + class TestXClip(_TestClipboard): + if _executable_exists("xclip"): + clipboard = init_xclip_clipboard() + + ++@unittest.skip("Not relevant in Fedora package build") + class TestXSel(_TestClipboard): + if _executable_exists("xsel"): + clipboard = init_xsel_clipboard() + + ++@unittest.skip("Not relevant in Fedora package build") + class TestKlipper(_TestClipboard): + if _executable_exists("klipper") and _executable_exists("qdbus"): + clipboard = init_klipper_clipboard() diff --git a/SPECS/python-pyperclip.spec b/SPECS/python-pyperclip.spec new file mode 100644 index 0000000..fa5ed6a --- /dev/null +++ b/SPECS/python-pyperclip.spec @@ -0,0 +1,105 @@ +%global pypi_name pyperclip + + +Name: python-%{pypi_name} +Version: 1.8.0 +Release: 3%{?dist} +Summary: A cross-platform clipboard module for Python + +License: BSD +URL: https://github.com/asweigart/pyperclip +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +# Fix tests suite execution +# Disable all tests requiring a display or toolkit to be available at build time +Patch0001: 0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch +BuildArch: noarch + +%description +Pyperclip is a cross-platform Python module for copy and paste clipboard +functions. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%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 + + +%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 +* 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.