%global pypi_name click Name: python-%{pypi_name} Version: 6.7 Release: 1%{?dist} Summary: Simple wrapper around optparse for powerful command line utilities License: BSD URL: https://github.com/mitsuhiko/click Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %global _description \ click is a Python package for creating beautiful command line\ interfaces in a composable way with as little amount of code as necessary.\ It's the "Command Line Interface Creation Kit". It's highly configurable but\ comes with good defaults out of the box. %description %{_description} %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-pytest %description -n python2-%{pypi_name} %{_description} Python 2 version. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest %description -n python3-%{pypi_name} %{_description} Python 3 version. %prep %autosetup -n %{pypi_name}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check export PYTHONPATH=$(pwd) export LC_ALL=C.UTF-8 py.test-%{python2_version} tests --tb=long --verbose py.test-%{python3_version} tests --tb=long --verbose %files -n python2-%{pypi_name} %license LICENSE %doc README CHANGES %{python2_sitelib}/%{pypi_name}-*.egg-info/ %{python2_sitelib}/%{pypi_name}/ %files -n python3-%{pypi_name} %license LICENSE %doc README CHANGES %{python3_sitelib}/%{pypi_name}-*.egg-info/ %{python3_sitelib}/%{pypi_name}/ %changelog * Sat Jan 07 2017 Igor Gnatenko - 6.7-1 - Update to 6.7 - Adopt to packaging guidelines * Tue Dec 13 2016 Charalampos Stratakis - 6.6-4 - Enable tests * Fri Dec 09 2016 Charalampos Stratakis - 6.6-3 - Rebuild for Python 3.6 - Disable python3 tests for now * Tue Jul 19 2016 Fedora Release Engineering - 6.6-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Apr 18 2016 Charalampos Stratakis - 6.6-1 - Update to 6.6 - Removed non-applied patch file. * Tue Mar 08 2016 Robert Kuska - 6.3-1 - Update to 6.3 * Thu Feb 04 2016 Fedora Release Engineering - 6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 19 2016 Robert Kuska - 6.2-1 - Update to 6.2 * Wed Oct 14 2015 Robert Kuska - 5.1-2 - Rebuilt for Python3.5 rebuild * Mon Aug 24 2015 Robert Kuska - 5.1-1 - Update to 5.1 * Mon Aug 03 2015 Robert Kuska - 4.1-1 - Update to 4.1 * Thu Jun 18 2015 Fedora Release Engineering - 4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 31 2015 Robert Kuska - 4.0-2 - Rebuilt * Wed Apr 01 2015 Robert Kuska - 4.0-1 - Update to 4.0 * Fri Oct 03 2014 Robert Kuska - 3.3-1 - Update to 3.3 * Sun Aug 24 2014 Robert Kuska - 3.2-2 - Add patch for exception check of TypeError * Sun Aug 24 2014 Robert Kuska - 3.2-1 - Update to 3.2 * Mon Aug 18 2014 Robert Kuska - 3.1-1 - Update to 3.1 * Wed Jul 16 2014 Robert Kuska - 2.4-1 - Update to 2.4 * Mon Jun 30 2014 Robert Kuska - 2.2-1 - Update to 2.2 * Thu Jun 12 2014 Robert Kuska - 2.0-1 - Update to 2.0 * Fri Jun 06 2014 Robert Kuska - 1.1-3 - Make click own its folder - Use pythonX_version macros from devel package * Thu May 29 2014 Robert Kuska - 1.1-2 - Remove __pycache__ folder from tests * Mon May 12 2014 Robert Kuska - 1.1-1 - Update source * Wed May 07 2014 Robert Kuska - 0.6-1 - Initial package.