Blame SPECS/python-yappi.spec

rdobuilder 0a9e34
%global srcname yappi
rdobuilder 0a9e34
rdobuilder 0a9e34
Name:           python-%{srcname}
rdobuilder 0a9e34
Version:        1.3.6
rdobuilder 0a9e34
Release:        1%{?dist}
rdobuilder 0a9e34
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling
rdobuilder 0a9e34
rdobuilder 0a9e34
License:        MIT
rdobuilder 0a9e34
URL:            https://github.com/sumerc/yappi
rdobuilder 0a9e34
Source0:        https://files.pythonhosted.org/packages/source/y/%{srcname}/%{srcname}-%{version}.tar.gz
rdobuilder 0a9e34
# https://github.com/sumerc/yappi/commit/b07534e005d5ad36f06db81a3232998392fe55d8 unreleased
rdobuilder 0a9e34
Patch01:        0001-Change-frame-object-update-asyncio-tests.patch
rdobuilder 0a9e34
Patch02:        0002-fix-few-seg.-faults.patch
rdobuilder 0a9e34
Patch03:        0003-fix-ensure_thread_profiled.patch
rdobuilder 0a9e34
Patch04:        0004-6-failures-in-TCs.patch
rdobuilder 0a9e34
Patch05:        0005-Use-_PyEval_SetProfile-instead-of-manually-updating-.patch
rdobuilder 0a9e34
Patch06:        0006-Use-PyCode_GetVarnames-added-in-3.11.0rc1.patch
rdobuilder 0a9e34
Patch07:        0007-Fix-IS_SUSPENDED-call-to-use-PyFrame_GetGenerator-gi.patch
rdobuilder 0a9e34
Patch09:        0009-Use-codeobject-co_varnames-for-Py-versions-11.patch
rdobuilder 0a9e34
Patch11:        0011-Cosmetic.patch
rdobuilder 0a9e34
rdobuilder 0a9e34
BuildRequires:  git
rdobuilder 0a9e34
BuildRequires:  gcc
rdobuilder 0a9e34
rdobuilder 0a9e34
%description
rdobuilder 0a9e34
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
rdobuilder 0a9e34
support to profile python programs.
rdobuilder 0a9e34
rdobuilder 0a9e34
%package -n python3-%{srcname}
rdobuilder 0a9e34
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling.
rdobuilder 0a9e34
rdobuilder 0a9e34
BuildRequires:  python3-devel
rdobuilder 0a9e34
BuildRequires:  python3-setuptools
rdobuilder 0a9e34
BuildRequires:  python3-gevent
rdobuilder 0a9e34
rdobuilder 0a9e34
%description -n python3-%{srcname}
rdobuilder 0a9e34
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
rdobuilder 0a9e34
support to profile python programs.
rdobuilder 0a9e34
rdobuilder 0a9e34
%prep
rdobuilder 0a9e34
%autosetup -n %{srcname}-%{version} -S git
rdobuilder 0a9e34
rdobuilder 0a9e34
%build
rdobuilder 0a9e34
%py3_build
rdobuilder 0a9e34
rdobuilder 0a9e34
%install
rdobuilder 0a9e34
%py3_install
rdobuilder 0a9e34
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version}
rdobuilder 0a9e34
ln -s %{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3
rdobuilder 0a9e34
ln -s %{srcname}-3 %{buildroot}%{_bindir}/%{srcname}
rdobuilder 0a9e34
rdobuilder 0a9e34
%check
rdobuilder 0a9e34
export PATH=$PATH:%{buildroot}/usr/bin
rdobuilder 0a9e34
export PYTHONPATH=%{buildroot}/%{python3_sitearch}
rdobuilder 0a9e34
%{__python3} tests/test_functionality.py
rdobuilder 0a9e34
%{__python3} tests/test_hooks.py
rdobuilder 0a9e34
rdobuilder 0a9e34
%files -n python3-%{srcname}
rdobuilder 0a9e34
%license LICENSE
rdobuilder 0a9e34
%doc README.md
rdobuilder 0a9e34
%{python3_sitearch}/%{srcname}.py*
rdobuilder 0a9e34
%{python3_sitearch}/_%{srcname}*.so
rdobuilder 0a9e34
%{python3_sitearch}/__pycache__/%{srcname}*
rdobuilder 0a9e34
%{python3_sitearch}/%{srcname}-*.egg-info
rdobuilder 0a9e34
%{_bindir}/%{srcname}
rdobuilder 0a9e34
%{_bindir}/%{srcname}-3*
rdobuilder 0a9e34
rdobuilder 0a9e34
%changelog
rdobuilder 0a9e34
* Wed Sep 14 2022 Alfredo Moralejo <amoralej@redhat.com> - 1.3.6-1
rdobuilder 0a9e34
- Update to 1.3.6
rdobuilder 0a9e34
- Backport upstream patches required to support python 3.11
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.3.2-4
rdobuilder 0a9e34
- Rebuilt for Python 3.11
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Wed Jun 16 2021 Joel Capitao <jcapitao@redhat.com> - 1.3.2-1
rdobuilder 0a9e34
- Update to 1.3.2 version (#1902302)
rdobuilder 0a9e34
- Included patch to support python 3.10 (#1958896)
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.1-3
rdobuilder 0a9e34
- Rebuilt for Python 3.10
rdobuilder 0a9e34
rdobuilder 0a9e34
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Tue Nov 10 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.3.1-1
rdobuilder 0a9e34
- Update to 1.3.1 version
rdobuilder 0a9e34
rdobuilder 0a9e34
* Tue Nov 10 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.3.0-1
rdobuilder 0a9e34
- Update to 1.3.0 version
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Aug 28 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.2.5-1
rdobuilder 0a9e34
- Update to 1.2.5 version
rdobuilder 0a9e34
- Removed python2 subpackage
rdobuilder 0a9e34
rdobuilder 0a9e34
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
rdobuilder 0a9e34
- Second attempt - Rebuilt for
rdobuilder 0a9e34
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-7
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0-6
rdobuilder 0a9e34
- Rebuilt for Python 3.9
rdobuilder 0a9e34
rdobuilder 0a9e34
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-4
rdobuilder 0a9e34
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder 0a9e34
rdobuilder 0a9e34
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-3
rdobuilder 0a9e34
- Rebuilt for Python 3.8
rdobuilder 0a9e34
rdobuilder 0a9e34
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
rdobuilder 0a9e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 0a9e34
rdobuilder 0a9e34
* Thu Feb 21 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.0-1
rdobuilder 0a9e34
- Initial version