forked from pool/python-pyperclip
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:
committed by
Git OBS Bridge
parent
445f17cdfe
commit
43547640e7
@@ -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
|
||||
|
Reference in New Issue
Block a user