Remove obsolete parts

epel9
Fabian Affolter 5 years ago
parent f51f9f3df3
commit b20f65587a
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

@ -8,10 +8,6 @@ Summary: Simple wrapper around optparse for powerful command line utiliti
License: BSD License: BSD
URL: https://github.com/mitsuhiko/click URL: https://github.com/mitsuhiko/click
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
# https://bugzilla.redhat.com/show_bug.cgi?id=1500962
# https://github.com/pallets/click/pull/838
Patch0: 0001-Remove-outdated-comment-about-Click-3.0.patch
BuildArch: noarch BuildArch: noarch
%global _description \ %global _description \
@ -27,12 +23,10 @@ Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pytest >= 2.8 BuildRequires: python%{python3_pkgversion}-pytest
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description} %description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
Python 3 version.
%prep %prep
%autosetup -n %{pypi_name}-%{version} -p1 %autosetup -n %{pypi_name}-%{version} -p1
@ -43,14 +37,13 @@ Python 3 version.
%py3_install %py3_install
%check %check
export PYTHONPATH=$(pwd) PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
py.test-%{python3_version} tests --tb=long --verbose
%files -n python%{python3_pkgversion}-%{pypi_name} %files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE.rst %license LICENSE.rst
%doc README.rst CHANGES.rst %doc README.rst CHANGES.rst
%{python3_sitelib}/Click-*.egg-info/
%{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%changelog %changelog
* Sat Apr 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 7.1.1-1 * Sat Apr 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 7.1.1-1

Loading…
Cancel
Save