%?python_enable_dependency_generator %if 0%{?fedora} %global with_tests 1 %endif %global srcname slacker %global _summary Slack API client Name: python-%{srcname} Version: 0.9.65 Release: 1%{?dist} Summary: %_summary License: ASL 2.0 URL: https://github.com/os/%{srcname} Source0: %{url}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _descripition \ Slacker is a full-featured Python interface for the Slack API. %description %_descripition %package -n python%{python3_pkgversion}-%{srcname} Summary: %_summary BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-setuptools %if 0%{with tests} BuildRequires: python%{python3_pkgversion}-tox BuildRequires: python%{python3_pkgversion}-mock %endif %description -n python%{python3_pkgversion}-%{srcname} %_descripition %prep %autosetup -n%{srcname}-%{version} %build %py3_build %install %py3_install %check %{?with_tests: %{__python3} setup.py test} %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info/ %changelog * Fri Nov 2 2018 Raphael Groner - 0.9.65-1 - initial