From b20f65587ab84c32312333274d0a81c603984c7e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Apr 18 2020 12:22:30 +0000 Subject: Remove obsolete parts --- diff --git a/python-click.spec b/python-click.spec index ce7555c..2bbc41b 100644 --- a/python-click.spec +++ b/python-click.spec @@ -8,10 +8,6 @@ Summary: Simple wrapper around optparse for powerful command line utiliti License: BSD URL: https://github.com/mitsuhiko/click 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 %global _description \ @@ -27,12 +23,10 @@ Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} BuildRequires: python%{python3_pkgversion}-devel 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} -Python 3 version. - %prep %autosetup -n %{pypi_name}-%{version} -p1 @@ -43,14 +37,13 @@ Python 3 version. %py3_install %check -export PYTHONPATH=$(pwd) -py.test-%{python3_version} tests --tb=long --verbose +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE.rst %doc README.rst CHANGES.rst -%{python3_sitelib}/Click-*.egg-info/ %{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog * Sat Apr 18 2020 Fabian Affolter - 7.1.1-1