|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 6.7
|
|
|
|
Version: 6.7
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Summary: Simple wrapper around optparse for powerful command line utilities
|
|
|
|
Summary: Simple wrapper around optparse for powerful command line utilities
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -15,7 +15,7 @@ Patch1: 0002-Add-pytest-option-to-not-capture-warnings.patch
|
|
|
|
Patch2: 0003-Catch-and-test-pytest-warning.patch
|
|
|
|
Patch2: 0003-Catch-and-test-pytest-warning.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global _description \
|
|
|
|
click is a Python package for creating beautiful command line\
|
|
|
|
click is a Python package for creating beautiful command line\
|
|
|
|
interfaces in a composable way with as little amount of code as necessary.\
|
|
|
|
interfaces in a composable way with as little amount of code as necessary.\
|
|
|
@ -28,21 +28,24 @@ comes with good defaults out of the box.
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python%{?fedora:2}-setuptools
|
|
|
|
BuildRequires: python2-pytest
|
|
|
|
%if %{undefined rhel}
|
|
|
|
|
|
|
|
# pytest in base RHEL is too old, we'll skip the tests there
|
|
|
|
|
|
|
|
BuildRequires: python2-pytest >= 2.8
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{pypi_name} %{_description}
|
|
|
|
%description -n python2-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
Python 2 version.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest >= 2.8
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
@ -59,8 +62,11 @@ Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
export PYTHONPATH=$(pwd)
|
|
|
|
export PYTHONPATH=$(pwd)
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
|
|
|
|
%if %{undefined rhel}
|
|
|
|
|
|
|
|
# pytest in base RHEL is too old, we'll skip the tests there
|
|
|
|
py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
|
|
|
|
%endif
|
|
|
|
py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
%files -n python2-%{pypi_name}
|
|
|
@ -69,13 +75,16 @@ py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
%{python2_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
%{python2_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
%{python2_sitelib}/%{pypi_name}/
|
|
|
|
%{python2_sitelib}/%{pypi_name}/
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README CHANGES
|
|
|
|
%doc README CHANGES
|
|
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Oct 12 2017 Carl George <carl@george.computer> - 6.7-6
|
|
|
|
|
|
|
|
- Add EPEL compatibility
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.7-5
|
|
|
|
* Thu Oct 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.7-5
|
|
|
|
- Fix FTBFS
|
|
|
|
- Fix FTBFS
|
|
|
|
|
|
|
|
|
|
|
|