SHA256
1
0
forked from pool/python-click

Accepting request 482018 from home:alois:branches:devel:languages:python

Converted to single-spec.

OBS-URL: https://build.opensuse.org/request/show/482018
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=11
This commit is contained in:
Thomas Bechtold 2017-03-22 17:38:25 +00:00 committed by Git OBS Bridge
parent ac173ab706
commit 82403748ad
2 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 22 15:44:17 UTC 2017 - aloisio@gmx.com
- Converted to single-spec
- Changed source URL to pypi.io
-------------------------------------------------------------------
Thu Mar 16 12:41:06 UTC 2017 - michael@stroeder.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-click
#
# 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,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-click
Version: 6.7
Release: 0
@ -23,15 +24,14 @@ Summary: A simple wrapper around optparse for powerful command line utili
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/mitsuhiko/click
Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-pytest
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
Source: https://pypi.io/packages/source/c/click/click-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%python_subpackages
%description
Click is a Python package for creating beautiful command line interfaces
@ -47,19 +47,20 @@ an intended CLI API.
%setup -q -n click-%{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}
%check
pushd tests
PYTHONPATH=%{buildroot}%{python_sitelib} py.test --tb=short
popd
export LANG=en_US.UTF-8
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/py.test-%{$python_version} --tb=short}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES LICENSE README
%{python_sitelib}/*
%{python_sitelib}/click
%{python_sitelib}/click-%{version}-py%{py_ver}.egg-info
%changelog