|
|
@ -1,100 +1,80 @@
|
|
|
|
# Created by pyp2rpm-1.0.1
|
|
|
|
|
|
|
|
%global pypi_name click
|
|
|
|
%global pypi_name click
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 6.6
|
|
|
|
Version: 6.7
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A simple wrapper around optparse for powerful command line utilities
|
|
|
|
Summary: Simple wrapper around optparse for powerful command line utilities
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: http://github.com/mitsuhiko/click
|
|
|
|
URL: https://github.com/mitsuhiko/click
|
|
|
|
Source0: https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
%global _description \
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
click is a Python package for creating beautiful command line\
|
|
|
|
BuildRequires: pytest
|
|
|
|
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\
|
|
|
|
%if %{?with_python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
comes with good defaults out of the box.
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
|
|
|
Summary: A simple wrapper around optparse for powerful command line utilities
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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 python3-%{pypi_name}
|
|
|
|
%description -n python2-%{pypi_name} %{_description}
|
|
|
|
click is a Python 3 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.
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
|
%py2_install
|
|
|
|
# overwritten with every setup.py install (and we want the python2 version
|
|
|
|
%py3_install
|
|
|
|
# to be the default for now).
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
PYTHONPATH=$(pwd) py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
export PYTHONPATH=$(pwd)
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
pushd %{py3dir}
|
|
|
|
py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
LANG=en_GB.utf8 LC_ALL=en_GB.utf8 PYTHONPATH=$(pwd) py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Jan 07 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 6.7-1
|
|
|
|
|
|
|
|
- Update to 6.7
|
|
|
|
|
|
|
|
- Adopt to packaging guidelines
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-4
|
|
|
|
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-4
|
|
|
|
- Enable tests
|
|
|
|
- Enable tests
|
|
|
|
|
|
|
|
|
|
|
|