From 43547640e7f5c02a84a5dfa83fc3a68a9fd762c9fadb7eb7325d506d16f940f7 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 9 Mar 2017 06:27:01 +0000 Subject: [PATCH] Accepting request 477345 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/477345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=3 --- pyperclip-1.5.24.tar.gz | 3 --- pyperclip-1.5.27.zip | 3 +++ python-pyperclip.changes | 13 +++++++++++++ python-pyperclip.spec | 42 +++++++++++++++++----------------------- 4 files changed, 34 insertions(+), 27 deletions(-) delete mode 100644 pyperclip-1.5.24.tar.gz create mode 100644 pyperclip-1.5.27.zip diff --git a/pyperclip-1.5.24.tar.gz b/pyperclip-1.5.24.tar.gz deleted file mode 100644 index 7212e15..0000000 --- a/pyperclip-1.5.24.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50f251f0869661d000bdfab8359a9da62d3cc83389ba43e008f227ec938fd719 -size 13578 diff --git a/pyperclip-1.5.27.zip b/pyperclip-1.5.27.zip new file mode 100644 index 0000000..2d12fbb --- /dev/null +++ b/pyperclip-1.5.27.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3cb6df5d8f1557ca8fc514d94fabf50dc5a97042c90e5ba4f3611864fed3fc5 +size 16938 diff --git a/python-pyperclip.changes b/python-pyperclip.changes index 51cc7bb..3483fde 100644 --- a/python-pyperclip.changes +++ b/python-pyperclip.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Mar 6 19:28:45 UTC 2017 - aloisio@gmx.com + +- Update to version 1.5.27 + * Disable broken cygwin implementation until issue 55 can be + fixed + * Fix #51, Replace wcscpy_s with memmove for Windows XP. + * Fix #53, PEP8 changes, STRING_FUNCTION rename + +- Converted to single-spec + +- Updated source URL, license and homepage + ------------------------------------------------------------------- Sun Jan 3 21:36:53 UTC 2016 - freitag@opensuse.org diff --git a/python-pyperclip.spec b/python-pyperclip.spec index 574e0de..eedcc2b 100644 --- a/python-pyperclip.spec +++ b/python-pyperclip.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyperclip # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyperclip -Version: 1.5.24 +Version: 1.5.27 Release: 0 -Summary: A cross-platform clipboard module for Python. -License: BSD-2-Clause +Summary: A cross-platform clipboard module for Python +License: BSD-3-Clause Group: Development/Languages/Python -Url: https://pypi.python.org/pypi/pyperclip -Source: pyperclip-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: https://github.com/asweigart/pyperclip +Source0: https://pypi.io/packages/source/p/pyperclip/pyperclip-%{version}.zip +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description A cross-platform clipboard module for Python. (only handles plain text for now) @@ -42,20 +41,15 @@ A cross-platform clipboard module for Python. (only handles plain text for now) %setup -q -n pyperclip-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root %{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -# cleanup -rm -rf %{buildroot}%{python_sitelib}/test -rm -rf %{buildroot}%{python_sitelib}/pyperclip/__pycache__ - -%fdupes %{buildroot} - -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/pyperclip -%{python_sitelib}/pyperclip-%{version}*egg* +%{python_sitelib}/pyperclip-%{version}-py%{py_ver}.egg-info %changelog