#2 Update to 0.5.0 & Drop python2 subpackage
Merged 5 years ago by wakko666. Opened 5 years ago by churchyard.
rpms/ churchyard/python-click-completion 050  into  master

file modified
+12 -63
@@ -1,34 +1,18 @@ 

- # sitelib for noarch packages, sitearch for others (remove the unneeded one)

- %{!?__python2: %global __python2 %__python}

- %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

- 

- %if 0%{?fedora}

- %bcond_without python3

- %else

- %bcond_with python3

- %endif

- 

  %global pkgname click-completion

  

  Name:           python-click-completion

- Version:        0.3.1

+ Version:        0.5.0

  Release:        1%{?dist}

  Summary:        Add automatic completion support for fish, Zsh, Bash and PowerShell to Click

  License:        MIT

  URL:            https://github.com/click-contrib/click-completion

- Source0:        https://github.com/click-contrib/%{pkgname}/archive/%{version}.tar.gz

+ Source0:        %{url}/archive/v%{version}.tar.gz

  BuildArch:      noarch

  

- BuildRequires:  python2-devel

- BuildRequires:  python2-six

- BuildRequires:  python2-jinja2

- BuildRequires:  python2-click

- %if %{with python3}

  BuildRequires:  python3-devel

- BuildRequires:  python3-six

- BuildRequires:  python3-jinja2

- BuildRequires:  python3-click

- %endif # with python3

+ BuildRequires:  python3-setuptools

+ 

+ %{?python_enable_dependency_generator}

  

  %description

  Enhanced completion for Click
@@ -39,26 +23,10 @@ 

  and options defined with click. In addition, fish and Zsh are also displaying

  the options and commands help during the completion.

  

- %package     -n python2-%{pkgname}

- Summary:        %{summary}

- %{?python_provide:%python_provide python2-%{pkgname}}

- Requires:       python2-click

- Requires:       python2-jinja2

- %description -n python2-%{pkgname}

- Enhanced completion for Click

- 

- Add automatic completion support for fish, Zsh, Bash and PowerShell to Click.

- 

- All the supported shells are able to complete all the command line arguments

- and options defined with click. In addition, fish and Zsh are also displaying

- the options and commands help during the completion.

  

- %if %{with python3}

  %package     -n python3-%{pkgname}

  Summary:        %{summary}

  %{?python_provide:%python_provide python3-%{pkgname}}

- Requires:       python3-click

- Requires:       python3-jinja2

  %description -n python3-%{pkgname}

  Enhanced completion for Click

  
@@ -67,7 +35,6 @@ 

  All the supported shells are able to complete all the command line arguments

  and options defined with click. In addition, fish and Zsh are also displaying

  the options and commands help during the completion.

- %endif # with python3

  

  

  %prep
@@ -76,44 +43,26 @@ 

  sed -i 's|^#!/usr/bin/env python||' examples/click-completion-*

  chmod -x examples/click-completion-*

  

- %build

- %{py2_build}

  

- %if %{with python3}

+ %build

  %{py3_build}

- %endif # with python3

  

- %install

- %{py2_install}

  

- %if %{with python3}

+ %install

  %{py3_install}

- %endif # with python3

- 

- 

- 

- %check

- %{__python2} setup.py test

  

- %if %{with python3}

- %{__python3} setup.py test

- %endif

  

- 

- %files -n python2-%{pkgname}

- %license LICENSE

- %doc examples README.md

- %{python2_sitelib}/*

- 

- %if %{with python3}

  %files -n python3-%{pkgname}

  %license LICENSE

  %doc examples README.md

- %{python3_sitelib}/*

- %endif # with python3

+ %{python3_sitelib}/click_completion*/

  

  

  %changelog

+ * Fri Nov 23 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-1

+ - Update to 0.5.0

+ - Drop python2 subpackage

+ 

  * Mon Jul 30 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-1

  - Update to 0.3.1

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (0.3.1.tar.gz) = b0cb90fd98cb6a374f619a1c7cc72c5655f2557a78980fd15b6813d888bb656b28a75384bb094cbc570c727c5477713b7cb689de5d523bb8c56ea79dd939f75a

+ SHA512 (v0.5.0.tar.gz) = 57c2dccfc73c0f66a767facf501297f7730fb0d71cdc0ccf728217fd7e40d2c9577fd548cc912e9639f7b69598f1913dc4b3fef969fb65fe56202f70a9ac08d3

Python 2 part doesn't have all deps, also is not needed by anything.

Also, drop %check, as there are no tests at all.

can we change it to %{url}/archive/v%{version}/%{name}-%{version}.tar.gz?

1 new commit added

  • Use %{url} in Source0
5 years ago

Pull-Request has been merged by wakko666

5 years ago