]>
Commit | Line | Data |
---|---|---|
27f78cf2 | 1 | %define module faulthandler |
27f78cf2 AM |
2 | Summary: Display the Python traceback on a crash |
3 | Name: python-faulthandler | |
68bebc9c AM |
4 | Version: 3.0 |
5 | Release: 1 | |
27f78cf2 AM |
6 | License: BSD |
7 | Group: Development/Languages/Python | |
68bebc9c AM |
8 | Source0: https://github.com/haypo/faulthandler/archive/faulthandler-%{version}.tar.gz |
9 | # Source0-md5: bd628242274c7294c36112bb744a83cf | |
10 | URL: http://faulthandler.readthedocs.io/ | |
27f78cf2 AM |
11 | BuildRequires: python-devel |
12 | BuildRequires: python-modules | |
13 | BuildRequires: rpm-pythonprov | |
68bebc9c | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
27f78cf2 AM |
15 | Requires: python |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Fault handler for SIGSEGV, SIGFPE, SIGBUS and SIGILL signals: display | |
20 | the Python backtrace and restore the previous handler. Allocate an | |
21 | alternate stack for this handler, if sigaltstack() is available, to be | |
22 | able to allocate memory on the stack, even on stack overflow. | |
23 | ||
24 | %prep | |
68bebc9c | 25 | %setup -q -n %{module}-%{module}-%{version} |
27f78cf2 AM |
26 | |
27 | %build | |
2aee31bb | 28 | %py_build |
27f78cf2 AM |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
2aee31bb | 33 | %py_install |
27f78cf2 AM |
34 | |
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
68bebc9c | 40 | %doc AUTHORS README.rst TODO |
27f78cf2 AM |
41 | %attr(755,root,root) %{py_sitedir}/%{module}.so |
42 | %{py_sitedir}/*egg-info | |
68bebc9c | 43 | %{py_sitedir}/faulthandler.pth |