Name: python-pysnooper # No tags on github: https://github.com/cool-RR/PySnooper/issues/128 %global commit 3cc81f4b7a7f81006bb234f22fd19fe47a121246 Version: 0.2.0 Release: 1%{?dist} Summary: Poor man's debugger for Python License: MIT URL: https://github.com/cool-RR/pysnooper Source0: https://github.com/cool-RR/pysnooper/archive/%commit/python-pysnoooper-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} %global _description %{expand: PySnooper is a replacement for debug print statements in code. After decorating a function it automatically logs which lines were run and any changes to local variables.} %description %_description %package -n python3-pysnooper Summary: %{summary} %{?python_provides python3-pysnooper} %description -n python3-pysnooper %_description %prep %autosetup -n PySnooper-%{commit} %build %py3_build %install %py3_install rm -r %{buildroot}%{python3_sitelib}/tests %check PYTHONPATH=%{buildroot}%{python3_sitelib} %__python3 -m pytest -v tests/ %files -n python3-pysnooper %license LICENSE %doc README.md %{python3_sitelib}/pysnooper/ %{python3_sitelib}/PySnooper-%{version}-py%{python3_version}.egg-info/ %changelog * Sat Jun 15 2019 Zbigniew Jędrzejewski-Szmek - 0.2.0-1 - Initial packaging