Blame python-yappi.spec

462281b
%global srcname yappi
462281b
462281b
Name:           python-%{srcname}
68ad213
Version:        1.2.5
68ad213
Release:        1%{?dist}
462281b
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling
462281b
462281b
License:        MIT
462281b
URL:            https://github.com/sumerc/yappi
462281b
Source0:        https://files.pythonhosted.org/packages/source/y/%{srcname}/%{srcname}-%{version}.tar.gz
462281b
462281b
BuildRequires:  git
462281b
BuildRequires:  gcc
462281b
462281b
%description
462281b
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
462281b
support to profile python programs.
462281b
462281b
%package -n python3-%{srcname}
462281b
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling.
462281b
462281b
BuildRequires:  python3-devel
462281b
BuildRequires:  python3-setuptools
462281b
462281b
%description -n python3-%{srcname}
462281b
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
462281b
support to profile python programs.
462281b
462281b
%prep
462281b
%autosetup -n %{srcname}-%{version} -S git
462281b
462281b
%build
462281b
%py3_build
462281b
462281b
%install
462281b
%py3_install
462281b
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version}
462281b
ln -s %{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3
462281b
ln -s %{srcname}-3 %{buildroot}%{_bindir}/%{srcname}
462281b
462281b
%check
68ad213
export PATH=$PATH:%{buildroot}/usr/bin
462281b
export PYTHONPATH=%{buildroot}/%{python3_sitearch}
462281b
%{__python3} tests/test_functionality.py
462281b
%{__python3} tests/test_hooks.py
462281b
462281b
%files -n python3-%{srcname}
462281b
%license LICENSE
462281b
%doc README.md
462281b
%{python3_sitearch}/%{srcname}.py*
462281b
%{python3_sitearch}/_%{srcname}*.so
462281b
%{python3_sitearch}/__pycache__/%{srcname}*
462281b
%{python3_sitearch}/%{srcname}-*.egg-info
462281b
%{_bindir}/%{srcname}
462281b
%{_bindir}/%{srcname}-3*
462281b
462281b
%changelog
68ad213
* Fri Aug 28 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.2.5-1
68ad213
- Update to 1.2.5 version
68ad213
- Removed python2 subpackage
68ad213
ab8414c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
ab8414c
- Second attempt - Rebuilt for
ab8414c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ab8414c
1cf063f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-7
1cf063f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1cf063f
d76cf87
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0-6
d76cf87
- Rebuilt for Python 3.9
d76cf87
07e22be
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
07e22be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
07e22be
1ee80b0
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-4
1ee80b0
- Rebuilt for Python 3.8.0rc1 (#1748018)
1ee80b0
46101d0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-3
46101d0
- Rebuilt for Python 3.8
46101d0
7511ffa
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
7511ffa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7511ffa
462281b
* Thu Feb 21 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.0-1
462281b
- Initial version