14
0

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
This commit is contained in:
Thomas Bechtold
2017-03-09 06:27:01 +00:00
committed by Git OBS Bridge
parent 445f17cdfe
commit 43547640e7
4 changed files with 34 additions and 27 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50f251f0869661d000bdfab8359a9da62d3cc83389ba43e008f227ec938fd719
size 13578

3
pyperclip-1.5.27.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3cb6df5d8f1557ca8fc514d94fabf50dc5a97042c90e5ba4f3611864fed3fc5
size 16938

View File

@@ -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

View File

@@ -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