diff --git a/python-yappi.spec b/python-yappi.spec new file mode 100644 index 0000000..61d0fb3 --- /dev/null +++ b/python-yappi.spec @@ -0,0 +1,59 @@ +%global _empty_manifest_terminate_build 0 +Name: python-yappi +Version: 1.3.2 +Release: 1 +Summary: Yet Another Python Profiler +License: MIT +URL: https://github.com/sumerc/yappi +Source0: https://files.pythonhosted.org/packages/4c/18/1b9387c7d3bf0d7aa54773ded7d286bcb8b04ec242404969f6656a385a11/yappi-1.3.2.tar.gz + +BuildRequires: git +BuildRequires: gcc + +%description +Yappi, Yet Another Python Profiler, provides multithreading and cpu-time +support to profile python programs. + +%package -n python3-yappi +Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling. + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-gevent + +%description -n python3-yappi +Yappi, Yet Another Python Profiler, provides multithreading and cpu-time +support to profile python programs. + +%prep +%autosetup -n yappi-%{version} -S git + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/yappi %{buildroot}%{_bindir}/yappi-%{python3_version} +ln -s yappi-%{python3_version} %{buildroot}%{_bindir}/yappi-3 +ln -s yappi-3 %{buildroot}%{_bindir}/yappi + +%check +export PATH=$PATH:%{buildroot}/usr/bin +export PYTHONPATH=%{buildroot}/%{python3_sitearch} +%{__python3} tests/test_functionality.py +%{__python3} tests/test_hooks.py + +%files -n python3-yappi +%license LICENSE +%doc README.md +%{python3_sitearch}/yappi.py* +%{python3_sitearch}/_yappi*.so +%{python3_sitearch}/__pycache__/yappi* +%{python3_sitearch}/yappi-*.egg-info +%{_bindir}/yappi +%{_bindir}/yappi-3* + +%changelog +* Thu Dec 31 2020 Python_Bot +- Package Spec generated + diff --git a/yappi-1.3.2.tar.gz b/yappi-1.3.2.tar.gz new file mode 100644 index 0000000..03194df Binary files /dev/null and b/yappi-1.3.2.tar.gz differ