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:
parent
ac173ab706
commit
82403748ad
@ -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
|
Thu Mar 16 12:41:06 UTC 2017 - michael@stroeder.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-click
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-click
|
Name: python-click
|
||||||
Version: 6.7
|
Version: 6.7
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -23,15 +24,14 @@ Summary: A simple wrapper around optparse for powerful command line utili
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/mitsuhiko/click
|
Url: http://github.com/mitsuhiko/click
|
||||||
Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/c/click/click-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-pytest
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: fdupes
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
BuildRequires: python-rpm-macros
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Click is a Python package for creating beautiful command line interfaces
|
Click is a Python package for creating beautiful command line interfaces
|
||||||
@ -47,19 +47,20 @@ an intended CLI API.
|
|||||||
%setup -q -n click-%{version}
|
%setup -q -n click-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd tests
|
export LANG=en_US.UTF-8
|
||||||
PYTHONPATH=%{buildroot}%{python_sitelib} py.test --tb=short
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/py.test-%{$python_version} --tb=short}
|
||||||
popd
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES LICENSE README
|
%doc CHANGES LICENSE README
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/click
|
||||||
|
%{python_sitelib}/click-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user