Robert Kuska 516e58
%global pypi_name click
Robert Kuska 516e58
Robert Kuska 516e58
Name:           python-%{pypi_name}
704cf5
Version:        7.0
cf7c96
Release:        3%{?dist}
7be6fa
Summary:        Simple wrapper around optparse for powerful command line utilities
Robert Kuska 516e58
Robert Kuska 516e58
License:        BSD
7be6fa
URL:            https://github.com/mitsuhiko/click
7be6fa
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
6364bd
# https://bugzilla.redhat.com/show_bug.cgi?id=1500962
6364bd
# https://github.com/pallets/click/pull/838
6364bd
Patch0:         0001-Remove-outdated-comment-about-Click-3.0.patch
7be6fa
Robert Kuska 516e58
BuildArch:      noarch
bac27b
7be6fa
%global _description \
7be6fa
click is a Python package for creating beautiful command line\
7be6fa
interfaces in a composable way with as little amount of code as necessary.\
7be6fa
It's the "Command Line Interface Creation Kit".  It's highly configurable but\
Robert Kuska 516e58
comes with good defaults out of the box.
Robert Kuska 516e58
7be6fa
%description %{_description}
Robert Kuska 516e58
7be6fa
%package -n     python2-%{pypi_name}
7be6fa
Summary:        %{summary}
7be6fa
%{?python_provide:%python_provide python2-%{pypi_name}}
7be6fa
BuildRequires:  python2-devel
a50c5d
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
a50c5d
BuildRequires:  python2-setuptools
bac27b
# pytest in base RHEL is too old, we'll skip the tests there
bac27b
BuildRequires:  python2-pytest >= 2.8
a50c5d
%else
a50c5d
BuildRequires:  python-setuptools
bac27b
%endif
Robert Kuska 516e58
7be6fa
%description -n python2-%{pypi_name} %{_description}
Robert Kuska 516e58
7be6fa
Python 2 version.
Robert Kuska 516e58
bac27b
%package -n     python%{python3_pkgversion}-%{pypi_name}
7be6fa
Summary:        %{summary}
bac27b
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
bac27b
BuildRequires:  python%{python3_pkgversion}-devel
bac27b
BuildRequires:  python%{python3_pkgversion}-setuptools
bac27b
BuildRequires:  python%{python3_pkgversion}-pytest >= 2.8
Robert Kuska 516e58
bac27b
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
Robert Kuska 516e58
7be6fa
Python 3 version.
Robert Kuska 516e58
7be6fa
%prep
6364bd
%autosetup -n %{pypi_name}-%{version} -p1
Robert Kuska 516e58
Robert Kuska 516e58
%build
7be6fa
%py2_build
7be6fa
%py3_build
Robert Kuska 516e58
Robert Kuska 516e58
%install
7be6fa
%py2_install
7be6fa
%py3_install
Robert Kuska 516e58
Robert Kuska 516e58
%check
7be6fa
export PYTHONPATH=$(pwd)
a50c5d
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
bac27b
# pytest in base RHEL is too old, we'll skip the tests there
7be6fa
py.test-%{python2_version} tests --tb=long --verbose
bac27b
%endif
7be6fa
py.test-%{python3_version} tests --tb=long --verbose
Robert Kuska 516e58
7be6fa
%files -n python2-%{pypi_name}
704cf5
%license LICENSE.rst
704cf5
%doc README.rst CHANGES.rst
704cf5
%{python2_sitelib}/Click-*.egg-info/
7be6fa
%{python2_sitelib}/%{pypi_name}/
7be6fa
bac27b
%files -n python%{python3_pkgversion}-%{pypi_name}
704cf5
%license LICENSE.rst
704cf5
%doc README.rst CHANGES.rst
704cf5
%{python3_sitelib}/Click-*.egg-info/
7be6fa
%{python3_sitelib}/%{pypi_name}/
Robert Kuska 516e58
Robert Kuska 516e58
%changelog
cf7c96
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-3
cf7c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cf7c96
68b39e
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.0-2
68b39e
- Drop explicit locale setting
68b39e
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
68b39e
704cf5
* Tue Oct 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 7.0-1
704cf5
- Update to 7.0
704cf5
b588e5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-9
b588e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b588e5
ecb9cc
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 6.7-8
ecb9cc
- Rebuilt for Python 3.7
ecb9cc
e2ad64
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-7
e2ad64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e2ad64
a50c5d
* Thu Oct 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.7-6
a50c5d
- Fixup EPEL packaging
a50c5d
bac27b
* Thu Oct 12 2017 Carl George <carl@george.computer> - 6.7-6
bac27b
- Add EPEL compatibility
bac27b
6364bd
* Thu Oct 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.7-5
6364bd
- Fix FTBFS
6364bd
c7c22a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-4
c7c22a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c7c22a
5ecb1c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-3
5ecb1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5ecb1c
9aa2a6
* Mon Jan 09 2017 Miro Hrončok <mhroncok@redhat.com> - 6.7-2
9aa2a6
- Fixed a copy-paste bug in %%python_provide (rhbz#1411169)
9aa2a6
7be6fa
* Sat Jan 07 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 6.7-1
7be6fa
- Update to 6.7
7be6fa
- Adopt to packaging guidelines
7be6fa
b1f42e
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-4
b1f42e
- Enable tests
b1f42e
a0871b
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-3
a0871b
- Rebuild for Python 3.6
a0871b
- Disable python3 tests for now
a0871b
5398fc
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.6-2
5398fc
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5398fc
468531
* Mon Apr 18 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-1
468531
- Update to 6.6
468531
- Removed non-applied patch file.
468531
Robert Kuska d84ba7
* Tue Mar 08 2016 Robert Kuska <rkuska@redhat.com> - 6.3-1
Robert Kuska d84ba7
- Update to 6.3
Robert Kuska d84ba7
817bf6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-2
817bf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
817bf6
Robert Kuska ab8bed
* Tue Jan 19 2016 Robert Kuska <rkuska@redhat.com> - 6.2-1
Robert Kuska ab8bed
- Update to 6.2
Robert Kuska ab8bed
Robert Kuska 41b380
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 5.1-2
Robert Kuska 41b380
- Rebuilt for Python3.5 rebuild
Robert Kuska 41b380
Robert Kuska a04f1f
* Mon Aug 24 2015 Robert Kuska <rkuska@redhat.com> - 5.1-1
Robert Kuska a04f1f
- Update to 5.1
Robert Kuska a04f1f
Robert Kuska 082fc9
* Mon Aug 03 2015 Robert Kuska <rkuska@redhat.com> - 4.1-1
Robert Kuska 082fc9
- Update to 4.1
Robert Kuska 082fc9
5e5465
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-3
5e5465
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e5465
Robert Kuska 88ee50
* Sun May 31 2015 Robert Kuska <rkuska@redhat.com> - 4.0-2
Robert Kuska 88ee50
- Rebuilt
Robert Kuska 88ee50
Robert Kuska 0ca76a
* Wed Apr 01 2015 Robert Kuska <rkuska@redhat.com> - 4.0-1
Robert Kuska 0ca76a
- Update to 4.0
Robert Kuska 0ca76a
Robert Kuska 22c8d0
* Fri Oct 03 2014 Robert Kuska <rkuska@redhat.com> - 3.3-1
Robert Kuska 22c8d0
- Update to 3.3
Robert Kuska 22c8d0
Robert Kuska 94b3a3
* Sun Aug 24 2014 Robert Kuska <rkuska@redhat.com> - 3.2-2
Robert Kuska 94b3a3
- Add patch for exception check of TypeError
Robert Kuska 94b3a3
Robert Kuska 77b8ec
* Sun Aug 24 2014 Robert Kuska <rkuska@redhat.com> - 3.2-1
Robert Kuska 77b8ec
- Update to 3.2
Robert Kuska 77b8ec
Robert Kuska 8a432f
* Mon Aug 18 2014 Robert Kuska <rkuska@redhat.com> - 3.1-1
Robert Kuska 8a432f
- Update to 3.1
Robert Kuska 8a432f
Robert Kuska ac6e03
* Wed Jul 16 2014 Robert Kuska <rkuska@redhat.com> - 2.4-1
Robert Kuska ac6e03
- Update to 2.4
Robert Kuska ac6e03
Robert Kuska 709809
* Mon Jun 30 2014 Robert Kuska <rkuska@redhat.com> - 2.2-1
Robert Kuska 709809
- Update to 2.2
Robert Kuska 709809
Robert Kuska bac568
* Thu Jun 12 2014 Robert Kuska <rkuska@redhat.com> - 2.0-1
Robert Kuska bac568
- Update to 2.0
Robert Kuska bac568
Robert Kuska 853d56
* Fri Jun 06 2014 Robert Kuska <rkuska@redhat.com> - 1.1-3
Robert Kuska 853d56
- Make click own its folder
Robert Kuska 853d56
- Use pythonX_version macros from devel package
Robert Kuska 853d56
Robert Kuska 076817
* Thu May 29 2014 Robert Kuska <rkuska@redhat.com> - 1.1-2
Robert Kuska 076817
- Remove __pycache__ folder from tests
Robert Kuska 076817
Robert Kuska 516e58
* Mon May 12 2014 Robert Kuska <rkuska@redhat.com> - 1.1-1
Robert Kuska 516e58
- Update source
Robert Kuska 516e58
Robert Kuska 516e58
* Wed May 07 2014 Robert Kuska <rkuska@redhat.com> - 0.6-1
Robert Kuska 516e58
- Initial package.